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 TypeMethodDescriptionvoidAdds hinting to a variableCpModel.addInverse(IntVar[] variables, IntVar[] inverseVariables) AddsInverse(variables, inverseVariables).voidCpModel.addMapDomain(IntVar var, Literal[] booleans, long offset) Addsvar == i + offset <=> booleans[i] == true for all i in [0, booleans.length).static DoubleLinearExprCreates an affine expression (var * coefficient + offset).static DoubleLinearExprCreates a sum expression.static DoubleLinearExprDoubleLinearExpr.sumWithOffset(IntVar[] variables, double offset) Creates a sum expression with a double offset.static DoubleLinearExprCreates a linear term (var * coefficient).static DoubleLinearExprDoubleLinearExpr.weightedSum(IntVar[] variables, double[] coefficients) Creates a scalar product.static DoubleLinearExprDoubleLinearExpr.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)