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()
SolutiongetObjectiveValue in interface Solutionpublic Map getValues()
Solutionpublic double getDual(Constraint constraint)
IMIPResultgetDual in interface IMIPResultpublic long getSolveTime()
SolutiongetSolveTime in interface Solutionpublic void setSolveTime(long solveTime)
public Queue<IntermediateSolution> getIntermediateSolutions()
IMIPResultgetIntermediateSolutions in interface IMIPResultpublic void setIntermediateSolutions(Queue<IntermediateSolution> lst)
public String toString(IMIP mip)
IMIPResulttoString in interface IMIPResultpublic boolean equal(Object other)
Copyright © 2017. All rights reserved.