454 Introduction to Computational Models with Python
y2 1
y3 0
The results are the same as the first solution to this problem. The results
show that the optimal va lue of profit is $240.00 and only 34 automobile parts
of type 2 are to be produced.
Instead of the previous constraint, another co nstraint on the problem is:
all three machines sho uld be rented. This c onstraint is formulated with the
following expression:
y
1
+ y
2
+ y
3
= 3.
Running the model with this constraint produces the results that can be
observed in the following listing.
Objective function: 69.00000000
Values of the variables:
x1 11
x2 3
x3 11
y1 1
y2 1
y3 1
The results show that the optimal value of profit is $69.00 and 11 auto-
mobile parts of type 1, 3 parts of type 2 , and 11 parts of type ...