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

The class IloCPConstraintI simplifies writing a new
constraint using IBM® ILOG® Concert Technology. You can use the macro ILOCPCONSTRAINTWRAPPER to create a subclass of the class
IloCPConstraintI with up to 4 data members.
If you want to create a constraint class with more than 4 data members,
you must explicitly define a subclass of the class
IloCPConstraintI. To do this, you must:
ILOCPCONSTRAINTWRAPPERDECL in the class definition
ILOCPCONSTRAINTWRAPPERIMPL in the source file
makeClone
initTypeIndex once before using the generated constraint. Therefore,
it is recommended to include this call in the function.)
extract. You can use the example in ILOCPCONSTRAINTWRAPPER as a model for writing your own new constraint explicitly.
See Also:
| Method Summary | |
|---|---|
public virtual void | display(ostream & out) const |
public virtual IlcConstraint | extract(const IloCPEngine cp) const |
public | IloCPConstraintI(IloEnvI *, const char *) |
public virtual IloExtractableI * | makeClone(IloEnvI * env) const |
public void | use(const IloCPEngine solver, const IloIntervalSequenceVarArray xa) const |
public void | use(const IloCPEngine solver, const IloIntervalVarArray xa) const |
public void | use(const IloCPEngine solver, const IloNumVarArray xa) const |
public void | use(const IloCPEngine solver, const IloIntVarArray xa) const |
public void | use(const IloCPEngine solver, const IloIntervalSequenceVar x) const |
public void | use(const IloCPEngine solver, const IloIntervalVar x) const |
public void | use(const IloCPEngine solver, const IloNumVar x) const |
public | ~IloCPConstraintI() |
| Method Detail |
|---|
This constructor creates an instance of the class
IloCPConstraintI. This constructor is called
automatically in the constructor of its subclasses.
This destructor is called automatically by the destructor of its subclasses. It frees memory used by the invoking object.
This member function prints the invoking constraint on an output stream.
In general terms, in Concert Technology, the objects of a model
must be extracted. This member function returns the internal
constraint extracted for use by cp from the invoking
constraint of a model.
This member function is called internally to duplicate the current constraint.
This member function forces the extraction of an array of interval sequence variables.
This member function forces the extraction of an array of interval variables.
This member function forces the extraction of an array of numerical variables.
This member function forces the extraction of an array of integer variables.
This member function forces the extraction of an interval sequence variable.
This member function forces the extraction of an interval variable.
This member function forces the extraction of a numerical (integer or continuous) variable.