Overview | Group | Tree | Graph | Deprecated | Index | Concepts |
Goals are the building blocks of search algorithms in CP Optimizer extensions.
Goals depend on two classes: IlcGoal
and IlcGoalI
. The class IlcGoal
is the handle
class. An instance of the class IlcGoal
contains a data member
(the handle pointer) that points to an instance of the class IlcGoalI
(the implementation object) allocated on the CP Optimizer
heap. If you define a new class of goals, you must define the
implementation class together with the corresponding virtual member
function, execute
, and a member function that returns an
instance of the handle class IlcGoal
.
For more information, see the concept Goals in CP Optimizer.
See Also:
IlcAnd, ILCGOAL0, IlcGoalI, IlcOr, IloGoalFail, operator<<
Method Summary | |
---|---|
public | IlcGoal(class IlcConstraint) |
Method Detail |
---|
This constructor transforms a constraint into a goal. When the resulting goal is executed, the constraint is posted.