Uses of Class
org.logicng.formulas.Variable
-
-
Uses of Variable in org.logicng.backbones
Methods in org.logicng.backbones that return types with arguments of type Variable Modifier and Type Method Description SortedSet<Variable>Backbone. getNegativeBackbone()Returns the negative variables of the backbone.SortedSet<Variable>Backbone. getOptionalVariables()Returns the variables of the formula that are optional, i.e.SortedSet<Variable>Backbone. getPositiveBackbone()Returns the positive variables of the backbone.SortedMap<Variable,Tristate>Backbone. toMap()Returns the backbone as map from variables to tri-states.Method parameters in org.logicng.backbones with type arguments of type Variable Modifier and Type Method Description static BackboneBackboneGeneration. compute(Formula formula, Collection<Variable> variables)Computes the complete backbone for a given formula w.r.t.static BackboneBackboneGeneration. compute(Formula formula, Collection<Variable> variables, BackboneType type)Computes the backbone for a given formula w.r.t.static BackboneBackboneGeneration. computeNegative(Formula formula, Collection<Variable> variables)Computes the negative backbone variables for a given formula w.r.t.static BackboneBackboneGeneration. computePositive(Formula formula, Collection<Variable> variables)Computes the positive backbone allVariablesInFormulas for a given formula w.r.t.static BackboneBackbone. satBackbone(SortedSet<Variable> positiveBackbone, SortedSet<Variable> negativeBackbone, SortedSet<Variable> optionalVariables)Returns a new backbone for a satisfiable formula. -
Uses of Variable in org.logicng.cardinalityconstraints
Methods in org.logicng.cardinalityconstraints with parameters of type Variable Modifier and Type Method Description protected voidCCEncoder. alk(EncodingResult result, Variable[] vars, int rhs)Encodes an at-lest-k constraint.protected CCIncrementalDataCCEncoder. alkIncremental(EncodingResult result, Variable[] vars, int rhs)Encodes an at-lest-k constraint for incremental usage.protected voidCCEncoder. amk(EncodingResult result, Variable[] vars, int rhs)Encodes an at-most-k constraint.protected CCIncrementalDataCCEncoder. amkIncremental(EncodingResult result, Variable[] vars, int rhs)Encodes an at-most-k constraint for incremental usage.protected voidCCEncoder. amo(EncodingResult result, Variable... vars)Encodes an at-most-one constraint.voidCCALKCardinalityNetwork. build(EncodingResult result, Variable[] vars, int rhs)voidCCALKModularTotalizer. build(EncodingResult result, Variable[] vars, int rhs)voidCCALKTotalizer. build(EncodingResult result, Variable[] vars, int rhs)voidCCAMKCardinalityNetwork. build(EncodingResult result, Variable[] vars, int rhs)voidCCAMKModularTotalizer. build(EncodingResult result, Variable[] vars, int rhs)voidCCAMKTotalizer. build(EncodingResult result, Variable[] vars, int rhs)voidCCAMOBimander. build(EncodingResult result, Variable... vars)voidCCAMOBinary. build(EncodingResult result, Variable... vars)voidCCAMOCommander. build(EncodingResult result, Variable... vars)voidCCAMOLadder. build(EncodingResult result, Variable... vars)voidCCAMONested. build(EncodingResult result, Variable... vars)voidCCAMOProduct. build(EncodingResult result, Variable... vars)voidCCAMOPure. build(EncodingResult result, Variable... vars)voidCCAtLeastK. build(EncodingResult result, Variable[] vars, int rhs)Builds a cardinality constraint of the formvar_1 + var_2 + ... + var_n >= k.voidCCAtMostK. build(EncodingResult result, Variable[] vars, int rhs)Builds a cardinality constraint of the formvar_1 + var_2 + ... + var_n <= k.voidCCAtMostOne. build(EncodingResult result, Variable... vars)Builds a cardinality constraint of the formvar_1 + var_2 + ... + var_n <= 1.voidCCExactlyK. build(EncodingResult result, Variable[] vars, int rhs)Builds a cardinality constraint of the formvar_1 + var_2 + ... + var_n = k.voidCCEXKCardinalityNetwork. build(EncodingResult result, Variable[] vars, int rhs)voidCCEXKTotalizer. build(EncodingResult result, Variable[] vars, int rhs)protected voidCCEncoder. exk(EncodingResult result, Variable[] vars, int rhs)Encodes an exactly-k constraint.protected voidCCEncoder. exo(EncodingResult result, Variable... vars)Encodes an at-most-one constraint. -
Uses of Variable in org.logicng.datastructures
Methods in org.logicng.datastructures that return Variable Modifier and Type Method Description VariableEncodingResult. newVariable()Returns a new auxiliary variable.Methods in org.logicng.datastructures that return types with arguments of type Variable Modifier and Type Method Description Map<Variable,Formula>Substitution. getMapping()Returns an unmodifiable reference to the internal mapping of variables to formulas.List<Variable>Assignment. negativeVariables()Returns the negative literals of this assignment as variables.List<Variable>Assignment. positiveVariables()Returns the positive literals of this assignment as variables.Methods in org.logicng.datastructures with parameters of type Variable Modifier and Type Method Description voidSubstitution. addMapping(Variable variable, Formula formula)Adds a mapping from variable to formula to this substitution.FormulaSubstitution. getSubstitution(Variable variable)Returns a formula for a given variable.Constructor parameters in org.logicng.datastructures with type arguments of type Variable Constructor Description Substitution(Map<Variable,Formula> mapping)Constructs a new substitution and initializes it with the given mapping. -
Uses of Variable in org.logicng.formulas
Methods in org.logicng.formulas that return Variable Modifier and Type Method Description VariableFormulaFactory. newCCVariable()Returns a new cardinality constraint auxiliary literal.VariableFormulaFactory. newCNFVariable()Returns a new CNF auxiliary literal.VariableFormulaFactory. newPBVariable()Returns a new pseudo Boolean auxiliary literal.VariableFormulaFactory. variable(String name)Creates a new literal instance with a given name and positive phase.VariableLiteral. variable()Returns a positive version of this literal (aka a variable).Methods in org.logicng.formulas that return types with arguments of type Variable Modifier and Type Method Description SortedSet<Variable>Formula. variables()Returns all variables occurring in this formula.List<Variable>FormulaFactory. variables(String... names)Creates a list of literals with the given names and positive phase.List<Variable>FormulaFactory. variables(Collection<String> names)Creates a list of literals with the given names and positive phase.Methods in org.logicng.formulas with parameters of type Variable Modifier and Type Method Description FormulaFormulaFactory. amo(Variable... variables)Creates a new at-most-one cardinality constraint.FormulaFormulaFactory. cc(CType comparator, int rhs, Variable... variables)Creates a new cardinality constraint.booleanBinaryOperator. containsVariable(Variable variable)booleanConstant. containsVariable(Variable variable)abstract booleanFormula. containsVariable(Variable variable)Returnstrueif a given variable name is found in this formula,falseotherwise.booleanLiteral. containsVariable(Variable variable)booleanNAryOperator. containsVariable(Variable variable)booleanNot. containsVariable(Variable variable)booleanPBConstraint. containsVariable(Variable variable)FormulaFormulaFactory. exo(Variable... variables)Creates a new exactly-one cardinality constraint.booleanFormulaFactory. isGeneratedVariable(Variable var)Returnstrueif the given variable was generated,falseotherwise.FormulaFormula. substitute(Variable variable, Formula formula)Performs a simultaneous substitution on this formula given a single mapping from variable to formula.Method parameters in org.logicng.formulas with type arguments of type Variable Modifier and Type Method Description FormulaFormulaFactory. amo(Collection<Variable> variables)Creates a new at-most-one cardinality constraint.FormulaFormulaFactory. cc(CType comparator, int rhs, Collection<Variable> variables)Creates a new cardinality constraint.FormulaFormulaFactory. exo(Collection<Variable> variables)Creates a new exactly-one cardinality constraint. -
Uses of Variable in org.logicng.formulas.printer
Constructor parameters in org.logicng.formulas.printer with type arguments of type Variable Constructor Description SortedStringRepresentation(List<Variable> varOrder)Constructs a new sorted string representation with a given ordering of variables. -
Uses of Variable in org.logicng.functions
Methods in org.logicng.functions that return types with arguments of type Variable Modifier and Type Method Description Map<Variable,Integer>VariableProfileFunction. apply(Formula formula, boolean cache)SortedSet<Variable>VariablesFunction. apply(Formula formula, boolean cache) -
Uses of Variable in org.logicng.graphs.algorithms
Method parameters in org.logicng.graphs.algorithms with type arguments of type Variable Modifier and Type Method Description static List<List<Formula>>ConnectedComponentsComputation. splitFormulasByComponent(Collection<Formula> formulas, Set<Set<Node<Variable>>> components)Split a list of formulas in their respective connected components. -
Uses of Variable in org.logicng.graphs.generators
Methods in org.logicng.graphs.generators that return types with arguments of type Variable Modifier and Type Method Description static Hypergraph<Variable>HypergraphGenerator. fromCNF(List<Formula> cnf)Generates a hypergraph from a CNF given as a list of clauses.static Hypergraph<Variable>HypergraphGenerator. fromCNF(Formula cnf)Generates a hypergraph from a CNF.static Hypergraph<Variable>HypergraphGenerator. fromCNF(Formula... cnf)Generates a hypergraph from a CNF given as a list of clauses.static Graph<Variable>ConstraintGraphGenerator. generateFromCnf(Collection<Formula> formulas)Deprecated.the constraint graph generation is not CNF specific.static Graph<Variable>ConstraintGraphGenerator. generateFromCnf(Formula formula)Deprecated.the constraint graph generation is not CNF specific.static Graph<Variable>ConstraintGraphGenerator. generateFromFormulas(Collection<Formula> formulas)Constructs the constraint graph. -
Uses of Variable in org.logicng.io.graphical.generators
Methods in org.logicng.io.graphical.generators that return Variable Modifier and Type Method Description protected VariableBddMapper. variable(int index)Returns the variable for the node with the given index -
Uses of Variable in org.logicng.knowledgecompilation.bdds
Methods in org.logicng.knowledgecompilation.bdds that return types with arguments of type Variable Modifier and Type Method Description List<Variable>BDD. getVariableOrder()Returns the variable order of this BDD.SortedSet<Variable>BDD. support()Returns all the variables this BDD depends on.SortedMap<Variable,Integer>BDD. variableProfile()Returns how often each variable occurs in this BDD.Methods in org.logicng.knowledgecompilation.bdds with parameters of type Variable Modifier and Type Method Description List<Assignment>BDD. enumerateAllModels(Variable... variables)Enumerates all models of this BDD wrt.BDDBDD. exists(Variable... variables)Existential quantifier elimination for a given set of variables.BDDBDD. forall(Variable... variables)Universal quantifier elimination for a given set of variables.AssignmentBDD. model(boolean defaultValue, Variable... variables)Returns an arbitrary model of this BDD which contains at least the given variables ornullif there is none.voidBDD. swapVariables(Variable first, Variable second)Swaps two variables in a BDD.Method parameters in org.logicng.knowledgecompilation.bdds with type arguments of type Variable Modifier and Type Method Description List<Assignment>BDD. enumerateAllModels(Collection<Variable> variables)Enumerates all models of this BDD wrt.BDDBDD. exists(Collection<Variable> variables)Existential quantifier elimination for a given set of variables.BDDBDD. forall(Collection<Variable> variables)Universal quantifier elimination for a given set of variables.AssignmentBDD. model(boolean defaultValue, Collection<Variable> variables)Returns an arbitrary model of this BDD which contains at least the given variables ornullif there is none. -
Uses of Variable in org.logicng.knowledgecompilation.bdds.datastructures
Methods in org.logicng.knowledgecompilation.bdds.datastructures that return Variable Modifier and Type Method Description VariableBDDInnerNode. label()Constructors in org.logicng.knowledgecompilation.bdds.datastructures with parameters of type Variable Constructor Description BDDInnerNode(Variable var, BDDNode low, BDDNode high)Constructor for a new inner BDD node holding a variable. -
Uses of Variable in org.logicng.knowledgecompilation.bdds.functions
Constructor parameters in org.logicng.knowledgecompilation.bdds.functions with type arguments of type Variable Constructor Description BDDModelEnumerationFunction(Collection<Variable> variables)Constructs a new model enumeration function. -
Uses of Variable in org.logicng.knowledgecompilation.bdds.jbuddy
Fields in org.logicng.knowledgecompilation.bdds.jbuddy with type parameters of type Variable Modifier and Type Field Description protected SortedMap<Integer,Variable>BDDKernel. idx2varprotected SortedMap<Variable,Integer>BDDKernel. var2idxMethods in org.logicng.knowledgecompilation.bdds.jbuddy that return Variable Modifier and Type Method Description VariableBDDKernel. getVariableForIndex(int idx)Returns the variable for the given index ornullif no such index exists.Methods in org.logicng.knowledgecompilation.bdds.jbuddy that return types with arguments of type Variable Modifier and Type Method Description SortedMap<Integer,Variable>BDDKernel. idx2var()Returns the mapping from indices to variables.SortedMap<Variable,Integer>BDDKernel. var2idx()Returns the mapping from variables to indices.Methods in org.logicng.knowledgecompilation.bdds.jbuddy with parameters of type Variable Modifier and Type Method Description intBDDKernel. getIndexForVariable(Variable var)Returns the index for the given variable or -1 if the variable is unknown.intBDDKernel. getLevel(Variable var)Returns the level of the given variable or -1 if the variable is unknown.intBDDKernel. getOrAddVarIndex(Variable variable)Returns the index for the given variable.Constructor parameters in org.logicng.knowledgecompilation.bdds.jbuddy with type arguments of type Variable Constructor Description BDDKernel(FormulaFactory f, List<Variable> ordering, int nodeSize, int cacheSize)Constructor for the BDD kernel. -
Uses of Variable in org.logicng.knowledgecompilation.bdds.orderings
Methods in org.logicng.knowledgecompilation.bdds.orderings that return types with arguments of type Variable Modifier and Type Method Description List<Variable>BFSOrdering. getOrder(Formula formula)List<Variable>DFSOrdering. getOrder(Formula formula)List<Variable>ForceOrdering. getOrder(Formula formula)List<Variable>MaxToMinOrdering. getOrder(Formula formula)List<Variable>MinToMaxOrdering. getOrder(Formula formula)List<Variable>VariableOrderingProvider. getOrder(Formula formula)Generates a variable ordering for a given formula. -
Uses of Variable in org.logicng.knowledgecompilation.dnnf.datastructures
Methods in org.logicng.knowledgecompilation.dnnf.datastructures that return types with arguments of type Variable Modifier and Type Method Description SortedSet<Variable>Dnnf. getOriginalVariables()Returns the original variables of the formulaConstructor parameters in org.logicng.knowledgecompilation.dnnf.datastructures with type arguments of type Variable Constructor Description Dnnf(SortedSet<Variable> originalVariables, Formula dnnf)Constructs a new DNNF. -
Uses of Variable in org.logicng.knowledgecompilation.dnnf.datastructures.dtree
Fields in org.logicng.knowledgecompilation.dnnf.datastructures.dtree with type parameters of type Variable Modifier and Type Field Description protected SortedSet<Variable>DTreeNode. staticVariableSetprotected List<Variable>MinFillDTreeGenerator.Graph. verticesThe list of verticesMethods in org.logicng.knowledgecompilation.dnnf.datastructures.dtree that return types with arguments of type Variable Modifier and Type Method Description protected List<Variable>MinFillDTreeGenerator.Graph. getMinFillOrdering()SortedSet<Variable>DTreeLeaf. staticVariableSet()SortedSet<Variable>DTreeNode. staticVariableSet()Method parameters in org.logicng.knowledgecompilation.dnnf.datastructures.dtree with type arguments of type Variable Modifier and Type Method Description DTreeEliminatingOrderDTreeGenerator. generateWithEliminatingOrder(Formula cnf, List<Variable> ordering)Generates the DTree -
Uses of Variable in org.logicng.knowledgecompilation.dnnf.functions
Method parameters in org.logicng.knowledgecompilation.dnnf.functions with type arguments of type Variable Modifier and Type Method Description RESULTDnnfFunction. apply(SortedSet<Variable> originalVariables, Formula formula)Applies this function to a given DNNFBigIntegerDnnfModelCountFunction. apply(SortedSet<Variable> originalVariables, Formula formula) -
Uses of Variable in org.logicng.modelcounting
Method parameters in org.logicng.modelcounting with type arguments of type Variable Modifier and Type Method Description static BigIntegerModelCounter. count(Collection<Formula> formulas, SortedSet<Variable> variables)Computes the model count for a given set of formulas (interpreted as conjunction) and a set of relevant variables. -
Uses of Variable in org.logicng.predicates
Methods in org.logicng.predicates that return types with arguments of type Variable Modifier and Type Method Description Map<Variable,Boolean>EvaluatesToConstantPredicate. getMapping()Returns the (partial) assignment.Constructor parameters in org.logicng.predicates with type arguments of type Variable Constructor Description EvaluatesToConstantPredicate(boolean evaluatesToTrue, Map<Variable,Boolean> mapping)Constructs a new evaluation predicate. -
Uses of Variable in org.logicng.solvers
Fields in org.logicng.solvers with type parameters of type Variable Modifier and Type Field Description protected SortedMap<Integer,Variable>MaxSATSolver. index2varprotected SortedSet<Variable>MaxSATSolver. selectorVariablesprotected SortedMap<Variable,Integer>MaxSATSolver. var2indexMethods in org.logicng.solvers that return types with arguments of type Variable Modifier and Type Method Description SortedSet<Variable>MiniSat. knownVariables()abstract SortedSet<Variable>SATSolver. knownVariables()Returns the set of variables currently known by the solver.Methods in org.logicng.solvers with parameters of type Variable Modifier and Type Method Description voidSATSolver. addWithRelaxation(Variable relaxationVar, Collection<? extends Formula> formulas)Adds a collection of formulas to the solver by using the given relaxation variable, i.e.voidSATSolver. addWithRelaxation(Variable relaxationVar, Formula formula)Adds a formula to the solver by using the given relaxation variable, i.e.voidSATSolver. addWithRelaxation(Variable relaxationVar, Proposition proposition)Deprecated.since this method only adds the formula of the proposition but not the proposition itself, this method has a confusing behaviour and will be removed in upcoming releases.List<Assignment>SATSolver. enumerateAllModels(Variable... variables)Enumerates all models of the current formula wrt.AssignmentSATSolver. model(Variable[] variables)Returns a model of the current formula on the solver wrt.Method parameters in org.logicng.solvers with type arguments of type Variable Modifier and Type Method Description BackboneSATSolver. backbone(Collection<Variable> relevantVariables)Computes a backbone with both positive and negative variables of the current formula on the solver.BackboneSATSolver. backbone(Collection<Variable> relevantVariables, BackboneType type)Computes a backbone of the current formula on the solver.List<Assignment>SATSolver. enumerateAllModels(Collection<Variable> variables)Enumerates all models of the current formula wrt.AssignmentMiniSat. model(Collection<Variable> variables)abstract AssignmentSATSolver. model(Collection<Variable> variables)Returns a model of the current formula on the solver wrt. -
Uses of Variable in org.logicng.solvers.functions
Methods in org.logicng.solvers.functions with parameters of type Variable Modifier and Type Method Description ModelEnumerationFunction.BuilderModelEnumerationFunction.Builder. additionalVariables(Variable... variables)Sets an additional set of variables which should occur in every model.OptimizationFunction.BuilderOptimizationFunction.Builder. additionalVariables(Variable... variables)Sets an additional set of variables which should occur in every model.BackboneFunction.BuilderBackboneFunction.Builder. variables(Variable... variables)Sets the variables which are relevant for the backbone computation.ModelEnumerationFunction.BuilderModelEnumerationFunction.Builder. variables(Variable... variables)Sets the set of variables over which the model enumeration should iterate.Method parameters in org.logicng.solvers.functions with type arguments of type Variable Modifier and Type Method Description ModelEnumerationFunction.BuilderModelEnumerationFunction.Builder. additionalVariables(Collection<Variable> variables)Sets an additional set of variables which should occur in every model.OptimizationFunction.BuilderOptimizationFunction.Builder. additionalVariables(Collection<Variable> variables)Sets an additional set of variables which should occur in the resulting model.BackboneFunction.BuilderBackboneFunction.Builder. variables(Collection<Variable> variables)Sets the variables which are relevant for the backbone computation.ModelEnumerationFunction.BuilderModelEnumerationFunction.Builder. variables(Collection<Variable> variables)Sets the set of variables over which the model enumeration should iterate. -
Uses of Variable in org.logicng.solvers.sat
Method parameters in org.logicng.solvers.sat with type arguments of type Variable Modifier and Type Method Description protected BackboneMiniSatStyleSolver. buildBackbone(Collection<Variable> variables, BackboneType type)Builds the backbone object from the computed backbone literals.BackboneMiniSatStyleSolver. computeBackbone(Collection<Variable> variables, BackboneType type)Computes the backbone of the given variables with respect to the formulas added to the solver.BackboneMiniSatStyleSolver. computeBackbone(Collection<Variable> variables, BackboneType type, SATHandler handler)Computes the backbone of the given variables with respect to the formulas added to the solver.protected List<Integer>MiniSatStyleSolver. getRelevantVarIndices(Collection<Variable> variables)Returns a list of relevant variable indices. -
Uses of Variable in org.logicng.transformations.qe
Constructors in org.logicng.transformations.qe with parameters of type Variable Constructor Description ExistentialQuantifierElimination(Variable... variables)Constructs a new existential quantifier elimination for the given variables.UniversalQuantifierElimination(Variable... variables)Constructs a new universal quantifier elimination for the given variables.Constructor parameters in org.logicng.transformations.qe with type arguments of type Variable Constructor Description ExistentialQuantifierElimination(Collection<Variable> variables)Constructs a new existential quantifier elimination for a given collection of variables.UniversalQuantifierElimination(Collection<Variable> variables)Constructs a new universal quantifier elimination for a given collection of variables. -
Uses of Variable in org.logicng.transformations.qmc
Method parameters in org.logicng.transformations.qmc with type arguments of type Variable Modifier and Type Method Description static FormulaQuineMcCluskeyAlgorithm. compute(Formula formula, Collection<Variable> relevantVariables)Computes a minimized DNF for a given formula projected to a given set of variables. -
Uses of Variable in org.logicng.util
Methods in org.logicng.util that return Variable Modifier and Type Method Description static Variable[]FormulaHelper. literalsAsVariables(Literal[] literals)Converts a literal array to a variable array.VariableFormulaRandomizer. variable()Returns a random variable.Methods in org.logicng.util that return types with arguments of type Variable Modifier and Type Method Description SortedSet<Variable>FormulaCornerCases. getVariables()Returns the set of variables used for creating the corner cases.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.static SortedSet<Variable>FormulaHelper. variables(Collection<? extends Formula> formulas)Returns all variables occurring in the given formulas.static SortedSet<Variable>FormulaHelper. variables(Formula... formulas)Returns all variables occurring in the given formulas.Method parameters in org.logicng.util with type arguments of type Variable Modifier and Type Method Description FormulaRandomizerConfig.BuilderFormulaRandomizerConfig.Builder. variables(Collection<Variable> variables)Sets the variables which may occur in the generated formulas.static SortedSet<String>FormulaHelper. vars2strings(Collection<Variable> variables)Returns a list of strings from a given collection of variables.
-