|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.optimisation.VariablesBasedModel
public abstract class VariablesBasedModel
Basic instructions:
| Constructor Summary | |
|---|---|
VariablesBasedModel(Set<? extends Variable> someVariables)
|
|
VariablesBasedModel(Variable[] someVariables)
|
|
| Method Summary | |
|---|---|
CompoundFunction<BigDecimal> |
extractObjective()
|
int |
getComplexity()
|
abstract OptimisationSolver |
getDefaultSolver()
No need to implement an OptimisationModel if there is not
at least one matching OptimisationSolver. |
int |
getDim()
|
Expression |
getExpression(int anIndex)
|
Expression[] |
getExpressions()
|
BigDecimal |
getValue()
|
Variable |
getVariable(int anIndex)
|
Variable[] |
getVariables()
|
boolean |
isMaximisation()
|
boolean |
isMinimisation()
|
void |
setMaximisation(boolean aFlag)
Marks the model to be a maximisation problem, or not. |
void |
setMinimisation(boolean aFlag)
Marks the model to be a minimisation problem, or not. |
String |
toString()
|
abstract boolean |
validate()
GenericModel is meant to be extended in parallel with GenericSolver. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ojalgo.optimisation.OptimisationModel |
|---|
maximise, minimise |
| Constructor Detail |
|---|
public VariablesBasedModel(Set<? extends Variable> someVariables)
public VariablesBasedModel(Variable[] someVariables)
| Method Detail |
|---|
public CompoundFunction<BigDecimal> extractObjective()
public int getComplexity()
public abstract OptimisationSolver getDefaultSolver()
OptimisationModelOptimisationModel if there is not
at least one matching OptimisationSolver.
public int getDim()
public Expression getExpression(int anIndex)
public Expression[] getExpressions()
public final BigDecimal getValue()
public Variable getVariable(int anIndex)
public Variable[] getVariables()
public final String toString()
toString in class Object
public abstract boolean validate()
throws RecoverableCondition
RecoverableCondition. A typical case when this method
should return false is if variables are declared as integer, but the
solver cannot handle this (it simply disregards that constraint).
RecoverableCondition - If the model can be fixed during program
execution (perhaps by removing a constraint).
ProgrammingError - If the solver cannot deal with the model.public final boolean isMaximisation()
isMaximisation in interface OptimisationModelpublic final boolean isMinimisation()
isMinimisation in interface OptimisationModelpublic final void setMaximisation(boolean aFlag)
OptimisationModel
setMaximisation in interface OptimisationModelpublic final void setMinimisation(boolean aFlag)
OptimisationModel
setMinimisation in interface OptimisationModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||