Skip to content

Commit

Permalink
Rename squential solve constraints. Fixes coin-or#561 (coin-or#562)
Browse files Browse the repository at this point in the history
Constraint names shouldn't begin with a number.
  • Loading branch information
ldeluigi authored Jul 19, 2022
1 parent 18f96a0 commit 39c8660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulp/pulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1965,9 +1965,9 @@ def sequentialSolve(
if debug:
self.writeLP("%sSequence.lp" % i)
if self.sense == const.LpMinimize:
self += obj <= value(obj) * rel + absol, "%s_Sequence_Objective" % i
self += obj <= value(obj) * rel + absol, "Sequence_Objective_%s" % i
elif self.sense == const.LpMaximize:
self += obj >= value(obj) * rel + absol, "%s_Sequence_Objective" % i
self += obj >= value(obj) * rel + absol, "Sequence_Objective_%s" % i
self.stopClock()
self.solver = solver
return statuses
Expand Down

0 comments on commit 39c8660

Please sign in to comment.