Uses of Interface
com.google.ortools.sat.LinearExpr
Packages that use LinearExpr
-
Uses of LinearExpr in com.google.ortools.sat
Classes in com.google.ortools.sat that implement LinearExprModifier and TypeClassDescriptionfinal classA specialized linear expression: a * x + bfinal classA specialized constant linear expression.final classA specialized linear expression: sum(ai * xi) + b.Methods in com.google.ortools.sat that return LinearExprModifier and TypeMethodDescriptionstatic LinearExprLinearExpr.affine(LinearArgument expr, long coeff, long offset) Shortcut for newBuilder().addTerm(expr, coeff).add(offset).build()AffineExpression.build()ConstantExpression.build()IntVar.build()LinearArgument.build()Builds a linear expression.LinearExprBuilder.build()NotBoolVar.build()WeightedSumExpression.build()static LinearExprLinearExpr.constant(long value) Shortcut for newBuilder().add(value).build()IntervalVar.getEndExpr()Returns the end expression.IntervalVar.getSizeExpr()Returns the size expression.IntervalVar.getStartExpr()Returns the start expression.static LinearExprLinearExpr.rebuildFromLinearExpressionProto(LinearExpressionProto proto) static LinearExprLinearExpr.sum(LinearArgument[] exprs) Shortcut for newBuilder().addSum(exprs).build()static LinearExprLinearExpr.term(LinearArgument expr, long coeff) Shortcut for newBuilder().addTerm(expr, coeff).build()static LinearExprLinearExpr.weightedSum(LinearArgument[] exprs, long[] coeffs) Shortcut for newBuilder().addWeightedSum(exprs, coeffs).build()Methods in com.google.ortools.sat with parameters of type LinearExprModifier and TypeMethodDescriptionReservoirConstraint.addOptionalEvent(LinearExpr time, long levelChange, Literal isActive) Adds an optional event