You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add lslack() and uslack() methods for Var objects to faciliate quick evaluation of variable lower and upper bound slacks (or violations).
Rationale
Pyomo Constraint objects already have lslack() and uslack() methods available for quickly evaluating constraint lower and upper bound slacks. The availability of similar methods for Var objects would be convenient.
Summary
Add
lslack()
anduslack()
methods forVar
objects to faciliate quick evaluation of variable lower and upper bound slacks (or violations).Rationale
Pyomo
Constraint
objects already havelslack()
anduslack()
methods available for quickly evaluating constraint lower and upper bound slacks. The availability of similar methods forVar
objects would be convenient.Description
Consider the following setup:
The lower and upper bound slacks for the constraint
m.con
can be evaluated using thelslack()
anduslack()
methods as follows:It would be convenient if variable bound slacks could be evaluated similarly, to the effect of:
The text was updated successfully, but these errors were encountered: