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.Result
 
Constructor Summary
JAMPL()
           
JAMPL(QuadraticModel 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.
 MatrixFactory getMatrixFactory()
           
 State getState()
           
 BigDecimal getValue()
           
 boolean isMaximisation()
           
 boolean isMinimisation()
           
 List<BigDecimal> maximise()
           
 List<BigDecimal> minimise()
           
 void reset()
           
 void setMatrixFactory(MatrixFactory aMatrixFactory)
           
 void setMaximisation(boolean aFlag)
           
 void setMinimisation(boolean aFlag)
           
 OptimisationSolver.Result solve()
           
 void terminate()
           
 String toArgumentString(Variable aVar)
           
 String toArgumentString(Variable[] theVars, CompoundFunction<BigDecimal> aFunction)
           
 
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
 

Constructor Detail

JAMPL

public JAMPL()

JAMPL

public JAMPL(QuadraticModel 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 MatrixFactory getMatrixFactory()

getState

public State getState()

getValue

public BigDecimal getValue()

isMaximisation

public boolean isMaximisation()

isMinimisation

public boolean isMinimisation()

maximise

public List<BigDecimal> maximise()
Specified by:
maximise in interface OptimisationModel

minimise

public List<BigDecimal> minimise()
Specified by:
minimise in interface OptimisationModel

reset

public void reset()

setMatrixFactory

public void setMatrixFactory(MatrixFactory aMatrixFactory)

setMaximisation

public void setMaximisation(boolean aFlag)

setMinimisation

public void setMinimisation(boolean aFlag)

solve

public OptimisationSolver.Result solve()
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,
                               CompoundFunction<BigDecimal> aFunction)