You are on page 1of 1

public IloNum getInfeasibility(const IloConstraint con) const

This method returns the infeasibility of the current solution for the constraint code. The infeasibility value is 0
(zero) if the constraint is satisfied. More specifically, for a range with finite lower bound and upper bound, if the
infeasibility value is negative, it specifies the amount by which the lower bound of the range must be changed; if
the value is positive, it specifies the amount by which the upper bound of the range must be changed. For a more
general constraint such as IloOr, IloAnd, IloSOS1, or IloSOS2, the infeasibility value returned is the
maximal absolute infeasibility value over all range constraints and variables created by the extraction of the
queried constraint.

public IloInt getMax(IloCplex::IntParam parameter) const


public IloNum getMax(IloCplex::NumParam parameter) const

These method return the maximum allowed value for the parameter parameter.

public IloInt getMin(IloCplex::IntParam parameter) const


public IloNum getMin(IloCplex::NumParam parameter) const

These method return the minimum allowed value for the parameter parameter.

public IloNum getMIPRelativeGap() const

This method accesses the relative objective gap for a MIP optimization.

For a minimization problem, this value is computed by

(bestinteger - bestobjective) / (1e-10 + |bestobjective|)

where bestinteger is the value returned by IloCplex::getObjValue and bestobjective is the value
returned by IloCplex::getBestObjValue. For a maximization problem, the value is computed by:

(bestobjective - bestinteger) / (1e-10 + |bestobjective|)

public IloCplex::MIPStartEffort getMIPStart(IloInt mipstartindex, const


IloNumVarArray vars, IloNumArray vals, IloBoolArray isset)

Returns the level of effort associated with the MIP start identified by mipstartindex and defined by the arrays
vars and vals. The argument isset designates which members of vars and which corresponding values of
vals participate in the MIP start.

public IloInt getMIPStartIndex(const char * lname_str) const

Returns the index of the MIP start designated by its name.

public const char * getMIPStartName(IloInt mipstartindex)

Returns the name of the MIP start identified by its index.

166

You might also like