Quote:
Originally Posted by figo Hi
I have one problem 
Trucks production company must produce 1000 trucks. Company has four factories. The cost of truck production (raw materials, work) in each separate factory is shown in table: HTML Code: -------------------------------------------------
|Factory |Cost x 10^3 |Work |Raw materials |
-------------------------------------------------
|1 |15 |2 |3 |
-------------------------------------------------
|2 |10 |3 |4 |
------------------------------------------------
|3 |9 |4 |5 |
------------------------------------------------
|4 |7 |5 |6 |
------------------------------------------------
Automaker trade union requires that at least 400 trucks should be made in 3rd factory. It was given 3300 work hours and 4000 pcs. raw materials to each factory for order lead time. Make linear programming problem which minimize the cost of 1000 trucks production.
Can anyone help me to express the objective function and the constraints?? |
Denote

as your variables, representing the amount that each factory produces. So your objective is:
Because it needs to produce 1,000 trucks, one constraint is
At least 400 trucks need to be made in the 3rd factory, so
Subject to work hours, we have:
Subject to raw materials, we have:
However, I am unsure about whether the previous two constraints are correct or not. They would be if the integers that you provided me with were in units of work hours per truck made and raw materials per truck made. If it is the other way around, you need to flip the numbers around.
Don't forget to implement:

- this is NOT a trivial constraint because if you solve it with linear programming software, it could give you negative production.