1
$\begingroup$

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 ?

$\endgroup$

1 Answer 1

2
$\begingroup$

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.$

$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.