IloObject | +--IloOplRelaxationIterator
There are two important things to be noted about relaxation iterators: The first thing is that relaxations are computed in a lazy way. This means that a relaxation is only computed once you try to print it or iterate over it.
The second thing is that relaxations are cached. If you modify the model
for which a relaxation was computed then the cached relaxation is not
deleted. In order to delete a cached relaxation you should call
recalculate.
An example of relaxing a conflict is provided with your installation. See <Install_dir>\opl\examples\opl\relaxationIterator\relaxationIterator.mod
| Field Attributes | Field Name and Description |
|---|---|
| flow control (read only) |
Provides access to the relaxed
IloConstraint of the current relaxation. |
| flow control (read only) |
Provides access to the LB property of the current relaxation.
|
| flow control (read only) |
Provides access to the relaxed LB property of the current relaxation.
|
| flow control (read only) |
Provides access to the relaxed UB property of the current relaxation.
|
| flow control (read only) |
Provides access to the UB property of the current relaxation.
|
| Method Attributes | Method Name and Description |
|---|---|
| flow control |
attach(cts, prefs)
Attaches a constraint array to a preference array.
|
| flow control |
Prints the relaxations proposed to obtain a feasible model.
|
| flow control |
Clears any cached relaxation and forces recomputation of the relaxation.
|
| end |
IloConstraint of the current relaxation.