public static class IloCplex.Quality
extends java.lang.Object
The possible quality
measures are declared in IloCplex.QualityType. A quality
object is returned by the method IloCplex.getQuality. The
returned quality object contains its type and the numeric value
of the requested quality measure. For many quality measures, the
value is attained at a specific constraint or variable. In such cases,
the relevant constraint or variable is contained in the quality
object as well, unless the constraint has been implicitly created
as a result of automatic linearization.
Methods are provided to query all information stored in a quality object.
For syntactic details about accessing the quality of a solution, see the topic User's Manual: Languages and APIs: Concert Technology for Java users: More solution information: Solution quality.
For special considerations about the information available from the solution of a mixed integer programming (MIP) model, see the topic User's Manual: Discrete optimization: Solving mixed integer programming problems (MIP): Using the MIP solution: Accessing information about the MIP solution. See also the topic User's Manual: Discrete optimization: Solving mixed integer programming problems (MIP): Troubleshooting MIP performance problems: MIP kappa: detecting and coping with ill-conditioned MIP models.
For special considerations about the information available from the solution of a model solved by the barrier optimizer, see the topic User's Manual: Continuous optimization: Solving LPs: barrier optimizer: Understanding solution quality from the barrier LP optimizer .
| Constructor and Description |
|---|
IloCplex.Quality() |
| Modifier and Type | Method and Description |
|---|---|
IloConstraint |
getConstraint()
Returns the constraint for which the quality measure is attained,
if any.
|
IloNumVar |
getNumVar()
Returns the variable at which the quality measure is attained,
if any.
|
IloCplex.QualityType |
getQualityType()
Returns the
IloCplex.QualityType of the invoking quality
measure. |
double |
getValue()
Returns the numeric value of the invoking quality measure.
|
java.lang.String |
toString()
Returns a string with the numeric value of the invoking quality measure.
|
public double getValue()
public IloNumVar getNumVar()
null is returned.public IloConstraint getConstraint()
null is returned.public java.lang.String toString()
toString in class java.lang.Objectpublic IloCplex.QualityType getQualityType()
IloCplex.QualityType of the invoking quality
measure.IloCplex.QualityType of the invoking quality
measure.