pyomo
pyomo copied to clipboard
An object-oriented algebraic modeling language in Python for structured optimization problems.
## Summary Related to https://github.com/IDAES/idaes-pse/pull/741 In some more complex IDAES models, we have cases where we want `Blocks` to register themselves with other `Blocks`, e.g. for automating aggregation of quantities...
## Summary There is no need for the FBBT walker to descend into NPV expression nodes. Improving this logic would simplify the code and improve performance.
## Summary I ran a script file with an IDAES model. At a certain point, when IDAES was trying to retrieve the Pynumero NLP for the model, _something_ in Pyomo...
# bug found by: Maria Marcos Nuñez ```python from pyomo.environ import * model = AbstractModel() # Definición de los diferentes parametros del modelo model.qv = Param(within = NonNegativeReals) # Definicion...
## Summary For the following simple example: ``` ''' Consider the following optimization problem. min f: p1*x1+ p2*(x2^2) + p1*p2 s.t c1: x1 + x2 = p1 c2: x2 +...
``` from pyomo.environ import * m = ConcreteModel() m.x = Var() m.c = Constraint(expr=m.x >= 1) m.p = Param(mutable=True, initialize=5) m.y = Var(bounds=(m.p, 3)) m.o = Objective(expr=m.x) SolverFactory('gurobi').solve(m) m.display() ```...
The following model is sent to a solver without any warning or error: from pyomo.environ import * m = ConcreteModel() m.v = Var() m.e = Expression(expr=m.v**2 + 2 >= 10)...
[empty2d.zip](https://github.com/Pyomo/pyomo/files/1486275/empty2d.zip) The attached files have an example of an AMPL-format dat file with an empty 2 dimensional set that results in an error. A potential fix that seems like it...
[2dDat.zip](https://github.com/Pyomo/pyomo/files/1486067/2dDat.zip) The attached example has a 2d set with the correct syntax for AMPL in the dat file, but this is the result (at a minimum the message should indicate...