public class JAMPL extends SystemProcess implements Optimisation.Model, Optimisation.Solver
Optimisation.Constraint, Optimisation.Integration<M extends Optimisation.Model,S extends Optimisation.Solver>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.Result, Optimisation.Solver, Optimisation.State
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
Constructor and Description |
---|
JAMPL() |
JAMPL(ExpressionsBasedModel aModel) |
Modifier and Type | Method and Description |
---|---|
List<Message> |
communicate(Command aCommand) |
List<Message> |
communicate(Command aCommand,
String anArg) |
void |
dispose()
Cleanup when a model instance is no longer needed.
|
double |
doubleValue(int anInd) |
BigDecimal |
get(int anInd) |
JAMPL |
getDefaultSolver() |
BasicMatrix.Factory |
getMatrixFactory() |
Optimisation.State |
getState() |
BigDecimal |
getValue() |
boolean |
isMaximisation() |
boolean |
isMinimisation() |
Iterator<BigDecimal> |
iterator() |
Optimisation.Result |
maximise() |
Optimisation.Result |
minimise() |
void |
reset() |
void |
setMatrixFactory(BasicMatrix.Factory aMatrixFactory) |
void |
setMaximisation(boolean aFlag) |
void |
setMinimisation(boolean aFlag) |
int |
size() |
Optimisation.Result |
solve() |
JAMPL |
solve(JAMPL aModel) |
Optimisation.Result |
solve(Optimisation.Result kickStarter) |
void |
terminate() |
String |
toArgumentString(List<Variable> theVars,
Expression aFunction) |
String |
toArgumentString(Variable aVar) |
boolean |
validate() |
communicate, communicate, getLastReturnArgument
public JAMPL()
public JAMPL(ExpressionsBasedModel aModel)
public double doubleValue(int anInd)
public BigDecimal get(int anInd)
public JAMPL getDefaultSolver()
public BasicMatrix.Factory getMatrixFactory()
public Optimisation.State getState()
public BigDecimal getValue()
public boolean isMaximisation()
public boolean isMinimisation()
public Iterator<BigDecimal> iterator()
public Optimisation.Result maximise()
maximise
in interface Optimisation.Model
public Optimisation.Result minimise()
minimise
in interface Optimisation.Model
public void reset()
public void setMatrixFactory(BasicMatrix.Factory aMatrixFactory)
public void setMaximisation(boolean aFlag)
public void setMinimisation(boolean aFlag)
public int size()
public Optimisation.Result solve()
solve
in interface Optimisation.Solver
public Optimisation.Result solve(Optimisation.Result kickStarter)
solve
in interface Optimisation.Solver
public void terminate()
terminate
in class SystemProcess
public String toArgumentString(List<Variable> theVars, Expression aFunction)
public boolean validate()
validate
in interface Optimisation.Model
public void dispose()
Optimisation.Model
dispose
in interface Optimisation.Model
dispose
in interface Optimisation.Solver