Optimization, Operations Research, Data Science, Hands On Tutorials, Python.
constraints. This is done using the Var and Constraint components respectively. Notice that I specified the domain of x as nonnegative reals. This can be done in pyomo via the within keyword argument. # Decision variables model.x = pyo.Var(model.J, within=pyo.NonNegativeReals) # Availability