|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.optimisation.VariablesBasedModel
org.ojalgo.optimisation.quadratic.QuadraticModel
public class QuadraticModel
| Constructor Summary | |
|---|---|
QuadraticModel(Set<Variable> someVariables)
|
|
QuadraticModel(Variable[] someVariables)
|
|
| Method Summary | |
|---|---|
Expression |
addCorrelationExpression(String aName,
BasicMatrix aCorrelationsMatrix)
|
Expression |
addEmptyQuadraticExpression(String aName)
|
Expression |
addGeneralExpression(String aName)
|
Expression |
addOffsetExpression(String aName,
Array1Dim<BigDecimal> theOrigin)
Generates a constraint that measures the distance from a specified point. |
Expression |
addSimpleWeightExpression(String aName)
|
Expression |
addWeightExpression(String aName,
Array1Dim<BigDecimal> theWeights)
|
OptimisationSolver |
getDefaultSolver()
No need to implement an OptimisationModel if there is not
at least one matching OptimisationSolver. |
boolean |
isMaximisation()
|
boolean |
isMinimisation()
|
List<BigDecimal> |
maximise()
|
List<BigDecimal> |
minimise()
|
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. |
boolean |
validate()
GenericModel is meant to be extended in parallel with GenericSolver. |
| Methods inherited from class org.ojalgo.optimisation.VariablesBasedModel |
|---|
extractObjective, getComplexity, getDim, getExpression, getExpressions, getValue, getVariable, getVariables, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QuadraticModel(Set<Variable> someVariables)
public QuadraticModel(Variable[] someVariables)
| Method Detail |
|---|
public Expression addCorrelationExpression(String aName,
BasicMatrix aCorrelationsMatrix)
public Expression addEmptyQuadraticExpression(String aName)
public Expression addGeneralExpression(String aName)
public Expression addOffsetExpression(String aName,
Array1Dim<BigDecimal> theOrigin)
aName - An expression nametheOrigin - The "specified point"
public Expression addSimpleWeightExpression(String aName)
public Expression addWeightExpression(String aName,
Array1Dim<BigDecimal> theWeights)
public OptimisationSolver getDefaultSolver()
OptimisationModelOptimisationModel if there is not
at least one matching OptimisationSolver.
getDefaultSolver in interface OptimisationModelgetDefaultSolver in class VariablesBasedModelpublic List<BigDecimal> maximise()
public List<BigDecimal> minimise()
public boolean validate()
throws RecoverableCondition
VariablesBasedModelRecoverableCondition. 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).
validate in class VariablesBasedModelRecoverableCondition - If the model can be fixed during program
execution (perhaps by removing a constraint).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 | ||||||||