Overview | Group | Tree | Graph | Index | Concepts |
An instance of IloGoal
represents a goal, a search
primitive, for use in a Concert Technology model. That is, a goal is a
building block in a search for solutions.
The goals listed in See Also are predefined in IBM® ILOG® Solver.
Environment and Goals
Every instance of IloGoal
must belong to one instance of
IloEnv
. A goal (that is, an instance of IloGoal
or
one of its derived subclasses) is tied throughout its lifetime to the
environment where it is created. It can be used only with goals and
extractable objects belonging to the same environment.
See Also:
IloAndGoal, IloApply, IloBestGenerate, IloBestInstantiate, IloDichotomize, IloGenerate, IloGoalFail, IloGoalTrue, IloInstantiate, IloLimitSearch, IloOrGoal, IloRemoveValue, IloSetMax, IloSetMin, IloSetValue, ILOCPGOALWRAPPER0
Constructor Summary | |
---|---|
public | IloGoal() |
public | IloGoal(IloGoalI * impl=0) |
Method Summary | |
---|---|
public void | end() const |
public IloEnv | getEnv() const |
public IloGoalI * | getImpl() const |
public const char * | getName() const |
public IloAny | getObject() const |
public void | setName(const char * name) const |
public void | setObject(IloAny obj) const |
Constructor Detail |
---|
This constructor creates a goal which is empty, that is, one whose handle pointer is null. This object must then be assigned before it can be used, exactly as when you declare a pointer.
This constructor creates a goal from its implementation object.
Method Detail |
---|
This member function returns the environment to which the invoking goal belongs. A goal belongs to exactly one environment; different environments can not share the same goal.
This member function returns a pointer to the implentation object of the invoking goal. This member function is useful when you need to be sure that you are using the same copy of the invoking goal in more than one situation.
This member function returns a character string specifying the name of the invoking object (if there is one).
This member function returns the object associated with the invoking object (if there is one). Normally, an associated object contains user data pertinent to the invoking object.
This member function assigns name
to the invoking object.
This member function associates obj
with the
invoking object. The member function getObject
accesses
this associated object afterward. Normally, obj
contains
user data pertinent to the invoking object.