OR LP Python
OR LP Python
Approach
Optimal solution
Can we solve If
we add one
5 𝑥+ 4 𝑦=10
decision variable
z to the model
CPLEX BASIS ON LINEAR
PROGRAMMING
Import Cplex function
Import constraint
Result
CPLEX BASIS ON LINEAR
PROGRAMMING
CPPLEX BASIS ON LINEAR
PROGRAMMING
Import Cplex function
Import constraint
CPLEX BASIS ON LINEAR
PROGRAMMING
Solution with different type of result
x=.binary_var
y=continuous_var
z=integer_var
OPTIMIZATION PROBLEM
Production time of
Foldyphone=1.5
Production time
of tiny phone=2
MODEL FORMULATION
number of foldyphone production
number of tinyphone production
Production time
of
Objective function
Foldyphone=1.5
Maximize 900 +1100
Constraints
>=200
>=500 Production
1.5 + 2 time of tiny
phone=2
OR OPTIMIZATION TOOL
BASED ON CPLEX-PYTHON
FUNCTION
Import Cplex function
Import parameter
OR OPTIMIZATION TOOL
BASED ON CPLEX-PYTHON
FUNCTION
Number of production constraint
Objective
Optimize the bag's capacity for high-value
products.
Constraint
The total weight stored in bag should be less
than bag capacity
BUILD THE MODEL – IN
CLASS EXERCISES
Objective
Max
Constraints
SOLVE THE MODEL IN CLASS
EXERCISES
Work in group for solving the model using cplex-python