org.ojalgo.optimisation
Class ConstraintsBasedModel<C extends ModelComponent<C> & Constraint,M extends ConstraintsBasedModel<C,M>>

java.lang.Object
  extended by org.ojalgo.optimisation.ModelEntity<org.ojalgo.optimisation.AbstractModel>
      extended by org.ojalgo.optimisation.ConstraintsBasedModel<C,M>
All Implemented Interfaces:
Comparable<org.ojalgo.optimisation.AbstractModel>, OptimisationModel
Direct Known Subclasses:
MathProgSysModel

public abstract class ConstraintsBasedModel<C extends ModelComponent<C> & Constraint,M extends ConstraintsBasedModel<C,M>>
extends ModelEntity<org.ojalgo.optimisation.AbstractModel>


Method Summary
 boolean isMaximisation()
           
 boolean isMinimisation()
           
 void setMaximisation(boolean aFlag)
           
 void setMinimisation(boolean aFlag)
           
 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.optimisation.ModelEntity
compareTo, equals, getName, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ojalgo.optimisation.OptimisationModel
getDefaultSolver, maximise, minimise
 

Method Detail

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.

Throws:
ModelValidationException

validateSolution

public boolean validateSolution(BasicMatrix aSolution,
                                NumberContext aContext)

validateSolution

public boolean validateSolution(NumberContext aContext)

isMaximisation

public final boolean isMaximisation()

isMinimisation

public final boolean isMinimisation()

setMaximisation

public final void setMaximisation(boolean aFlag)

setMinimisation

public final void setMinimisation(boolean aFlag)