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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IloCplex<br />

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

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

model is its active model. It places the objective it has read in obj, the variables it has<br />

read in the array vars, the ranges it has read in the array rngs; and the Special<br />

Ordered Sets it has read in the arrays sos1 and sos2.<br />

Note: <strong>CPLEX</strong> resizes these arrays for you to accomodate the returned<br />

objects.<br />

Note: This notes is for advanced users only. The two arrays lazy and cuts are<br />

filled with the lazy constraints and user cuts that may be included in the model in<br />

file filename.<br />

public IloBool isDualFeasible()<br />

This method returns IloTrue if a dual feasible solution is recorded in the invoking<br />

IloCplex object and can be queried.<br />

public IloBool isMIP()<br />

This method returns IloTrue if the invoking algorithm has extracted a model that is a<br />

MIP (mixed-integer programming problem) and IloFalse otherwise. Member<br />

functions for accessing duals and reduced cost basis work only if the model is not a MIP.<br />

public IloBool isPrimalFeasible()<br />

This method returns IloTrue if a primal feasible solution is recorded in the invoking<br />

IloCplex object and can be queried.<br />

public IloBool isQC()<br />

This method returns IloTrue if the invoking algorithm has extracted a model that is<br />

quadratically constrained. Otherwise, it returns IloFalse. For an explanation of<br />

quadratically constrained see the topic QCP in the <strong>ILOG</strong> <strong>CPLEX</strong> User's <strong>Manual</strong>.<br />

public IloBool isQO()<br />

This method returns IloTrue if the invoking algorithm has extracted a model that has<br />

quadratic objective function terms. Otherwise, it returns IloFalse.<br />

public static IloCplex::Goal LimitSearch(IloCplex cplex,<br />

IloCplex::Goal goal,<br />

IloCplex::SearchLimit limit)<br />

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

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

Saved successfully!

Ooh no, something went wrong!