public class MIPResult extends Object implements IMIPResult
Modifier and Type | Class and Description |
---|---|
protected static class |
MIPResult.ConstraintPrinter |
Constructor and Description |
---|
MIPResult(double objectiveValue,
Map<String,Double> values,
Map<Constraint,Double> constraintidsToDuals) |
Modifier and Type | Method and Description |
---|---|
boolean |
equal(Object other) |
double |
getDual(Constraint constraint)
Returns the dual of a constraint that was added with IMIP.add(constraint, constraintId)
|
Queue<IntermediateSolution> |
getIntermediateSolutions()
Get the Queue of intermediate solutions, if available
|
double |
getObjectiveValue()
Returns the objective value calculated by the solver
|
long |
getSolveTime()
Length to solve the mip (not including conversion time etc.) in milis
|
double |
getValue(String varName) |
double |
getValue(Variable variable) |
Map |
getValues()
Returns a Map from strings to Double objects
|
int |
hashCode() |
void |
setIntermediateSolutions(Queue<IntermediateSolution> lst) |
void |
setSolveTime(long solveTime) |
String |
toString() |
String |
toString(IMIP mip)
Dump the results out to std out, using the MIP to make it pretty
|
public double getObjectiveValue()
Solution
getObjectiveValue
in interface Solution
public Map getValues()
Solution
public double getDual(Constraint constraint)
IMIPResult
getDual
in interface IMIPResult
public long getSolveTime()
Solution
getSolveTime
in interface Solution
public void setSolveTime(long solveTime)
public Queue<IntermediateSolution> getIntermediateSolutions()
IMIPResult
getIntermediateSolutions
in interface IMIPResult
public void setIntermediateSolutions(Queue<IntermediateSolution> lst)
public String toString(IMIP mip)
IMIPResult
toString
in interface IMIPResult
public boolean equal(Object other)
Copyright © 2017. All rights reserved.