edu.harvard.econcs.jopt.solver.mip
Class MIPResult

java.lang.Object
  extended by edu.harvard.econcs.jopt.solver.mip.MIPResult
All Implemented Interfaces:
IMIPResult, java.io.Serializable

public class MIPResult
extends java.lang.Object
implements IMIPResult

The results of running CPLEX.

Since:
Apr 12, 2004
Version:
$Revision: 1.4 $ on $Date: 2005/05/16 23:27:28 $
See Also:
Serialized Form

Constructor Summary
MIPResult(double objectiveValue, java.util.Map values, java.util.Map constraintidsToDuals)
           
 
Method Summary
 double getDual(int constraintId)
          Returns the dual of a constraint that was added with IMIP.add(constraint, constraintId)
 double getObjectiveValue()
          Returns the objective value calculated by the solver
 java.util.Map getValues()
          Returns a Map from strings to Double objects
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MIPResult

public MIPResult(double objectiveValue,
                 java.util.Map values,
                 java.util.Map constraintidsToDuals)
Method Detail

getObjectiveValue

public double getObjectiveValue()
Description copied from interface: IMIPResult
Returns the objective value calculated by the solver

Specified by:
getObjectiveValue in interface IMIPResult

getValues

public java.util.Map getValues()
Description copied from interface: IMIPResult
Returns a Map from strings to Double objects

Specified by:
getValues in interface IMIPResult

getDual

public double getDual(int constraintId)
Description copied from interface: IMIPResult
Returns the dual of a constraint that was added with IMIP.add(constraint, constraintId)

Specified by:
getDual in interface IMIPResult

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object