Interface CustomPhaseCommand<Solution_>

  • Type Parameters:
    Solution_ - the solution type, the class with the PlanningSolution annotation
    All Known Implementing Classes:
    NoChangeCustomPhaseCommand
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface CustomPhaseCommand<Solution_>
    Runs a custom algorithm as a Phase of the Solver that changes the planning variables. Do not abuse to change the problems facts, instead use Solver.addProblemFactChange(ProblemFactChange) for that.

    To add custom properties, configure custom properties and add public setters for them.