Arithmetic constraints
Functions | |
| void | Gecode::min (Home home, OpenIntVarList x, IntVar y, IntPropLevel ipl=IPL_DEF) |
| Constrain y to the minimum of the eventual sequence x. | |
| void | Gecode::max (Home home, OpenIntVarList x, IntVar y, IntPropLevel ipl=IPL_DEF) |
| Constrain y to the maximum of the eventual sequence x. | |
Detailed Description
Function Documentation
◆ min()
| void Gecode::min | ( | Home | home, |
| OpenIntVarList | x, | ||
| IntVar | y, | ||
| IntPropLevel | ipl = IPL_DEF ) |
Constrain y to the minimum of the eventual sequence x.
The eventual sequence must be nonempty. Bounds are enforced as positions appear; at least one variable must equal y when the list closes.
Definition at line 588 of file arithmetic.cpp.
◆ max()
| void Gecode::max | ( | Home | home, |
| OpenIntVarList | x, | ||
| IntVar | y, | ||
| IntPropLevel | ipl = IPL_DEF ) |
Constrain y to the maximum of the eventual sequence x.
The eventual sequence must be nonempty. Bounds are enforced as positions appear; at least one variable must equal y when the list closes.
Definition at line 597 of file arithmetic.cpp.
