Skip to content

Commit

Permalink
'summation' -> 'pyo.summation' to match imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGorbunov authored Aug 21, 2022
1 parent b589b8a commit 1fdbbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/OnlineDocs/tests/scripting/iterative2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
model.n = pyo.Param(default=4)
model.x = pyo.Var(pyo.RangeSet(model.n), within=pyo.Binary)
def o_rule(model):
return summation(model.x)
return pyo.summation(model.x)
model.o = pyo.Objective(rule=o_rule)
model.c = pyo.ConstraintList()

Expand Down

0 comments on commit 1fdbbf6

Please sign in to comment.