FRAMES NO FRAMES

Class IloGoalI

Definition file: ilsolver/ilosolverhandle.h
Include file: <ilsolver/ilosolver.h>

The class IloGoal represents goals in an IBM® ILOG® Concert Technology model. The class IlcGoal represents goals internally in a Solver search. A goal is a building block in a Solver search.

A goal is an object in Solver. Like other Solver entities, a goal is implemented by means of two classes: a handle class and an implementation class. In other words, an instance of the class IloGoal (a handle) contains a data member (the handle pointer) that points to an instance of the class IloGoalI (its implementation object).

See Also:

Constructor and Destructor Summary
public IloGoalI(IloEnvI *)
public ~IloGoalI()
Method Summary
public virtual voiddisplay(ostream &) const
public virtual IlcGoalextract(const IloSolver solver) const
public virtual IloGoalI *makeClone(IloEnvI * env) const
Constructor and Destructor Detail

IloGoalI

public IloGoalI(IloEnvI *)

This constructor creates an instance of the class IloGoalI. This constructor should not be called directly as this class is an abstract class. This constructor is called automatically in the constructor of its subclasses.


~IloGoalI

public ~IloGoalI()

This destructor is called automatically by the destructor of its subclasses. It frees memory used by the invoking object.


Method Detail

display

public virtual void display(ostream &) const

This member function prints the invoking goal on an output stream.


extract

public virtual IlcGoal extract(const IloSolver solver) const

In general terms, in Concert Technology, the objects of a model must be extracted for an algorithm (an instance of one of the subclasses of IloAlgorithm, such as IloSolver). This member function returns the internal goal extracted for solver from the invoking goal of a model.


makeClone

public virtual IloGoalI * makeClone(IloEnvI * env) const

This member function is called internally to duplicate the current goal