Interface ILearnFactory

  • All Superinterfaces:
    ISelf<Solver>
    All Known Subinterfaces:
    ISolver
    All Known Implementing Classes:
    Solver

    public interface ILearnFactory
    extends ISelf<Solver>
    Interface to define how to learn during the solving process (e.g. CBJ, DBT...)
    Author:
    Charles Prud'Homme, Jean-Guillaume Fages
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void setCBJLearning​(boolean nogoodsOn, boolean userFeedbackOn)
      Creates a learning object based on Conflict-based Backjumping (CBJ) explanation strategy.
      default void setDBTLearning​(boolean nogoodsOn, boolean userFeedbackOn)
      Creates a learning object based on Dynamic Backjumping (DBT) explanation strategy.
      default void setNoLearning()
      Indicate that no learning should be achieved during search (default configuration)
      • Methods inherited from interface org.chocosolver.solver.ISelf

        ref
    • Method Detail

      • setNoLearning

        default void setNoLearning()
        Indicate that no learning should be achieved during search (default configuration)
      • setCBJLearning

        default void setCBJLearning​(boolean nogoodsOn,
                                    boolean userFeedbackOn)
        Creates a learning object based on Conflict-based Backjumping (CBJ) explanation strategy. It backtracks up to the most recent decision involved in the explanation, and forget younger decisions.
        Parameters:
        nogoodsOn - set to true to extract nogoods from failures
        userFeedbackOn - set to true to record the propagation in conflict (only relevant when one wants to interpret the explanation of a failure).
      • setDBTLearning

        default void setDBTLearning​(boolean nogoodsOn,
                                    boolean userFeedbackOn)
        Creates a learning object based on Dynamic Backjumping (DBT) explanation strategy. It backtracks up to most recent decision involved in the explanation, keep unrelated ones.
        Parameters:
        nogoodsOn - set to true to extract nogoods from failures
        userFeedbackOn - set to true to record the propagation in conflict (only relevant when one wants to interpret the explanation of a failure).