30.01.2015 Views

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IloCplex::Goal<br />

Creates a new goal from a pointer to the implementation object.<br />

public Goal(const Goal & goal)<br />

This is the copy constructor of the goal.<br />

public Goal()<br />

Creates a 0 goal handle, that is, a goal with a 0 implementation object pointer. This is<br />

also referred to as an empty goal.<br />

public Goal(IloConstraint cut)<br />

Creates a new goal that will add the constraint cut as a local cut to the node where the<br />

goal is executed. As a local cut, the constraint will be active only in the subtree rooted<br />

at the node where the goal was executed. The lifetime of the constraint passed to a goal<br />

is tied to the lifetime of the Goal. That is, the constraint's method end is called when<br />

the goal's implementation object is deleted. As a consequence, the method end must not<br />

be called for constraints passed to this constructor explicitly.<br />

public Goal(IloConstraintArray cut)<br />

Creates a new goal that adds the constraints given in the array cut as local cuts to the<br />

node where the goal is executed. As local cuts, the constraints will be active only in the<br />

subtree rooted at the node where the goal was executed. The lifetime of the constraints<br />

and the array passed to a goal is tied to the lifetime of the Goal. That is, the constraint's<br />

method end is called when the goal's implementation object is deleted. As a<br />

consequence, method end must not be called for the constraints and the array passed to<br />

this constructor explicitly.<br />

Methods<br />

public Goal operator=(const Goal & goal)<br />

This is the assignment operator. It increases the reference count of the implementation<br />

object of goal. If the invoking handle referred to an implementation object before the<br />

assignment operation, its reference count is decreased. If thereby the reference count<br />

becomes 0, the implementation object is deleted.<br />

<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 133

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!