Uses of Interface
org.chocosolver.solver.variables.BoolVar
-
-
Uses of BoolVar in org.chocosolver.sat
Methods in org.chocosolver.sat with parameters of type BoolVar Modifier and Type Method Description intPropSat. makeLiteral(BoolVar expr, boolean sign)Creates, or returns if already existing, the literal corresponding to :intPropSat. makeVar(BoolVar expr)Creates, or returns if already existing, the literal corresponding to : -
Uses of BoolVar in org.chocosolver.solver
Methods in org.chocosolver.solver that return BoolVar Modifier and Type Method Description BoolVar[]Model. retrieveBoolVars()Iterate over the variable ofthisand build an array that contains theBoolVaronly. -
Uses of BoolVar in org.chocosolver.solver.constraints
Fields in org.chocosolver.solver.constraints declared as BoolVar Modifier and Type Field Description protected BoolVarReificationConstraint. boolprotected BoolVarConstraint. boolReifBoolVar that reifies this constraint, unique.Methods in org.chocosolver.solver.constraints that return BoolVar Modifier and Type Method Description BoolVarConstraint. reify()Get/make the boolean variable indicating whether the constraint is satisfied or not This should not be posted.Methods in org.chocosolver.solver.constraints with parameters of type BoolVar Modifier and Type Method Description default booleanISatFactory. addClauseFalse(BoolVar BOOLVAR)Add a unit clause stating that BOOLVAR must be falsedefault booleanISatFactory. addClauses(BoolVar[] POSLITS, BoolVar[] NEGLITS)Ensures that the clause defined by POSLITS and NEGLITS is satisfied.default booleanISatFactory. addClausesAtMostNMinusOne(BoolVar[] BOOLVARS)Add a clause stating that: ∑ BOOLVARSi ≤ n-1default booleanISatFactory. addClausesAtMostOne(BoolVar[] BOOLVARS)Add a clause stating that: ∑ BOOLVARSi ≤ 1default booleanISatFactory. addClausesBoolAndArrayEqualFalse(BoolVar[] BOOLVARS)Add a clause stating that: BOOLVARS1∧BOOLVARS2∧...∧BOOLVARSndefault booleanISatFactory. addClausesBoolAndArrayEqVar(BoolVar[] BOOLVARS, BoolVar TARGET)Add a clause stating that: (BOOLVARS1∧BOOLVARS2∧...∧BOOLVARSn) ⇔ TARGETdefault booleanISatFactory. addClausesBoolAndEqVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET)Add a clause stating that: (LEFT ∧ RIGHT) ⇔ TARGETdefault booleanISatFactory. addClausesBoolEq(BoolVar LEFT, BoolVar RIGHT)Add a clause stating that: LEFT == RIGHTdefault booleanISatFactory. addClausesBoolIsEqVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET)Add a clause stating that: (LEFT == RIGHT) ⇔ TARGETdefault booleanISatFactory. addClausesBoolIsLeVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET)Add a clause stating that: (LEFT ≤ RIGHT) ⇔ TARGETdefault booleanISatFactory. addClausesBoolIsLtVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET)Add a clause stating that: (LEFT < RIGHT) ⇔ TARGETdefault booleanISatFactory. addClausesBoolIsNeqVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET)Add a clause stating that: (LEFT ≠ RIGHT) ⇔ TARGETdefault booleanISatFactory. addClausesBoolLe(BoolVar LEFT, BoolVar RIGHT)Add a clause stating that: LEFT ≤ RIGHTdefault booleanISatFactory. addClausesBoolLt(BoolVar LEFT, BoolVar RIGHT)Add a clause stating that: LEFT < RIGHTdefault booleanISatFactory. addClausesBoolNot(BoolVar LEFT, BoolVar RIGHT)Add a clause stating that: LEFT !default booleanISatFactory. addClausesBoolOrArrayEqualTrue(BoolVar[] BOOLVARS)Add a clause stating that: BOOLVARS1∨BOOLVARS2∨...∨BOOLVARSndefault booleanISatFactory. addClausesBoolOrArrayEqVar(BoolVar[] BOOLVARS, BoolVar TARGET)Add a clause stating that: (BOOLVARS1∨BOOLVARS2∨...∨BOOLVARSn) ⇔ TARGETdefault booleanISatFactory. addClausesBoolOrEqVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET)Add a clause stating that: (LEFT ∨ RIGHT) ⇔ TARGETdefault booleanISatFactory. addClausesBoolXorEqVar(BoolVar LEFT, BoolVar RIGHT, BoolVar TARGET)Add a clause stating that: (LEFT ⊕ RIGHT) ⇔ TARGETdefault booleanISatFactory. addClausesMaxBoolArrayLessEqVar(BoolVar[] BOOLVARS, BoolVar TARGET)Add a clause stating that: max(BOOLVARSi) ≤ TARGETdefault booleanISatFactory. addClausesSumBoolArrayGreaterEqVar(BoolVar[] BOOLVARS, BoolVar TARGET)Add a clause stating that: sum(BOOLVARSi) ≥ TARGETdefault booleanISatFactory. addClausesSumBoolArrayLessEqVar(BoolVar[] BOOLVARS, BoolVar TARGET)Add a clause stating that: sum(BOOLVARSi) ≤ TARGETdefault booleanISatFactory. addClauseTrue(BoolVar BOOLVAR)Add a unit clause stating that BOOLVAR must be truedefault ConstraintIIntConstraintFactory. and(BoolVar... bools)Creates an and constraint that is satisfied if all boolean variables in bools are truedefault ConstraintIIntConstraintFactory. bitsIntChanneling(BoolVar[] bits, IntVar var)Creates an channeling constraint between an integer variable and a set of bit variables.default ConstraintIIntConstraintFactory. boolsIntChanneling(BoolVar[] bVars, IntVar var, int offset)Creates an channeling constraint between an integer variable and a set of boolean variables.default ConstraintIIntConstraintFactory. clausesIntChanneling(IntVar var, BoolVar[] eVars, BoolVar[] lVars)Creates an channeling constraint between an integer variable and a set of clauses.default voidIReificationFactory. ifThen(BoolVar ifVar, Constraint thenCstr)Posts an implication constraint: ifVar => thenCstr Also called half reification constraint Ensures:default voidIReificationFactory. ifThenElse(BoolVar ifVar, Constraint thenCstr, Constraint elseCstr)Posts an implication constraint: ifVar => thenCstr && not(ifVar) => elseCstr.default ConstraintIIntConstraintFactory. max(BoolVar max, BoolVar[] vars)Creates a maximum constraint.default ConstraintIIntConstraintFactory. min(BoolVar min, BoolVar[] vars)Creates a minimum constraint.default ConstraintIIntConstraintFactory. or(BoolVar... bools)Creates an or constraint that is satisfied if at least one boolean variables in bools is truedefault voidIReificationFactory. reification(BoolVar var, Constraint cstr)Reify a constraint with a boolean variable: var = 1 <=> cstr is satisfied, Equivalent to ifOnlyIf BEWARE : it is automatically posted (it cannot be reified)voidConstraint. reifyWith(BoolVar bool)Reifies the constraint with a boolean variable If the reified boolean variable already exists, an additional (equality) constraint is automatically posted.default voidIReificationFactory. reifyXeqC(IntVar X, int C, BoolVar B)Posts one constraint that expresses : (x = c) ⇔ b.default voidIReificationFactory. reifyXeqY(IntVar X, IntVar Y, BoolVar B)Posts one constraint that expresses : (x = y) ⇔ b.default voidIReificationFactory. reifyXgtC(IntVar X, int C, BoolVar B)Posts one constraint that expresses : (x > c) ⇔ b.default voidIReificationFactory. reifyXinS(IntVar X, IntIterableRangeSet S, BoolVar B)Posts one constraint that expresses : (X ∈ S) ⇔ B.default voidIReificationFactory. reifyXleY(IntVar X, IntVar Y, BoolVar B)Posts one constraint that expresses : (x ≤ y) ⇔ b.default voidIReificationFactory. reifyXltC(IntVar X, int C, BoolVar B)Posts one constraint that expresses : (x < c) ⇔ b.default voidIReificationFactory. reifyXltY(IntVar X, IntVar Y, BoolVar B)Posts one constraint that expresses : (x < y) ⇔ b.default voidIReificationFactory. reifyXltYC(IntVar X, IntVar Y, int C, BoolVar B)Posts one constraint that expresses : (x < y + c) ⇔ b.default voidIReificationFactory. reifyXneC(IntVar X, int C, BoolVar B)Posts one constraint that expresses : (x ≠ c) ⇔ b.default voidIReificationFactory. reifyXneY(IntVar X, IntVar Y, BoolVar B)Posts one constraint that expresses : (x ≠ y) ⇔ b.default ConstraintISetConstraintFactory. setBoolsChanneling(BoolVar[] bools, SetVar set)Creates a constraint channeling a set variable with boolean variables : i in set <=> bools[i] = TRUEdefault ConstraintISetConstraintFactory. setBoolsChanneling(BoolVar[] bools, SetVar set, int offset)Creates a constraint channeling a set variable with boolean variables : i in set <=> bools[i-offset] = TRUEdefault ConstraintIIntConstraintFactory. sum(BoolVar[] vars, String operator, int sum)Creates a sum constraint.default ConstraintIIntConstraintFactory. sum(BoolVar[] vars, String operator, IntVar sum)Creates a sum constraint.default ConstraintIIntConstraintFactory. sum(BoolVar[] vars, String operator, IntVar sum, int minCardForDecomp)Creates a sum constraint.Constructors in org.chocosolver.solver.constraints with parameters of type BoolVar Constructor Description ReificationConstraint(BoolVar bVar, Constraint consIfBoolTrue, Constraint consIfBoolFalse) -
Uses of BoolVar in org.chocosolver.solver.constraints.nary.channeling
Constructors in org.chocosolver.solver.constraints.nary.channeling with parameters of type BoolVar Constructor Description PropBitChanneling(IntVar OCTET, BoolVar[] BITS)PropClauseChanneling(IntVar iv, BoolVar[] eb, BoolVar[] lb)PropEnumDomainChanneling(BoolVar[] bvars, IntVar aVar, int offSet) -
Uses of BoolVar in org.chocosolver.solver.constraints.nary.cnf
Fields in org.chocosolver.solver.constraints.nary.cnf declared as BoolVar Modifier and Type Field Description protected BoolVar[]LogOp. varsAsArrayMethods in org.chocosolver.solver.constraints.nary.cnf that return BoolVar Modifier and Type Method Description BoolVar[]LogOp. flattenBoolVar()Extracts and returns the flatten array of BoolVar contained inthis.Methods in org.chocosolver.solver.constraints.nary.cnf with parameters of type BoolVar Modifier and Type Method Description static LogOpLogOp. reified(BoolVar b, ILogical tree)create a logical connection between ``b`` and ``tree``.Constructors in org.chocosolver.solver.constraints.nary.cnf with parameters of type BoolVar Constructor Description PropFalse(BoolVar zero)PropTrue(BoolVar one) -
Uses of BoolVar in org.chocosolver.solver.constraints.nary.min_max
Constructors in org.chocosolver.solver.constraints.nary.min_max with parameters of type BoolVar Constructor Description PropBoolMax(BoolVar[] variables, BoolVar maxVar)PropBoolMin(BoolVar[] variables, BoolVar minVar) -
Uses of BoolVar in org.chocosolver.solver.constraints.nary.sum
Constructors in org.chocosolver.solver.constraints.nary.sum with parameters of type BoolVar Constructor Description PropSumBool(BoolVar[] variables, int pos, Operator o, IntVar sum, int b)Creates a sum propagator: SUM(x_i) Op sum + b, where x_i are boolean variables.PropSumBool(BoolVar[] variables, int pos, Operator o, IntVar sum, int b, boolean reactOnFineEvent)Creates a sum propagator: SUM(x_i) Op sum + b, where x_i are boolean variables.PropSumBoolIncr(BoolVar[] variables, int pos, Operator o, IntVar sum, int b)Creates a sum propagator: SUM(x_i) Op sum + b, where x_i are boolean variables, maintained incrementally.PropSumFullBool(BoolVar[] variables, int pos, Operator o, int b)Creates a sum propagator: SUM(x_i) Op b, where x_i are boolean variables.PropSumFullBool(BoolVar[] variables, int pos, Operator o, int b, boolean reactOnFineEvent)Creates a sum propagator: SUM(x_i) Op b, where x_i are boolean variables.PropSumFullBoolIncr(BoolVar[] variables, int pos, Operator o, int b)Creates a sum propagator: SUM(x_i) Op b, where x_i are boolean variables, maintained incrementally. -
Uses of BoolVar in org.chocosolver.solver.constraints.real
Methods in org.chocosolver.solver.constraints.real with parameters of type BoolVar Modifier and Type Method Description protected voidRealPropagator. reify(BoolVar r)voidRealConstraint. reifyWith(BoolVar bool)Reifies the constraint with a boolean variable If the reified boolean variable already exists, an additional (equality) constraint is automatically posted. -
Uses of BoolVar in org.chocosolver.solver.constraints.reification
Constructors in org.chocosolver.solver.constraints.reification with parameters of type BoolVar Constructor Description PropXeqCReif(IntVar x, int c, BoolVar r)PropXeqYReif(IntVar x, IntVar y, BoolVar r)PropXgtCReif(IntVar x, int c, BoolVar r)PropXinSReif(IntVar x, IntIterableRangeSet set, BoolVar r)PropXltCReif(IntVar x, int c, BoolVar r)PropXltYCReif(IntVar x, IntVar y, int c, BoolVar r)PropXltYReif(IntVar x, IntVar y, BoolVar r)PropXneCReif(IntVar x, int c, BoolVar r)PropXneYReif(IntVar x, IntVar y, BoolVar r) -
Uses of BoolVar in org.chocosolver.solver.constraints.set
Constructors in org.chocosolver.solver.constraints.set with parameters of type BoolVar Constructor Description PropBoolChannel(SetVar setVar, BoolVar[] boolVars, int offSet)Channeling between a set variable and boolean variables i in setVar <=> boolVars[i-offSet] = TRUE -
Uses of BoolVar in org.chocosolver.solver.explanations
Methods in org.chocosolver.solver.explanations with parameters of type BoolVar Modifier and Type Method Description voidExplanationEngine. activePropagator(BoolVar var, Propagator propagator)Explain the activation of a propagator involved in a reified constraintdefault voidIExplanationEngine. activePropagator(BoolVar var, Propagator propagator)Explain the activation of a propagator involved in a reified constraint -
Uses of BoolVar in org.chocosolver.solver.expression.discrete.logical
Fields in org.chocosolver.solver.expression.discrete.logical declared as BoolVar Modifier and Type Field Description protected BoolVarLoExpression. meLazy creation of the underlying variableMethods in org.chocosolver.solver.expression.discrete.logical that return BoolVar Modifier and Type Method Description BoolVarBiLoExpression. boolVar()abstract BoolVarLoExpression. boolVar()BoolVarNaLoExpression. boolVar()BoolVarUnLoExpression. boolVar() -
Uses of BoolVar in org.chocosolver.solver.expression.discrete.relational
Methods in org.chocosolver.solver.expression.discrete.relational that return BoolVar Modifier and Type Method Description BoolVarBiReExpression. boolVar()BoolVarNaReExpression. boolVar()BoolVarReExpression. boolVar() -
Uses of BoolVar in org.chocosolver.solver.variables
Methods in org.chocosolver.solver.variables that return BoolVar Modifier and Type Method Description BoolVarVariable. asBoolVar()default BoolVarIViewFactory. boolNotView(BoolVar bool)Creates a view over bool holding the logical negation of bool (ie, ¬BOOL).default BoolVarBoolVar. boolVar()default BoolVarIVariableFactory. boolVar()Create a boolean variable, i.e. a particular integer variable of domain {0, 1}default BoolVarIVariableFactory. boolVar(boolean value)Create a constant boolean variable equal to 1 if value is true and 0 otherwisedefault BoolVarIVariableFactory. boolVar(String name)Create a boolean variabledefault BoolVarIVariableFactory. boolVar(String name, boolean value)Create a constant boolean variable equal to 1 if value is true and 0 otherwisedefault BoolVar[]IVariableFactory. boolVarArray(int size)Create an array of size boolean variablesdefault BoolVar[]IVariableFactory. boolVarArray(String name, int size)Create an array of size boolean variablesdefault BoolVar[][]IVariableFactory. boolVarMatrix(int dim1, int dim2)Create a dim1*dim2-sized matrix of boolean variablesdefault BoolVar[][]IVariableFactory. boolVarMatrix(String name, int dim1, int dim2)Create a dim1*dim2-sized matrix of boolean variablesBoolVarBoolVar. not()default BoolVar[]IVariableFactory. toBoolVar(IntVar... ivars)Converts ivars into an array of boolean variablesMethods in org.chocosolver.solver.variables with parameters of type BoolVar Modifier and Type Method Description voidBoolVar. _setNot(BoolVar not)default BoolVarIViewFactory. boolNotView(BoolVar bool)Creates a view over bool holding the logical negation of bool (ie, ¬BOOL). -
Uses of BoolVar in org.chocosolver.solver.variables.impl
Classes in org.chocosolver.solver.variables.impl that implement BoolVar Modifier and Type Class Description classBoolVarImplclassFixedBoolVarImplA constant view specific to boolean variableMethods in org.chocosolver.solver.variables.impl that return BoolVar Modifier and Type Method Description BoolVarAbstractVariable. asBoolVar()BoolVarBoolVarImpl. not()BoolVarFixedBoolVarImpl. not()Methods in org.chocosolver.solver.variables.impl with parameters of type BoolVar Modifier and Type Method Description voidBoolVarImpl. _setNot(BoolVar neg)voidFixedBoolVarImpl. _setNot(BoolVar not) -
Uses of BoolVar in org.chocosolver.solver.variables.view
Classes in org.chocosolver.solver.variables.view that implement BoolVar Modifier and Type Class Description classBoolNotViewA view for boolean variable, that enforce not(b).Methods in org.chocosolver.solver.variables.view that return BoolVar Modifier and Type Method Description BoolVarBoolNotView. not()Methods in org.chocosolver.solver.variables.view with parameters of type BoolVar Modifier and Type Method Description voidBoolNotView. _setNot(BoolVar not)Constructors in org.chocosolver.solver.variables.view with parameters of type BoolVar Constructor Description BoolNotView(BoolVar var)Create a not view based on var -
Uses of BoolVar in org.chocosolver.util.tools
Methods in org.chocosolver.util.tools that return BoolVar Modifier and Type Method Description static BoolVar[]ArrayUtils. append(BoolVar[]... toAppend)Append two Arraysstatic BoolVar[]ArrayUtils. concat(BoolVar[] array, BoolVar... elements)Append elements at the end of another arrayMethods in org.chocosolver.util.tools with parameters of type BoolVar Modifier and Type Method Description static BoolVar[]ArrayUtils. append(BoolVar[]... toAppend)Append two Arraysstatic BoolVar[]ArrayUtils. concat(BoolVar[] array, BoolVar... elements)Append elements at the end of another array
-