Module logicng

Class MaxSATConfig.Builder

  • Enclosing class:
    MaxSATConfig

    public static class MaxSATConfig.Builder
    extends Object
    The builder for a MaxSAT configuration.
    • Method Detail

      • symmetry

        public MaxSATConfig.Builder symmetry​(boolean symm)
        Enables symmetry handling. The default value is true.
        Parameters:
        symm - {code true} if symmetry handling should be activated, false otherwise
        Returns:
        the builder
      • limit

        public MaxSATConfig.Builder limit​(int lim)
        Sets the symmetry limit. The default value is Integer.MAX_VALUE.
        Parameters:
        lim - the symmetry limit
        Returns:
        the builder
      • bmo

        public MaxSATConfig.Builder bmo​(boolean bmo)
        Enables BMO (Boolean Multilevel Optimization). The default value is true.
        Parameters:
        bmo - {code true} if BMO should be activated, false otherwise
        Returns:
        the builder
      • verbosity

        public MaxSATConfig.Builder verbosity​(MaxSATConfig.Verbosity verb)
        Sets the verbosity. The default value is NONE. If you set the verbosity to SOME you have also to set an output stream.
        Parameters:
        verb - the verbosity level
        Returns:
        the builder
      • output

        public MaxSATConfig.Builder output​(PrintStream output)
        Sets the output stream for logging information. The default ist System.out.
        Parameters:
        output - the output stream for logging information
        Returns:
        the builder
      • build

        public MaxSATConfig build()
        Builds the configuration.
        Returns:
        the configuration.