Uses of Class
com.google.ortools.sat.DoubleLinearExpr
Packages that use DoubleLinearExpr
-
Uses of DoubleLinearExpr in com.google.ortools.sat
Methods in com.google.ortools.sat that return DoubleLinearExprModifier and TypeMethodDescriptionstatic DoubleLinearExprCreates an affine expression (var * coefficient + offset).static DoubleLinearExprCreates an affine expression (lit * coefficient + offset).static DoubleLinearExprDoubleLinearExpr.constant(double value) Creates a constant expression.static DoubleLinearExprCreates a sum expression.static DoubleLinearExprCreates a sum expression.static DoubleLinearExprDoubleLinearExpr.sumWithOffset(IntVar[] variables, double offset) Creates a sum expression with a double offset.static DoubleLinearExprDoubleLinearExpr.sumWithOffset(Literal[] literals, double offset) Creates a sum expression with a double offset.static DoubleLinearExprCreates a linear term (var * coefficient).static DoubleLinearExprCreates a linear term (lit * coefficient).static DoubleLinearExprDoubleLinearExpr.weightedSum(IntVar[] variables, double[] coefficients) Creates a scalar product.static DoubleLinearExprDoubleLinearExpr.weightedSum(Literal[] literals, double[] coefficients) Creates a scalar product.static DoubleLinearExprDoubleLinearExpr.weightedSumWithOffset(IntVar[] variables, double[] coefficients, double offset) Creates a scalar product.static DoubleLinearExprDoubleLinearExpr.weightedSumWithOffset(Literal[] literals, double[] coefficients, double offset) Creates a scalar product with a double offset.Methods in com.google.ortools.sat with parameters of type DoubleLinearExprModifier and TypeMethodDescriptionvoidCpModel.maximize(DoubleLinearExpr expr) Adds a maximization objective of a linear expression.voidCpModel.minimize(DoubleLinearExpr expr) Adds a minimization objective of a linear expression.