Optimization, Python, Linear Optimization, Operations Research.
goods == customer demand def meet_demand(model, customer): sum_of_goods_from_factories = sum(model.x[customer,factory] for factory in model.M_fact_capacity) customer_demand = model.cust_demand[customer] return sum_of_goods_from_factories == customer_demand model.Constraint1 =