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.
  Moved `isFeasible()` up to `Score`.
  A `Score` that supports `isFeasible()`. Most `Score` implementations implement this interface (including `HardSoftScore`), except for `SimpleScore` 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. A `PlanningSolution` is feasible if it has no broken hard constraints and `Score.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.
      A `PlanningSolution` is feasible if it has no broken hard constraints and `Score.isSolutionInitialized()` is true.
      Specified by:
        `isFeasible` in interface `Score<S extends FeasibilityScore>`
      Returns:
        true if the hard score is 0 or higher and the `Score.getInitScore()` is 0.