Skip to main content
FRAMES NO FRAMES

IlcSimpleCompletionGoal

public IlcGoal IlcSimpleCompletionGoal(IlcCPEngine solver)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
This function creates a goal which instantiates all decision variables.

This function creates a goal which instantiates all variables in the model. The goal is not the same as automatic search, although it uses in part the same underlying procedures. In particular it does not use restarts, multi-point search, etc.

This goal must be used in conjunction with a user-defined goal. Your user-defined goal solves the difficult part of the problem but it can leave some variables unfixed (in particular it can leave as unfixed variables which can be instantiated trivially or almost trivially). Then simple completion goal fixes all these variables.

The simple completion goal works in the following steps:

The goal is guaranteed to find a solution if there is one, but if the remaining problem is not trivial, it make take a long time. It is recommended to use this goal after your user-defined goal if your search goal does not instantiate all variables in the model. Keep in mind that the remaining problem should be simple to solve. Some examples:

See Also: