Skip to main content
FRAMES NO FRAMES

Choice point in CP Optimizer
PREVIOUS NEXT

The ideas of success and failure are used to express algorithms with choices. Indeed, a goal can be defined as a choice between different goals. Such a goal is called a choice point.

A choice point is created by the execution of the goal IlcOr. A choice point can be labeled when it is created so that you can direct CP Optimizer to return to it explicitly.

Here's how a choice point is executed in a depth first search:

Thus a CP Optimizer user can define an algorithm without knowing in advance which subgoal will succeed. This kind of programming is often called non-deterministic programming.

See also

IlcAnd, IlcGoal, IlcGoalI, IlcOr

PREVIOUS NEXT