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.AScorethat supportsisFeasible(). MostScoreimplementations implement this interface (includingHardSoftScore), except forSimpleScorevariants, which are always feasible.- See Also:
 Score
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanisFeasible()Deprecated.APlanningSolutionis 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.APlanningSolutionis feasible if it has no broken hard constraints andScore.isSolutionInitialized()is true.- Specified by:
 isFeasiblein interfaceScore<S extends FeasibilityScore>- Returns:
 - true if the hard score is 0 or higher and the 
Score.getInitScore()is 0. 
 
 - 
 
 -