Uses of Class
org.logicng.formulas.FormulaFactory
-
-
Uses of FormulaFactory in org.logicng.backbones
Methods in org.logicng.backbones with parameters of type FormulaFactory Modifier and Type Method Description FormulaBackbone. toFormula(FormulaFactory f)Returns the positive and negative backbone as a conjunction of literals. -
Uses of FormulaFactory in org.logicng.cardinalityconstraints
Fields in org.logicng.cardinalityconstraints declared as FormulaFactory Modifier and Type Field Description protected FormulaFactoryCCEncoder. fConstructors in org.logicng.cardinalityconstraints with parameters of type FormulaFactory Constructor Description CCEncoder(FormulaFactory f)Constructs a new cardinality constraint encoder which uses the configuration of the formula factory.CCEncoder(FormulaFactory f, CCConfig config)Constructs a new cardinality constraint encoder with a given configuration. -
Uses of FormulaFactory in org.logicng.datastructures
Methods in org.logicng.datastructures with parameters of type FormulaFactory Modifier and Type Method Description FormulaAssignment. blockingClause(FormulaFactory f)Creates the blocking clause for this assignment.FormulaAssignment. blockingClause(FormulaFactory f, Collection<? extends Literal> literals)Creates the blocking clause for this assignment wrt.FormulaAssignment. formula(FormulaFactory f)Returns the assignment as a formula.static EncodingResultEncodingResult. resultForFormula(FormulaFactory f)Constructs a new result which stores the result in a formula.static EncodingResultEncodingResult. resultForMiniSat(FormulaFactory f, MiniSat miniSat, Proposition proposition)Constructs a new result which adds the result directly to a given MiniSat solver. -
Uses of FormulaFactory in org.logicng.explanations.mus
Methods in org.logicng.explanations.mus with parameters of type FormulaFactory Modifier and Type Method Description <T extends Proposition>
UNSATCore<T>DeletionBasedMUS. computeMUS(List<T> propositions, FormulaFactory f, MUSConfig config)<T extends Proposition>
UNSATCore<T>MUSGeneration. 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.<T extends Proposition>
UNSATCore<T>MUSGeneration. computeMUS(List<T> propositions, FormulaFactory f, MUSConfig config)Computes a MUS for the given propositions and the given configuration of the MUS generation.<T extends Proposition>
UNSATCore<T>PlainInsertionBasedMUS. computeMUS(List<T> propositions, FormulaFactory f, MUSConfig config) -
Uses of FormulaFactory in org.logicng.explanations.smus
Methods in org.logicng.explanations.smus with parameters of type FormulaFactory Modifier and Type Method Description static <P extends Proposition>
List<P>SmusComputation. computeSmus(List<P> propositions, List<Formula> additionalConstraints, FormulaFactory f)Computes the SMUS for the given list of propositions modulo some additional constraint.static <P extends Proposition>
List<P>SmusComputation. computeSmus(List<P> propositions, List<Formula> additionalConstraints, FormulaFactory f, OptimizationHandler handler)Computes the SMUS for the given list of propositions modulo some additional constraint.static List<Formula>SmusComputation. computeSmusForFormulas(List<Formula> formulas, List<Formula> additionalConstraints, FormulaFactory f)Computes the SMUS for the given list of formulas and some additional constraints.static List<Formula>SmusComputation. computeSmusForFormulas(List<Formula> formulas, List<Formula> additionalConstraints, FormulaFactory f, OptimizationHandler handler)Computes the SMUS for the given list of formulas and some additional constraints. -
Uses of FormulaFactory in org.logicng.formulas
Subclasses of FormulaFactory in org.logicng.formulas Modifier and Type Class Description classExtendedFormulaFactoryAn extended version of the formula factory that allows saving and loading states to reduce memory usage.Fields in org.logicng.formulas declared as FormulaFactory Modifier and Type Field Description protected FormulaFactoryFormula. fMethods in org.logicng.formulas that return FormulaFactory Modifier and Type Method Description FormulaFactoryFormula. factory()Returns the factory of this formula.FormulaFactoryLiteral. factory()Constructors in org.logicng.formulas with parameters of type FormulaFactory Constructor Description Formula(FType type, FormulaFactory f)Constructs a new formula.Variable(String name, FormulaFactory f)Constructor. -
Uses of FormulaFactory in org.logicng.io.parsers
Fields in org.logicng.io.parsers declared as FormulaFactory Modifier and Type Field Description protected FormulaFactoryParserWithFormula. fMethods in org.logicng.io.parsers that return FormulaFactory Modifier and Type Method Description FormulaFactoryFormulaParser. factory()Returns the factory of this parser.Methods in org.logicng.io.parsers with parameters of type FormulaFactory Modifier and Type Method Description voidParserWithFormula. setFormulaFactory(FormulaFactory f)Sets the LogicNG formula factory for this parserConstructors in org.logicng.io.parsers with parameters of type FormulaFactory Constructor Description FormulaParser(FormulaFactory f)Constructor.PropositionalParser(FormulaFactory f)Constructs a new parser.PseudoBooleanParser(FormulaFactory f)Constructs a new parser for pseudo boolean formulas. -
Uses of FormulaFactory in org.logicng.io.readers
Methods in org.logicng.io.readers with parameters of type FormulaFactory Modifier and Type Method Description static List<Formula>DimacsReader. readCNF(File file, FormulaFactory f)Reads a given DIMACS CNF file and returns the contained clauses as a list of formulas.static List<Formula>DimacsReader. readCNF(File file, FormulaFactory f, String prefix)Reads a given DIMACS CNF file and returns the contained clauses as a list of formulas.static List<Formula>DimacsReader. readCNF(String fileName, FormulaFactory f)Reads a given DIMACS CNF file and returns the contained clauses as a list of formulas.static List<Formula>DimacsReader. readCNF(String fileName, FormulaFactory f, String prefix)Reads a given DIMACS CNF file and returns the contained clauses as a list of formulas.static FormulaFormulaReader. readPropositionalFormula(File file, FormulaFactory f)Reads a given file and returns the contained propositional formula.static FormulaFormulaReader. readPropositionalFormula(String fileName, FormulaFactory f)Reads a given file and returns the contained propositional formula.static FormulaFormulaReader. readPseudoBooleanFormula(File file, FormulaFactory f)Reads a given file and returns the contained pseudo-Boolean formula.static FormulaFormulaReader. readPseudoBooleanFormula(String fileName, FormulaFactory f)Reads a given file and returns the contained pseudo-Boolean formula. -
Uses of FormulaFactory in org.logicng.knowledgecompilation.bdds.datastructures
Methods in org.logicng.knowledgecompilation.bdds.datastructures with parameters of type FormulaFactory Modifier and Type Method Description static BDDConstantBDDConstant. getFalsumNode(FormulaFactory f)Returns the terminal 0 node.static BDDConstantBDDConstant. getVerumNode(FormulaFactory f)Returns the terminal 1 node. -
Uses of FormulaFactory in org.logicng.knowledgecompilation.bdds.jbuddy
Fields in org.logicng.knowledgecompilation.bdds.jbuddy declared as FormulaFactory Modifier and Type Field Description protected FormulaFactoryBDDKernel. fMethods in org.logicng.knowledgecompilation.bdds.jbuddy that return FormulaFactory Modifier and Type Method Description FormulaFactoryBDDKernel. factory()Returns the formula factory.Constructors in org.logicng.knowledgecompilation.bdds.jbuddy with parameters of type FormulaFactory Constructor Description BDDKernel(FormulaFactory f, int numVars, int nodeSize, int cacheSize)Constructor for the BDD kernel.BDDKernel(FormulaFactory f, List<Variable> ordering, int nodeSize, int cacheSize)Constructor for the BDD kernel. -
Uses of FormulaFactory in org.logicng.knowledgecompilation.dnnf
Fields in org.logicng.knowledgecompilation.dnnf declared as FormulaFactory Modifier and Type Field Description protected FormulaFactoryDnnfCompiler. fprotected FormulaFactoryDnnfMiniSatStyleSolver. fConstructors in org.logicng.knowledgecompilation.dnnf with parameters of type FormulaFactory Constructor Description DnnfMiniSatStyleSolver(FormulaFactory f, int numberOfVariables)Constructs a new DNNF MiniSat solver with the given number of variables. -
Uses of FormulaFactory in org.logicng.predicates.satisfiability
Constructors in org.logicng.predicates.satisfiability with parameters of type FormulaFactory Constructor Description ContingencyPredicate(FormulaFactory f)Constructs a new contingency predicate with a given formula factory.ContradictionPredicate(FormulaFactory f)Constructs a new contradiction predicate with a given formula factory.SATPredicate(FormulaFactory f)Constructs a new SAT predicate with a given formula factory.TautologyPredicate(FormulaFactory f)Constructs a new tautology predicate with a given formula factory. -
Uses of FormulaFactory in org.logicng.pseudobooleans
Fields in org.logicng.pseudobooleans declared as FormulaFactory Modifier and Type Field Description protected FormulaFactoryPBEncoder. fConstructors in org.logicng.pseudobooleans with parameters of type FormulaFactory Constructor Description PBAdderNetworks(FormulaFactory f)Constructs a new pseudo-Boolean adder network.PBEncoder(FormulaFactory f)Constructs a new pseudo-Boolean encoder which uses the configuration of the formula factory.PBEncoder(FormulaFactory f, PBConfig pbConfig)Constructs a new pseudo-Boolean encoder with a given configuration.PBEncoder(FormulaFactory f, PBConfig pbConfig, CCConfig ccConfig)Constructs a new pseudo-Boolean encoder with given configurations. -
Uses of FormulaFactory in org.logicng.solvers
Fields in org.logicng.solvers declared as FormulaFactory Modifier and Type Field Description protected FormulaFactoryMaxSATSolver. fprotected FormulaFactorySATSolver. fMethods in org.logicng.solvers that return FormulaFactory Modifier and Type Method Description FormulaFactoryMaxSATSolver. factory()Returns the formula factory for this solver.FormulaFactorySATSolver. factory()Returns the formula factory for this solver.Methods in org.logicng.solvers with parameters of type FormulaFactory Modifier and Type Method Description static MiniSatMiniSat. glucose(FormulaFactory f)Returns a new Glucose solver with the MiniSat and Glucose configuration from the formula factory.static MiniSatMiniSat. glucose(FormulaFactory f, MiniSatConfig miniSatConfig, GlucoseConfig glucoseConfig)Returns a new Glucose solver with a given configuration.static MaxSATSolverMaxSATSolver. incWBO(FormulaFactory f)Returns a new MaxSAT solver using incremental WBO as algorithm with the MaxSAT configuration from the formula factory.static MaxSATSolverMaxSATSolver. incWBO(FormulaFactory f, MaxSATConfig config)Returns a new MaxSAT solver using incremental WBO as algorithm with the given configuration.static MaxSATSolverMaxSATSolver. linearSU(FormulaFactory f)Returns a new MaxSAT solver using LinearSU as algorithm with the MaxSAT configuration from the formula factory.static MaxSATSolverMaxSATSolver. linearSU(FormulaFactory f, MaxSATConfig config)Returns a new MaxSAT solver using LinearSU as algorithm with the given configuration.static MaxSATSolverMaxSATSolver. linearUS(FormulaFactory f)Returns a new MaxSAT solver using LinearUS as algorithm with the MaxSAT configuration from the formula factory.static MaxSATSolverMaxSATSolver. linearUS(FormulaFactory f, MaxSATConfig config)Returns a new MaxSAT solver using LinearUS as algorithm with the given configuration.static MiniSatMiniSat. miniCard(FormulaFactory f)Returns a new MiniCard solver with the MiniSat configuration from the formula factory.static MiniSatMiniSat. miniCard(FormulaFactory f, MiniSatConfig config)Returns a new MiniCard solver with a given configuration.static MiniSatMiniSat. miniSat(FormulaFactory f)Returns a new MiniSat solver with the MiniSat configuration from the formula factory.static MiniSatMiniSat. miniSat(FormulaFactory f, MiniSatConfig config)Returns a new MiniSat solver with a given configuration.static MiniSatMiniSat. mk(FormulaFactory f, MiniSat.SolverStyle style)Returns a new solver depending on the given solver style with the configuration from the formula factory.static MiniSatMiniSat. mk(FormulaFactory f, MiniSat.SolverStyle solverStyle, MiniSatConfig miniSatConfig, GlucoseConfig glucoseConfig)Returns a new solver depending on the given solver style with the given configuration.static MaxSATSolverMaxSATSolver. msu3(FormulaFactory f)Returns a new MaxSAT solver using MSU3 as algorithm with the MaxSAT configuration from the formula factory.static MaxSATSolverMaxSATSolver. msu3(FormulaFactory f, MaxSATConfig config)Returns a new MaxSAT solver using MSU3 as algorithm with the given configuration.static MaxSATSolverMaxSATSolver. oll(FormulaFactory f)Returns a new MaxSAT solver using weighted OLL as algorithm with the MaxSAT configuration from the formula factory.static MaxSATSolverMaxSATSolver. oll(FormulaFactory f, MaxSATConfig config)Returns a new MaxSAT solver using weighted OLL as algorithm with the given configuration.static MaxSATSolverMaxSATSolver. wbo(FormulaFactory f)Returns a new MaxSAT solver using WBO as algorithm with the MaxSAT configuration from the formula factory.static MaxSATSolverMaxSATSolver. wbo(FormulaFactory f, MaxSATConfig config)Returns a new MaxSAT solver using MSU3 as algorithm with the given configuration.static MaxSATSolverMaxSATSolver. wmsu3(FormulaFactory f)Returns a new MaxSAT solver using weighted MSU3 as algorithm with the MaxSAT configuration from the formula factory.static MaxSATSolverMaxSATSolver. wmsu3(FormulaFactory f, MaxSATConfig config)Returns a new MaxSAT solver using weighted MSU3 as algorithm with the given configuration.Constructors in org.logicng.solvers with parameters of type FormulaFactory Constructor Description MaxSATSolver(FormulaFactory f, MaxSATConfig configuration, MaxSATSolver.Algorithm algorithm)Constructs a new MaxSAT solver with a given configuration.MiniSat(FormulaFactory f, MiniSat.SolverStyle solverStyle, MiniSatConfig miniSatConfig, GlucoseConfig glucoseConfig)Constructs a new SAT solver instance.SATSolver(FormulaFactory f)Constructor. -
Uses of FormulaFactory in org.logicng.transformations
Constructors in org.logicng.transformations with parameters of type FormulaFactory Constructor Description BDDNormalFormTransformation(FormulaFactory f, int numVars)Constructs a new BDD-based normal form transformation for a given number of variables.FormulaFactoryImporter(FormulaFactory newFormulaFactory)Constructs a new formula factory importer with a given formula factory. -
Uses of FormulaFactory in org.logicng.transformations.cnf
Fields in org.logicng.transformations.cnf declared as FormulaFactory Modifier and Type Field Description protected FormulaFactoryCNFEncoder. fConstructors in org.logicng.transformations.cnf with parameters of type FormulaFactory Constructor Description BDDCNFTransformation(FormulaFactory f, int numVars)Constructs a new BDD-based CNF transformation for a given number of variables.CNFEncoder(FormulaFactory f)Constructs a new CNF encoder which uses the configuration of the formula factory.CNFEncoder(FormulaFactory f, CNFConfig config)Constructs a new CNF encoder with a given configuration. -
Uses of FormulaFactory in org.logicng.transformations.dnf
Constructors in org.logicng.transformations.dnf with parameters of type FormulaFactory Constructor Description BDDDNFTransformation(FormulaFactory f, int numVars)Constructs a new BDD-based DNF transformation for a given number of variables. -
Uses of FormulaFactory in org.logicng.transformations.qmc
Methods in org.logicng.transformations.qmc with parameters of type FormulaFactory Modifier and Type Method Description static FormulaQuineMcCluskeyAlgorithm. compute(List<Assignment> models, FormulaFactory f)Computes a minimized DNF for a given set of models. -
Uses of FormulaFactory in org.logicng.util
Methods in org.logicng.util with parameters of type FormulaFactory Modifier and Type Method Description static SortedSet<Literal>FormulaHelper. strings2literals(Collection<String> strings, String negationPrefix, FormulaFactory f)Returns a sorted literal set from a given collection of strings and a formula factory.static SortedSet<Variable>FormulaHelper. strings2vars(Collection<String> strings, FormulaFactory f)Returns a sorted variable set from a given collection of strings which will be used as variable names and a formula factory.Constructors in org.logicng.util with parameters of type FormulaFactory Constructor Description FormulaCornerCases(FormulaFactory f)Constructs a new corner cases creator.FormulaRandomizer(FormulaFactory f)Generates a new formula randomizer.FormulaRandomizer(FormulaFactory f, FormulaRandomizerConfig config)Generates a new formula randomizer.
-