Skip to content

Commit

Permalink
Fixed an error in increasing constraint documentation and updated dec…
Browse files Browse the repository at this point in the history
…reasing constraint documentation
  • Loading branch information
Titouan Lorieul committed Oct 11, 2024
1 parent 94af9a7 commit 950c7fd
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1402,13 +1402,13 @@ default void cumulative(IntVar[] starts, int[] durations, int[] heights, int cap
/**
* <p>
* Create a decreasing constraint which ensures that the variables in {@code vars} are decreasing.
* The {@code delta} parameter make possible to adjust bounds.
* The {@code delta} parameter allows to adjust the bounds.
* </p>
* <p>That is: (X_0 &ge; X_1 +delta) &and; (X_1 &ge; X_2 + delta) &and ...</p>
* <p>That is: (X_0 &ge; X_1 + delta) &and; (X_1 &ge; X_2 + delta) &and; ...</p>
*
* @param vars variables to maintain in decreasing order
* @param delta set to 0 for &ge;, to 1 for &gt;, and so on
* @return a decresing constraint
* @return a decreasing constraint
*/
default Constraint decreasing(IntVar[] vars, int delta) {
IntVar[] rvars = vars.clone();
Expand Down Expand Up @@ -1538,14 +1538,14 @@ default Constraint globalCardinality(IntVar[] vars, int[] values, IntVar[] occur

/**
* <p>
* Create a increasing constraint which ensures that the variables in {@code vars} are increasing.
* The {@code delta} parameter make possible to adjust bounds.
* Create an increasing constraint which ensures that the variables in {@code vars} are increasing.
* The {@code delta} parameter allows to adjust the bounds.
* </p>
* <p>That is: (X_0 &le; X_1 +delta) &and; (X_1 &le; X_2 + delta) &and ...</p>
* <p>That is: (X_0 + delta &le; X_1) &and; (X_1 + delta &le; X_2) &and; ...</p>
*
* @param vars variables to maintain in decreasing order
* @param vars variables to maintain in increasing order
* @param delta set to 0 for &le;, to 1 for &lt;, and so on
* @return a decresing constraint
* @return an increasing constraint
*/
default Constraint increasing(IntVar[] vars, int delta) {
return new Constraint(ConstraintsName.INCREASING, new PropIncreasing(vars, delta));
Expand Down

0 comments on commit 950c7fd

Please sign in to comment.