org.ojalgo.optimisation
Class ConstraintsBasedModel<C extends ModelComponent<C> & Constraint,M extends ConstraintsBasedModel<C,M>>
java.lang.Object
org.ojalgo.optimisation.ModelEntity<org.ojalgo.optimisation.AbstractModel>
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>
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)