Uses of Class
com.google.ortools.sat.IntVar
Packages that use IntVar
-
Uses of IntVar in com.google.ortools.sat
Subclasses of IntVar in com.google.ortools.satMethods in com.google.ortools.sat that return IntVarModifier and TypeMethodDescriptionCpModel.getIntVarFromProtoIndex
(int index) Rebuilds an integer variable from an index.CpModel.newConstant
(long value) Creates a constant variable.Creates an integer variable with domain [lb, ub].CpModel.newIntVarFromDomain
(Domain domain, String name) Creates an integer variable with given domain.Methods in com.google.ortools.sat with parameters of type IntVarModifier and TypeMethodDescriptionvoid
Adds hinting to a variableCpModel.addInverse
(IntVar[] variables, IntVar[] inverseVariables) AddsInverse(variables, inverseVariables)
.void
CpModel.addMapDomain
(IntVar var, Literal[] booleans, long offset) Addsvar == i + offset <=> booleans[i] == true for all i in [0, booleans.length)
.static DoubleLinearExpr
Creates an affine expression (var * coefficient + offset).static DoubleLinearExpr
Creates a sum expression.static DoubleLinearExpr
DoubleLinearExpr.sumWithOffset
(IntVar[] variables, double offset) Creates a sum expression with a double offset.static DoubleLinearExpr
Creates a linear term (var * coefficient).static DoubleLinearExpr
DoubleLinearExpr.weightedSum
(IntVar[] variables, double[] coefficients) Creates a scalar product.static DoubleLinearExpr
DoubleLinearExpr.weightedSumWithOffset
(IntVar[] variables, double[] coefficients, double offset) Creates a scalar product.Constructors in com.google.ortools.sat with parameters of type IntVarModifierConstructorDescriptionDoubleLinearExpr
(IntVar[] vars, double offset) DoubleLinearExpr
(IntVar[] variables, double[] coefficients, double offset) DoubleLinearExpr
(IntVar var, double coefficient, double offset)