Skip to content

Commit 214e461

Browse files
authored
Merge pull request #3972 from shermanjasonaf/pyros-extend-cardinality-set-2
Fix typos in PyROS `CardinalitySet` documentation
2 parents e074b34 + 9bb5221 commit 214e461

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyomo/contrib/pyros/uncertainty_sets.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,8 @@ class CardinalitySet(UncertaintySet):
14981498
\\,\\exists\\, \\xi^+, \\xi^- \\in [0, 1]^n \\,:\\,
14991499
\\left[
15001500
\\begin{array}{l}
1501-
q = q^0 + \\hat{q}^+ \\circ \\xi^+ - \\hat{q}^-\\xi^- \\\\
1501+
q = q^0 + \\hat{q}^+ \\circ \\xi^+
1502+
- \\hat{q}^- \\circ \\xi^- \\\\
15021503
\\displaystyle \\sum_{i=1}^n (\\xi_i^+ + \\xi_i^-)
15031504
\\leq \\Gamma \\\\
15041505
\\xi_i^+ = 0 \\quad\\forall\\,i :
@@ -1871,7 +1872,7 @@ def validate(self, config):
18711872
is_entry_of_arg=False,
18721873
)
18731874

1874-
# check deviations are positive
1875+
# check deviations are nonnegative
18751876
for dev_pair in zip(self.positive_deviation, self.negative_deviation):
18761877
for dev_name, dev in zip(("positive", "negative"), dev_pair):
18771878
if dev < 0:

0 commit comments

Comments
 (0)