Skip to main content
FRAMES NO FRAMES

Class IloGoal

Definition file: ilcp/cp.h
Include file: <ilcp/cp.h>
Map of IloGoalIloGoalIloGoal
A handle class that represents a goal in a model.

An instance of IloGoal represents a goal, a search primitive, for use in a custom search. A goal is a building block in a custom search for solutions.

See Also:

Method Summary
public voidend() const
public IloEnvgetEnv() const
public IloGoal(IloEnv env, IloIntVarArray vars)
public IloGoal(IloEnv env, IloIntVarArray vars, IloIntVarChooser varChooser, IloIntValueChooser valueChooser)
Method Detail

IloGoal

public IloGoal(IloEnv env, IloIntVarArray vars)
This constructor creates a goal with an array of variables only. The variable and value choosers for these variables will be chosen by automatically.

IloGoal

public IloGoal(IloEnv env, IloIntVarArray vars, IloIntVarChooser varChooser, IloIntValueChooser valueChooser)
This constructor creates a goal with an array of variables and and value choosers. The goal will use varChooser and valueChooser to determine how to instantiate variables in vars.

end

public void end() const
This member function ends the corresponding goal and returns the memory to the environment.

getEnv

public IloEnv getEnv() const

This member function returns the environment to which the invoking goal belongs.