public final class MathProgSysModel extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MathProgSysModel.Integration<S extends Optimisation.Solver> |
Optimisation.Constraint, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.Result, Optimisation.Solver, Optimisation.State
Modifier and Type | Field and Description |
---|---|
Optimisation.Options |
options |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Cleanup when a model instance is no longer needed.
|
boolean |
equals(Object obj) |
ExpressionsBasedModel |
getExpressionsBasedModel() |
String |
getName() |
int |
hashCode() |
boolean |
isMaximisation() |
boolean |
isMinimisation() |
static MathProgSysModel |
make(File file) |
Optimisation.Result |
maximise()
Will disregard the OBJSENSE and maximise.
|
Optimisation.Result |
minimise()
Will disregard the OBJSENSE and minimise.
|
void |
setMaximisation() |
protected void |
setMaximisation(boolean maximisation) |
void |
setMinimisation() |
protected void |
setMinimisation(boolean minimisation) |
Optimisation.Result |
solve()
If the OBJSENSE was specified in the file it is used otherwise the default is to minimise.
|
String |
toString() |
boolean |
validate() |
boolean |
validate(Access1D<BigDecimal> solution,
NumberContext context) |
public final Optimisation.Options options
public static MathProgSysModel make(File file)
public void dispose()
Optimisation.Model
public ExpressionsBasedModel getExpressionsBasedModel()
public String getName()
public Optimisation.Result maximise()
Optimisation.Model.maximise()
public Optimisation.Result minimise()
Optimisation.Model.minimise()
public Optimisation.Result solve()
If the OBJSENSE was specified in the file it is used otherwise the default is to minimise.
The solution (variable values) are in the order the columns were defined in the MPS-file.
public boolean validate()
public boolean validate(Access1D<BigDecimal> solution, NumberContext context)
public final boolean isMaximisation()
public final boolean isMinimisation()
public final void setMaximisation()
public final void setMinimisation()
protected final void setMaximisation(boolean maximisation)
protected final void setMinimisation(boolean minimisation)
Copyright © 2018 Optimatika. All rights reserved.