Module logicng

Class BackboneGeneration


  • public final class BackboneGeneration
    extends Object
    Main entry point for backbone computations.

    This class provides convenient methods for backbone computation for many use cases.

    Since:
    1.5.0
    Version:
    2.1.0
    • Method Detail

      • compute

        public static Backbone compute​(Collection<Formula> formulas,
                                       Collection<Variable> variables,
                                       BackboneType type,
                                       SATHandler handler)
        Computes the backbone for a given collection of formulas w.r.t. a collection of variables and a backbone type.
        Parameters:
        formulas - the given collection of formulas
        variables - the given collection of relevant variables for the backbone computation
        type - the type of backbone variables that should be computed
        handler - an optional handler for the backbone computation's SAT solver
        Returns:
        the backbone or null if the computation was aborted by the handler
      • compute

        public static Backbone compute​(Collection<Formula> formulas,
                                       Collection<Variable> variables,
                                       BackboneType type)
        Computes the backbone for a given collection of formulas w.r.t. a collection of variables and a backbone type.
        Parameters:
        formulas - the given collection of formulas
        variables - the given collection of relevant variables for the backbone computation
        type - the type of backbone variables that should be computed
        Returns:
        the backbone
      • compute

        public static Backbone compute​(Collection<Formula> formulas,
                                       Collection<Variable> variables)
        Computes the complete backbone for a given collection of formulas w.r.t. a collection of variables and a backbone type.
        Parameters:
        formulas - the given collection of formulas
        variables - the given collection of relevant variables for the backbone computation
        Returns:
        the backbone
      • compute

        public static Backbone compute​(Collection<Formula> formulas,
                                       BackboneType type)
        Computes the backbone for a given collection of formulas w.r.t. a given backbone type.
        Parameters:
        formulas - the given collection of formulas
        type - the type of backbone variables that should be computed
        Returns:
        the backbone
      • compute

        public static Backbone compute​(Collection<Formula> formulas)
        Computes the complete backbone for a given collection of formulas.
        Parameters:
        formulas - the given collection of formulas
        Returns:
        the backbone
      • compute

        public static Backbone compute​(Formula formula,
                                       Collection<Variable> variables,
                                       BackboneType type)
        Computes the backbone for a given formula w.r.t. a collection of variables and a backbone type.
        Parameters:
        formula - the given formula
        variables - the given collection of relevant variables for the backbone computation
        type - the type of backbone variables that should be computed
        Returns:
        the backbone
      • compute

        public static Backbone compute​(Formula formula,
                                       Collection<Variable> variables)
        Computes the complete backbone for a given formula w.r.t. a collection of variables and a backbone type.
        Parameters:
        formula - the given formula
        variables - the given collection of relevant variables for the backbone computation
        Returns:
        the backbone
      • compute

        public static Backbone compute​(Formula formula,
                                       BackboneType type)
        Computes the backbone for a given formula w.r.t. a given backbone type.
        Parameters:
        formula - the given formula
        type - the type of backbone variables that should be computed
        Returns:
        the backbone
      • compute

        public static Backbone compute​(Formula formula)
        Computes the complete backbone for a given formula.
        Parameters:
        formula - the given formula
        Returns:
        the backbone
      • computePositive

        public static Backbone computePositive​(Collection<Formula> formulas,
                                               Collection<Variable> variables)
        Computes the positive backbone variables for a given collection of formulas w.r.t. a collection of variables.
        Parameters:
        formulas - the given collection of formulas
        variables - the given collection of relevant variables for the backbone computation
        Returns:
        the positive backbone
      • computePositive

        public static Backbone computePositive​(Collection<Formula> formulas)
        Computes the positive backbone variables for a given collection of formulas.
        Parameters:
        formulas - the given collection of formulas
        Returns:
        the positive backbone
      • computePositive

        public static Backbone computePositive​(Formula formula,
                                               Collection<Variable> variables)
        Computes the positive backbone allVariablesInFormulas for a given formula w.r.t. a collection of variables.
        Parameters:
        formula - the given formula
        variables - the given collection of relevant variables for the backbone computation
        Returns:
        the positive backbone
      • computePositive

        public static Backbone computePositive​(Formula formula)
        Computes the positive backbone variables for a given formula.
        Parameters:
        formula - the given formula
        Returns:
        the positive backbone
      • computeNegative

        public static Backbone computeNegative​(Collection<Formula> formulas,
                                               Collection<Variable> variables)
        Computes the negative backbone variables for a given collection of formulas w.r.t. a collection of variables.
        Parameters:
        formulas - the given collection of formulas
        variables - the given collection of relevant variables for the backbone computation
        Returns:
        the negative backbone
      • computeNegative

        public static Backbone computeNegative​(Collection<Formula> formulas)
        Computes the negative backbone variables for a given collection of formulas.
        Parameters:
        formulas - the given collection of formulas
        Returns:
        the negative backbone
      • computeNegative

        public static Backbone computeNegative​(Formula formula,
                                               Collection<Variable> variables)
        Computes the negative backbone variables for a given formula w.r.t. a collection of variables.
        Parameters:
        formula - the given formula
        variables - the given collection of relevant variables for the backbone computation
        Returns:
        the negative backbone
      • computeNegative

        public static Backbone computeNegative​(Formula formula)
        Computes the negative backbone variables for a given formula.
        Parameters:
        formula - the given formula
        Returns:
        the negative backbone