se.optimatika.ampl
Class JAMPL

java.lang.Object
  extended by org.ojalgo.netio.SystemProcess
      extended by se.optimatika.ampl.JAMPL
All Implemented Interfaces:
OptimisationModel, OptimisationSolver

public class JAMPL
extends SystemProcess
implements OptimisationModel, OptimisationSolver


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ojalgo.optimisation.OptimisationSolver
OptimisationSolver.Builder<S extends OptimisationSolver>, OptimisationSolver.Options, OptimisationSolver.Result
 
Field Summary
static boolean DEBUG
           
 
Constructor Summary
JAMPL()
           
JAMPL(ExpressionsBasedModel<?> aModel)
           
 
Method Summary
 List<Message> communicate(Command aCommand)
           
 List<Message> communicate(Command aCommand, String anArg)
           
 OptimisationSolver getDefaultSolver()
          No need to implement an OptimisationModel if there is not at least one matching OptimisationSolver.
 BasicMatrix.Factory getMatrixFactory()
           
 State getState()
           
 BigDecimal getValue()
           
 boolean isMaximisation()
           
 boolean isMinimisation()
           
 BigDecimal maximise()
           
 BigDecimal minimise()
           
 void reset()
           
 void setMatrixFactory(BasicMatrix.Factory aMatrixFactory)
           
 void setMaximisation(boolean aFlag)
           
 void setMinimisation(boolean aFlag)
           
 OptimisationSolver.Result solve()
           
 OptimisationSolver.Result solve(OptimisationModel aValidationModel)
           
 void terminate()
           
 String toArgumentString(Variable aVar)
           
 String toArgumentString(Variable[] theVars, Expression aFunction)
           
 boolean validateComposition()
          OptimisationModel is meant to be implemented in parallel with OptimisationSolver.
 boolean validateSolution(BasicMatrix aSolution, NumberContext aContext)
           
 boolean validateSolution(NumberContext aContext)
           
 
Methods inherited from class org.ojalgo.netio.SystemProcess
communicate, communicate, getLastReturnArgument
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG
Constructor Detail

JAMPL

public JAMPL()

JAMPL

public JAMPL(ExpressionsBasedModel<?> aModel)
Method Detail

communicate

public List<Message> communicate(Command aCommand)

communicate

public List<Message> communicate(Command aCommand,
                                 String anArg)

getDefaultSolver

public OptimisationSolver getDefaultSolver()
Description copied from interface: OptimisationModel
No need to implement an OptimisationModel if there is not at least one matching OptimisationSolver.

Specified by:
getDefaultSolver in interface OptimisationModel

getMatrixFactory

public BasicMatrix.Factory getMatrixFactory()

getState

public State getState()

getValue

public BigDecimal getValue()

isMaximisation

public boolean isMaximisation()

isMinimisation

public boolean isMinimisation()

maximise

public BigDecimal maximise()
Specified by:
maximise in interface OptimisationModel

minimise

public BigDecimal minimise()
Specified by:
minimise in interface OptimisationModel

reset

public void reset()

setMatrixFactory

public void setMatrixFactory(BasicMatrix.Factory aMatrixFactory)

setMaximisation

public void setMaximisation(boolean aFlag)

setMinimisation

public void setMinimisation(boolean aFlag)

solve

public OptimisationSolver.Result solve()
Specified by:
solve in interface OptimisationSolver

solve

public OptimisationSolver.Result solve(OptimisationModel aValidationModel)
Specified by:
solve in interface OptimisationSolver

terminate

public void terminate()
Overrides:
terminate in class SystemProcess

toArgumentString

public String toArgumentString(Variable aVar)

toArgumentString

public String toArgumentString(Variable[] theVars,
                               Expression aFunction)

validateComposition

public boolean validateComposition()
                            throws ModelValidationException
Description copied from interface: OptimisationModel
OptimisationModel is meant to be implemented in parallel with OptimisationSolver. This method indicates if the model is built in a way the solver can handle or not.

Specified by:
validateComposition in interface OptimisationModel
Throws:
ModelValidationException

validateSolution

public boolean validateSolution(BasicMatrix aSolution,
                                NumberContext aContext)
Specified by:
validateSolution in interface OptimisationModel

validateSolution

public boolean validateSolution(NumberContext aContext)
Specified by:
validateSolution in interface OptimisationModel