Professional Documents
Culture Documents
Question 2
1a) Please formulate as a linear program.
Solution;
Decision Variables
x1 = gallons of orange juice
x2 = gallons of banana juice
x3 = gallons of pineapple juice
Objective Function
Z = (22P1 +25P2 + 23P3 ) - (15J +17B + 20C)-(10M)
Constraints
1. Sugar Content: The minimum sugar content is 17% and the maximum is 21%.
0.10x1 + 0.15x2 + 0.20x3 ≥ 0.17(x1+x2+x3)
0.10x1 + 0.15x2+ 0.20x3 ≥ 0.17(x1+x2+x3)
2. Fiber Content: The fiber content should be at least 3%.
0.13x1+0.20x2+0.27x3 ≥ 0.03(x1+x2+x3)
3. Banana Inventory: Banana content should be greater than 200 gallons.
x2 ≥ 200
4. Pineapple Usage: Pineapple usage should be less than 500 gallons.
x3≤500
5. Total Juice Production: To satisfy the requirement of producing 12,000 juice packages, with
each package containing 8 fl oz or 0.0625 gallons:
x1+x2+x3=12,000×0.0625
x1+x2+x3=750
6. Non-negativity Constraints: x1,x2,x3≥0
L.P. Model
s.t.
-0.07x1 + 0.02x2 + 0.03x3 >= 0
-0.11x1 -0.06x2 - 0.01x3 <= 0
0.1x1 + 0.17x2 + 0.24x3 >= 0
x2 >= 200
x3 <= 500
x1 + x2 + x3 = 750
x1 >= 0
x2 >= 0
x3 >= 0End
LP MODEL SOLUTION
Model Class: LP
Total variables: 3
Nonlinear variables: 0
Integer variables: 0
Total constraints: 10
Nonlinear constraints: 0
Total nonzeros: 20
Nonlinear nonzeros: 0
In conclusion, to achieve the objective of a minimum cost while satisfying all given constraints, the
company should produce a juice mix consisting of approximately 166.7 gallons of orange juice, 583.3
gallons of banana juice, and no pineapple juice, resulting in a total cost of $550.00.
b) If at least one employee needs to work for overtime, all other employee should work for same time.
How do you make additional constraint(s) for this restriction? How this restriction changes the decision?
Solution;
To enforce the restriction that if at least one employee works overtime, all other employees must
work for the same amount of time, you can add the following additional constraint:
J=B=C
Where J - B = 0; B - C = 0; C - J = 0
This constraint ensures that if John (J) works overtime, then Bill (B) and Cindy (C) must also
work the same amount of overtime, and vice versa.
This restriction changes the decision by potentially limiting the flexibility in the allocation of
overtime hours. Specifically, if one employee works overtime, the constraint enforces that the
others must do the same. This could impact the overall production plan and, consequently, the
total profit. It may also lead to a different mix of products being produced or a different allocation
of overtime hours. The model will seek an optimal solution while adhering to this new constraint.
L.P. Model(revised)
s.t.
Labor_time) 2P1 + P2 + 2P3 - J - B - C <= 80
Machine_time) P1 + P2 + 2P3 - M <= 65
Demand_P1) P1 >= 10
Demand_P2) P2 >= 50
Demand_P3) P3 >= 10
Labor_Overtime_B)B <= 10
Labor_Overtime_J)J <= 10
Labor_Overtime_C)C <= 10
Machine_Overtime)M <= 30
J - B = 0
B - C = 0
C - J = 0
End
L.P MODEL SOLUTION
Model Class: LP
Total variables: 7
Nonlinear variables: 0
Integer variables: 0
Total constraints: 13
Nonlinear constraints: 0
Total nonzeros: 30
Nonlinear nonzeros: 0
The company will experience a decrease in the objective function as they opt to pay higher labor costs
instead of utilizing the most economical labor overtime for the tasks, all in pursuit of maximizing profit.