Optimization, Python, Linear Optimization, Operations Research.
sum_of_goods_for_customers <= factory_capacity model.Constraint2 = pe.Constraint(model.M_fact_capacity, rule = meet_demand) Now, let’s actually solve the optimization problem. To do this reader will need to have GLPK solver installed on his/her machine. SciPy module will use inbuilt solver SLSQP.