This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyomo.environ as pyo | |
from pyomo.environ import * | |
from pyomo.opt import SolverFactory | |
#mathematicalmodeling | |
model = pyo.ConcreteModel() | |
model.x = pyo.Var(range(1,6), within=Integers, bounds=(0,None)) | |
model.y = pyo.Var(bounds=(0,None)) |