File tree 1 file changed +2
-2
lines changed
doc/OnlineDocs/explanation/solvers
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,8 @@ To use the GDPopt-LDSDA solver, define your Pyomo GDP model as usual:
237
237
>>> m.y2_disjunction = Disjunction(expr = [m.Y2_disjuncts[j] for j in J])
238
238
239
239
Logical constraints to enforce exactly one selection
240
- >>> m.Y1_limit = pyo.LogicalConstraint(expr = exactly(1 , [m.Y1_disjuncts[i].indicator_var for i in I]))
241
- >>> m.Y2_limit = pyo.LogicalConstraint(expr = exactly(1 , [m.Y2_disjuncts[j].indicator_var for j in J]))
240
+ >>> m.Y1_limit = pyo.LogicalConstraint(expr = pyo. exactly(1 , [m.Y1_disjuncts[i].indicator_var for i in I]))
241
+ >>> m.Y2_limit = pyo.LogicalConstraint(expr = pyo. exactly(1 , [m.Y2_disjuncts[j].indicator_var for j in J]))
242
242
243
243
Define objective function
244
244
>>> m.obj = pyo.Objective(
You can’t perform that action at this time.
0 commit comments