Package org.optaplanner.core.api.score
Interface FeasibilityScore<S extends FeasibilityScore>
-
- All Superinterfaces:
Comparable<S>
,Score<S>
- All Known Implementing Classes:
BendableBigDecimalScore
,BendableLongScore
,BendableScore
,HardMediumSoftBigDecimalScore
,HardMediumSoftLongScore
,HardMediumSoftScore
,HardSoftBigDecimalScore
,HardSoftDoubleScore
,HardSoftLongScore
,HardSoftScore
@Deprecated public interface FeasibilityScore<S extends FeasibilityScore> extends Score<S>
Deprecated.MovedisFeasible()
up toScore
.AScore
that supportsisFeasible()
. MostScore
implementations implement this interface (includingHardSoftScore
), except forSimpleScore
variants, which are always feasible.- See Also:
Score
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
isFeasible()
Deprecated.APlanningSolution
is feasible if it has no broken hard constraints andScore.isSolutionInitialized()
is true.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.optaplanner.core.api.score.Score
add, divide, getInitScore, isCompatibleArithmeticArgument, isSolutionInitialized, multiply, negate, power, subtract, toInitializedScore, toLevelNumbers, toShortString, withInitScore
-
-
-
-
Method Detail
-
isFeasible
boolean isFeasible()
Deprecated.APlanningSolution
is feasible if it has no broken hard constraints andScore.isSolutionInitialized()
is true.- Specified by:
isFeasible
in interfaceScore<S extends FeasibilityScore>
- Returns:
- true if the hard score is 0 or higher and the
Score.getInitScore()
is 0.
-
-