public abstract class ModelEntity<ME extends ModelEntity<ME>> extends java.lang.Object implements Optimisation.Constraint, Optimisation.Objective, java.lang.Comparable<ME>
Optimisation.Constraint, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.Result, Optimisation.Solver, Optimisation.State
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ME obj) |
boolean |
equals(java.lang.Object obj) |
double |
getAdjustedLowerLimit() |
double |
getAdjustedUpperLimit() |
double |
getAdjustmentFactor() |
java.math.BigDecimal |
getContributionWeight()
May return null
|
java.math.BigDecimal |
getLowerLimit()
May return null
|
java.lang.String |
getName() |
java.math.BigDecimal |
getUpperLimit()
May return null
|
int |
hashCode() |
boolean |
isActiveInequalityConstraint() |
boolean |
isConstraint()
The Constraint has a lower or an upper limit (possibly both).
|
boolean |
isContributionWeightSet() |
boolean |
isEqualityConstraint()
The Constraint has both a lower limit and an upper limit, and they are equal.
|
boolean |
isLowerConstraint()
The Constraint has a lower limit, and the upper limit (if it exists) is different.
|
boolean |
isLowerLimitSet() |
boolean |
isObjective() |
boolean |
isUpperConstraint()
The Constraint has an upper limit, and the lower limit (if it exists) is different.
|
boolean |
isUpperLimitSet() |
ME |
level(java.lang.Number aLowerAndUpperLimit) |
ME |
lower(java.lang.Number lowerLimit) |
java.lang.String |
toString() |
ME |
upper(java.lang.Number upperLimit) |
ME |
weight(java.lang.Number contributionWeight) |
public final int compareTo(ME obj)
compareTo
in interface java.lang.Comparable<ME extends ModelEntity<ME>>
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public final double getAdjustedLowerLimit()
public final double getAdjustedUpperLimit()
public final double getAdjustmentFactor()
public final java.math.BigDecimal getContributionWeight()
Optimisation.Objective
getContributionWeight
in interface Optimisation.Objective
org.ojalgo.optimisation.Objective#getContributionWeight()
public final java.math.BigDecimal getLowerLimit()
Optimisation.Constraint
getLowerLimit
in interface Optimisation.Constraint
org.ojalgo.optimisation.Constraint#getLowerLimit()
public final java.lang.String getName()
public final java.math.BigDecimal getUpperLimit()
Optimisation.Constraint
getUpperLimit
in interface Optimisation.Constraint
org.ojalgo.optimisation.Constraint#getUpperLimit()
public final int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public final boolean isActiveInequalityConstraint()
public final boolean isConstraint()
Optimisation.Constraint
isConstraint
in interface Optimisation.Constraint
org.ojalgo.optimisation.Constraint#isConstraint()
public final boolean isContributionWeightSet()
public final boolean isEqualityConstraint()
Optimisation.Constraint
isEqualityConstraint
in interface Optimisation.Constraint
org.ojalgo.optimisation.Constraint#isEqualityConstraint()
public final boolean isLowerConstraint()
Optimisation.Constraint
isLowerConstraint
in interface Optimisation.Constraint
org.ojalgo.optimisation.Constraint#isLowerConstraint()
public final boolean isLowerLimitSet()
public final boolean isObjective()
isObjective
in interface Optimisation.Objective
org.ojalgo.optimisation.Objective#isObjective()
public final boolean isUpperConstraint()
Optimisation.Constraint
isUpperConstraint
in interface Optimisation.Constraint
org.ojalgo.optimisation.Constraint#isUpperConstraint()
public final boolean isUpperLimitSet()
public final ME level(java.lang.Number aLowerAndUpperLimit)
public final ME lower(java.lang.Number lowerLimit)
public final java.lang.String toString()
toString
in class java.lang.Object
public final ME upper(java.lang.Number upperLimit)
public final ME weight(java.lang.Number contributionWeight)