ilog.cplex
Class IloCplex.Quality

java.lang.Object
  |
  +--ilog.cplex.IloCplex.Quality

public static class IloCplex.Quality
extends java.lang.Object

Objects of the class IloCplex.Quality contain information computed to measure the quality of a solution. Quality objects can be queried for the type of quality measure, the numerical value of the measure, and if defined for the measure, the range or variable at which the measure is attained. Qualities for QualityTypes beginning with Max will be maximum attained at a variable or a range.

See Also:
IloCplex.QualityType, IloCplex.getQuality(ilog.cplex.IloCplex.QualityType)

Constructor Summary
IloCplex.Quality()
           
 
Method Summary
 IloNumVar getNumVar()
          Gets the variable at which the quality measure is attained, if any.
 IloCplex.QualityType getQualityType()
          Gets the IloCplex.QualityType of this object.
 IloRange getRange()
          Gets the range for which the quality measure is attained, if any.
 double getValue()
          Gets the numerical value of the quality measure.
 java.lang.String toString()
          Returns a string with the numerical value of the quality measure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IloCplex.Quality

public IloCplex.Quality()
Method Detail

getValue

public double getValue()
Gets the numerical value of the quality measure.
Returns:
The numerical value of the quality measure.

getNumVar

public IloNumVar getNumVar()
Gets the variable at which the quality measure is attained, if any.
Returns:
The variable at which the quality measure is attained.

getRange

public IloRange getRange()
Gets the range for which the quality measure is attained, if any.
Returns:
The range for which the quality measure is attained.

toString

public java.lang.String toString()
Returns a string with the numerical value of the quality measure.
Returns:
A string with the numerical value of the quality measure.
Overrides:
toString in class java.lang.Object

getQualityType

public IloCplex.QualityType getQualityType()
Gets the IloCplex.QualityType of this object.
Returns:
The QualityType of this object.