- java.lang.Object
-
- org.logicng.backbones.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Backbonecompute(Collection<Formula> formulas)Computes the complete backbone for a given collection of formulas.static Backbonecompute(Collection<Formula> formulas, Collection<Variable> variables)Computes the complete backbone for a given collection of formulas w.r.t.static Backbonecompute(Collection<Formula> formulas, Collection<Variable> variables, BackboneType type)Computes the backbone for a given collection of formulas w.r.t.static Backbonecompute(Collection<Formula> formulas, Collection<Variable> variables, BackboneType type, SATHandler handler)Computes the backbone for a given collection of formulas w.r.t.static Backbonecompute(Collection<Formula> formulas, BackboneType type)Computes the backbone for a given collection of formulas w.r.t.static Backbonecompute(Formula formula)Computes the complete backbone for a given formula.static Backbonecompute(Formula formula, Collection<Variable> variables)Computes the complete backbone for a given formula w.r.t.static Backbonecompute(Formula formula, Collection<Variable> variables, BackboneType type)Computes the backbone for a given formula w.r.t.static Backbonecompute(Formula formula, BackboneType type)Computes the backbone for a given formula w.r.t.static BackbonecomputeNegative(Collection<Formula> formulas)Computes the negative backbone variables for a given collection of formulas.static BackbonecomputeNegative(Collection<Formula> formulas, Collection<Variable> variables)Computes the negative backbone variables for a given collection of formulas w.r.t.static BackbonecomputeNegative(Formula formula)Computes the negative backbone variables for a given formula.static BackbonecomputeNegative(Formula formula, Collection<Variable> variables)Computes the negative backbone variables for a given formula w.r.t.static BackbonecomputePositive(Collection<Formula> formulas)Computes the positive backbone variables for a given collection of formulas.static BackbonecomputePositive(Collection<Formula> formulas, Collection<Variable> variables)Computes the positive backbone variables for a given collection of formulas w.r.t.static BackbonecomputePositive(Formula formula)Computes the positive backbone variables for a given formula.static BackbonecomputePositive(Formula formula, Collection<Variable> variables)Computes the positive backbone allVariablesInFormulas for a given formula w.r.t.
-
-
-
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 formulasvariables- the given collection of relevant variables for the backbone computationtype- the type of backbone variables that should be computedhandler- an optional handler for the backbone computation's SAT solver- Returns:
- the backbone or
nullif 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 formulasvariables- the given collection of relevant variables for the backbone computationtype- 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 formulasvariables- 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 formulastype- 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 formulavariables- the given collection of relevant variables for the backbone computationtype- 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 formulavariables- 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 formulatype- 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 formulasvariables- 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 formulavariables- 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 formulasvariables- 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 formulavariables- the given collection of relevant variables for the backbone computation- Returns:
- the negative backbone
-
-