Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pyomo/contrib/pyros/uncertainty_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,8 @@ class CardinalitySet(UncertaintySet):
\\,\\exists\\, \\xi^+, \\xi^- \\in [0, 1]^n \\,:\\,
\\left[
\\begin{array}{l}
q = q^0 + \\hat{q}^+ \\circ \\xi^+ - \\hat{q}^-\\xi^- \\\\
q = q^0 + \\hat{q}^+ \\circ \\xi^+
- \\hat{q}^- \\circ \\xi^- \\\\
\\displaystyle \\sum_{i=1}^n (\\xi_i^+ + \\xi_i^-)
\\leq \\Gamma \\\\
\\xi_i^+ = 0 \\quad\\forall\\,i :
Expand Down Expand Up @@ -1871,7 +1872,7 @@ def validate(self, config):
is_entry_of_arg=False,
)

# check deviations are positive
# check deviations are nonnegative
for dev_pair in zip(self.positive_deviation, self.negative_deviation):
for dev_name, dev in zip(("positive", "negative"), dev_pair):
if dev < 0:
Expand Down
Loading