Finding a linear programming model when there are two different options

34 Views Asked by At

the cost of increasing production is 2000 dollar per house-material increased from one month to the next and the cost of decreasing house-material is 500 dollar per unit decreased from one month to the next.

I am trying to model the expression above. I have choosen ${x_m}$ as number of house-material built in regular production in month m. ${x_m - x_{m-1}}$ should be in the objective function but if ${x_m - x_{m-1}}$ is greater than zero, it will be appeared as ${2000 (x_m - x_{m-1})}$ , else ${-500 (x_m - x_{m-1})}$. How can I model this expression ?

1

There are 1 best solutions below

0
On

Add variables $s_m\ge 0$ and $t_m\ge 0$ to represent respectively the increase or decrease from period $m-1$ to period $m,$ along with the constraint $$x_m = x_{m-1} + s_m - t_m.$$ The change cost will be $2000 s_m + 500 t_m.$