Download presentation
Presentation is loading. Please wait.
1
LINGO LAB 3
2
Solving the model of a production plan by lingo
3
The Production model 1 At: fixed setup cost in period t
Yt: 0, if there is no production in period t and 1, if there is production in period t Pt: unit variable production cost in period t Xt: amount of production in period t Hk: Inventory holding cost in period k Uk: amount of inventory at the beginning of period k Bk: backlogging cost in period k Vk: amount of backlog at the end of period k Dt: required demand in period t Ct: available capacity in period t
4
Sets and parameters of the problem
K={0,1,2,3,4} A={5000, 7000,8000,4000} D={250,300,400,500} C={500,600,800,900} P={25,30,25,20} H={3,4,5,2} B={5,6,6,7} Decision variables: X={x1, x2, x3, x4}, U={U0,U1,U2,U3,U4}, V={V0,V1,V2,V3,V4}, Y={Y1,Y2,Y3,Y4}
5
The objective function and constraints
The objective function is to minimize summation of all costs that include fixed setup costs, production costs, inventory holding costs and backlogging costs: The first constraint satisfies demand and is a simple product flow balance equation that can be described by the figure below, and the second constraint avoids capacity violation.
6
Writing the model in lingo
7
Solution of the model ii
8
The Production model ii
K={0,1,2} A={6000, 8000} D={500,400} C={600,700} P={40,50} H={7,9,8} B={4,7,5} Decision variables: X={x1, x2,}, U={U0,U1,U2}, V={V0,V1,V2}, Y={Y1,Y2}
9
Writing the model in lingo
10
Solution of the model ii
11
The Production model iii
We have to prepare an aggregate plan for the future 4 periods. The forecasted demands are D= {250, 300, 330, 270}, Unit production costs are P= {25, 30, 32, 28}$, Fixed setup costs are A= {5000, 4000, 3750, 4500}$. Unit inventory holding costs are H= {5, 5, 5, 5} $ Unit backlogging costs are B= {7, 6, 8, 5} $ Production capacities are C = {500, 500, 600, 600}. The system may increase its production capacity in a period by 200 applying overtime. In overtime production the variable production cost of a product increases by 5$. Moreover, The system may use subcontracting option. Unit subcontracting cost is 40$. Develop the Model of the problem.
12
The Production model iii
13
Writing the model in lingo
14
Solution of the model iii
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.