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.

ILO<strong>CPLEX</strong>GOAL0<br />

}<br />

return 0;<br />

This macro generates code similar to the following lines:<br />

class PrintXI : public IloCplex::GoalI {<br />

public:<br />

IloInt x;<br />

PrintXI(IloEnv env, IloInt arg1)<br />

IloCplex::Goal execute();<br />

IloCplex::Goal duplicateGoal();<br />

};<br />

PrintXI::PrintXI(IloEnv env, IloInt arg1) :<br />

IloCplex::GoalI(env),<br />

x(arg1) {<br />

}<br />

IloCplex::Goal PrintX(IloEnv env, IloInt x) {<br />

return new PrintXI(env, x);<br />

}<br />

IloCplex::Goal PrintXI::execute() {<br />

IloEnv env = getEnv();<br />

env.out()

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

Saved successfully!

Ooh no, something went wrong!