Question: Solve the following mixed integer linear programming model by using the computer: maximize Z = 5x 1 + 6x 2 + 4x 3 subject to
Solve the following mixed integer linear programming model by using the computer:
maximize Z = 5x1 + 6x2 + 4x3
subject to
5x1 + 3x2 + 6x3 < 20
x1 + 3x2 < 12
x1, x3 > 0
x2 > 0 and integer
Step by Step Solution
3.40 Rating (159 Votes )
There are 3 Steps involved in it
from gurobipy import Create a new model m ModelMILP Add variables x1 maddVarlb0 vtypeGRBINTEGER x... View full answer
Get step-by-step solutions from verified subject matter experts
