Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an error in increasing constraint documentation and updated decreasing constraint documentation #1104

Merged
merged 1 commit into from
Oct 12, 2024
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
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
Loading