Class ClauseBuilder


  • public class ClauseBuilder
    extends Object
    A signed clause builder

    Project: choco-solver.

    Since:
    12/10/2016.
    Author:
    Charles Prud'homme
    • Field Detail

      • ELIMINATE_VIEWS

        public static boolean ELIMINATE_VIEWS
    • Constructor Detail

      • ClauseBuilder

        public ClauseBuilder​(Model mModel)
        Nogood builder, to ease declaration of nogoods
        Parameters:
        mModel - model to declare the nogoods in
    • Method Detail

      • put

        public ClauseBuilder put​(IntVar var,
                                 IntIterableRangeSet set)
        Add a literal (var ∈ set) in this, considering that the entry is only added once (no need to perform internal operations). The set can be recycle only after the call to buildNogood(Model)
        Parameters:
        var - a variable
        set - a set of values
        Returns:
        the nogood maker
      • buildNogood

        public void buildNogood​(Model model)
        Build the nogood in memory and post it to model