Skip to main content
FRAMES NO FRAMES

Class IlcGoal

Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Map of IlcGoalIlcGoalIlcGoal
The handle class for the building blocks of custom search algorithms.

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:

Method Summary
public IlcGoal(class IlcConstraint)
Method Detail

IlcGoal

public IlcGoal(class IlcConstraint)

This constructor transforms a constraint into a goal. When the resulting goal is executed, the constraint is posted.