Module logicng

Class AdvancedSimplifierConfig.Builder

  • Enclosing class:
    AdvancedSimplifierConfig

    public static class AdvancedSimplifierConfig.Builder
    extends Object
    The builder for the advanced simplifier configuration.
    • Method Detail

      • restrictBackbone

        public AdvancedSimplifierConfig.Builder restrictBackbone​(boolean restrictBackbone)
        Sets the flag for whether the formula should be restricted with the backbone. The default is 'true'.
        Parameters:
        restrictBackbone - flag for the restriction
        Returns:
        the current builder
      • factorOut

        public AdvancedSimplifierConfig.Builder factorOut​(boolean factorOut)
        Sets the flag for whether the formula should be factorized. The default is 'true'.
        Parameters:
        factorOut - flag for the factorisation
        Returns:
        the current builder
      • simplifyNegations

        public AdvancedSimplifierConfig.Builder simplifyNegations​(boolean simplifyNegations)
        Sets the flag for whether negations shall be simplified. The default is 'true'.
        Parameters:
        simplifyNegations - flag
        Returns:
        the current builder
      • ratingFunction

        public AdvancedSimplifierConfig.Builder ratingFunction​(RatingFunction<?> ratingFunction)
        Sets the rating function. The aim of the simplification is to minimize the formula with respect to this rating function, e.g. finding a formula with a minimal number of symbols when represented as string. The default is the DefaultRatingFunction.
        Parameters:
        ratingFunction - the desired rating function
        Returns:
        the current builder