Class AbstractSimpleModel

java.lang.Object
ai.timefold.solver.service.definition.api.AbstractSimpleModel
All Implemented Interfaces:
ModelInput, ModelOutput, SolverModel<ai.timefold.solver.core.api.score.HardMediumSoftScore>

public abstract class AbstractSimpleModel extends Object implements ModelInput, SolverModel<ai.timefold.solver.core.api.score.HardMediumSoftScore>, ModelOutput
Represents a simplified model with the default score type HardMediumSoftScore acting as the ModelInput, SolverModel and ModelOutput.

If any of a different score type, a separated model input from the model output and the solver model is required, implement the ModelInput, ModelOutput and SolverModel interfaces directly.

If ModelInputMetrics or ModelOutputMetrics collecting is required, implement InputMetricsAware or OutputMetricsAware interfaces.

  • Constructor Details

    • AbstractSimpleModel

      public AbstractSimpleModel()
  • Method Details

    • getScore

      public ai.timefold.solver.core.api.score.HardMediumSoftScore getScore()
      Specified by:
      getScore in interface SolverModel<ai.timefold.solver.core.api.score.HardMediumSoftScore>
    • setScore

      public void setScore(ai.timefold.solver.core.api.score.HardMediumSoftScore score)