Module logicng

Class MUSGeneration


  • public final class MUSGeneration
    extends Object
    Computes a minimal unsatisfiable subset (MUS) of a given formula with different algorithms.
    Since:
    1.1
    Version:
    2.0.0
    • Constructor Detail

      • MUSGeneration

        public MUSGeneration()
        Constructs a new MUS generator.
    • Method Detail

      • computeMUS

        public <T extends Proposition> UNSATCore<T> computeMUS​(List<T> propositions,
                                                               FormulaFactory f)
        Computes a MUS for the given propositions with the default algorithm and the MUS configuration from the formula factory.
        Type Parameters:
        T - the type of the MUSes propositions
        Parameters:
        propositions - the propositions
        f - the formula factory
        Returns:
        the MUS
      • computeMUS

        public <T extends Proposition> UNSATCore<T> computeMUS​(List<T> propositions,
                                                               FormulaFactory f,
                                                               MUSConfig config)
        Computes a MUS for the given propositions and the given configuration of the MUS generation.
        Type Parameters:
        T - the type of the MUSes propositions
        Parameters:
        propositions - the propositions
        f - the formula factory
        config - the MUS configuration
        Returns:
        the MUS