| Overview | Group | Tree | Graph | Deprecated | Index | Concepts |

Use this class with an infeasible model. It can be used to report relaxations needed to obtain a feasible problem.
| Method Summary | |
|---|---|
public void | attach(IloConstraint ct, IloNum pref) |
public void | attach(IloConstraintMap cts, IloNumMap prefs) |
public void | end() |
public void | first() |
public IloConstraint | getConstraint() const |
public IloNum | getLB() const |
public IloNum | getRelaxedLB() const |
public IloNum | getRelaxedUB() const |
public IloNum | getUB() const |
public IloBool | hasNext() |
public | IloOplRelaxationIterator(IloOplModel model) |
public void | next() |
public IloInt | printRelaxation(std::ostream & os) |
| Method Detail |
|---|
Creates the default relaxation iterator
See Also:
Attach a constraint ct to a value pref (for
preference). After some attachments have been done, only the constraints
with attached preferences are taken into account for relaxation.
| ct |
An IloConstraint object for the constraint to attach a preference to.
|
| pref |
The preference value.
|
Attach a constraint map cts to a value map prefs
of preferences. After some attachments have been done only the constraints
with attached preferences are taken into account for relaxation.
| cts |
An IloConstraintMap object holding the constraints to attach preferences to.
|
| prefs |
An IloNumMap object holding the preferences.
|
Clears the memory used by this object
Goes to the first relaxation.
Returns the relaxed constraint.
IloConstraint object, can be null. Returns the lower bound.
Returns the relaxed lower bound.
Returns the relaxed upper bound.
Returns the upper bound.
Returns true, if there another relaxation.
true if there is another relaxation. Goes to the next relaxation.
Reports the relaxations needed to obtain a feasible problem, returns the number of relaxations found and changes the state of the invoking object to relaxation mode.