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<br />

public void getValues(const IloIntVarArray var,<br />

IloNumArray val)<br />

This method puts the solution values of the integer variables indicated by the array var<br />

into the array val. Array val is resized to the same size as array var, and val[i]<br />

will contain the solution value for variable var[i].<br />

public void getValues(IloNumArray val,<br />

const IloIntVarArray var)<br />

This method puts the solution values of the integer variables indicated by the array var<br />

into the array val. Array val is resized to the same size as array var, and val[i]<br />

will contain the solution value for variable var[i].<br />

public void getValues(IloNumArray val,<br />

const IloNumVarArray var)<br />

This method puts the solution values of the numeric variables indicated by the array<br />

var into the array val. Array val is resized to the same size as array var, and<br />

val[i] will contain the solution value for variable var[i].<br />

public const char * getVersion()<br />

This method returns a string indicating the version of IloCplex.<br />

public void importModel(IloModel & m,<br />

const char * filename)<br />

This method reads a model from the file indicated by filename into model. The<br />

invoking IloCplex object is not affected when calling this method unless model is<br />

its active model.<br />

public void importModel(IloModel & m,<br />

const char * filename,<br />

IloObjective & obj,<br />

IloNumVarArray vars,<br />

IloRangeArray rngs,<br />

IloRangeArray lazy,<br />

IloRangeArray cuts)<br />

This method is an simplification of the importModel method that does not provide<br />

arrays to return SOS's. This method is more easy to use in the case that you are dealing<br />

with continuous models, because in this case you already know that no SOS's will be<br />

present.<br />

public void importModel(IloModel & model,<br />

const char * filename,<br />

IloObjective & obj,<br />

IloNumVarArray vars,<br />

IloRangeArray rngs,<br />

IloSOS1Array sos1,<br />

IloSOS2Array sos2,<br />

IloRangeArray lazy,<br />

IloRangeArray cuts)<br />

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

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

Saved successfully!

Ooh no, something went wrong!