public abstract class ModelMIP extends Object
| Constructor and Description |
|---|
ModelMIP() |
| Modifier and Type | Method and Description |
|---|---|
edu.harvard.econcs.jopt.solver.mip.MIP |
getMip()
This is mainly used for testing or if you need to access special SolveParams.
|
void |
setAcceptSuboptimal(boolean acceptSuboptimal)
Defines the behaviour in case the solver hits the defined timeout.
|
void |
setDisplayOutput(boolean displayOutput)
Defines whether or not the solver output should be displayed.
|
void |
setTimeLimit(double timeLimit)
Defines the time limit for the solver.
|
public edu.harvard.econcs.jopt.solver.mip.MIP getMip()
public void setDisplayOutput(boolean displayOutput)
displayOutput - If the output of the solver should be displayed, set this to true.public void setAcceptSuboptimal(boolean acceptSuboptimal)
acceptSuboptimal - true: accept a suboptimal solution at timeout; false: throw an exception at timeoutpublic void setTimeLimit(double timeLimit)
setAcceptSuboptimal(boolean).timeLimit - the time limit in secondsCopyright © 2018. All rights reserved.