Professional Documents
Culture Documents
(Convert maximization to minimization by multiply -1 and all constraint <= otherwise multiply by -1 and
bounds are lower(>=) or upper(<=) )
Example 1:
Subject to
X1+x2<=450
2X1+x2<=600
A=[1 1;2 1]
B=[450;600]
Lower=[0 0 0]
Solution:
>>optimtool
Step 3:
Select objective-linear
No of variables : n
Example 2:
Solution:-
Example 3: from book exact result show
Minimize Z=5x1+6x2
Subject to
2X1+5x2>=1500 or -2X1-5x2<=-1500
3X1+x2>=1200 or -3X1-x2<=-1200
Result in book:
Subject to
4X1+5x2<=100
5X1+2x2<=80
Result in book: