I want to declare a variable in PYOMO which must take any of the three values.
For example, the variable must take a value from these 0.037364, 0.03174, 0.03797.
Model.cost =Var(within=NonNegativeReals)??
I want to declare a variable in PYOMO which must take any of the three values.
For example, the variable must take a value from these 0.037364, 0.03174, 0.03797.
Model.cost =Var(within=NonNegativeReals)??
model.A=Set(initialize=[0.037364, 0.03174, 0.03797])
model.Y=Var(within=model.A)