Module logicng

Interface CCAtMostOne

    • Method Detail

      • build

        void build​(EncodingResult result,
                   Variable... vars)
        Builds a cardinality constraint of the form var_1 + var_2 + ... + var_n <= 1.
        Parameters:
        result - the result for the encoding
        vars - the variables var_1 ... var_n