Optimization, Python, Linear Optimization, Operations Research.
model.M_fact_capacity = pe.Set(initialize = M.keys()) # Parameters # Cartesian product of two sets creates list of tuples [((i1,j1),v1),((i2,j2),v2),...] !!! model.transport_cost = pe.Param( model.d_cust_demand * model.M_fact_capacity, initialize = cost, within = pe.NonNegativeReals)