public class DoubleLinearExpr
extends java.lang.Object
| Constructor and Description |
|---|
DoubleLinearExpr(IntVar[] vars,
double offset) |
DoubleLinearExpr(IntVar[] variables,
double[] coefficients,
double offset) |
DoubleLinearExpr(IntVar var,
double coefficient,
double offset) |
DoubleLinearExpr(Literal[] literals,
double offset) |
DoubleLinearExpr(Literal[] literals,
double[] coefficients,
double offset) |
DoubleLinearExpr(Literal lit,
double coefficient,
double offset) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCoefficient(int index)
Returns the ith coefficient.
|
double |
getOffset()
Returns the constant part of the expression.
|
int |
getVariableIndex(int index)
Returns the ith variable.
|
int |
numElements()
Returns the number of elements in the interface.
|
public DoubleLinearExpr(IntVar[] variables, double[] coefficients, double offset)
public DoubleLinearExpr(Literal[] literals, double[] coefficients, double offset)
public DoubleLinearExpr(IntVar var, double coefficient, double offset)
public DoubleLinearExpr(Literal lit, double coefficient, double offset)
public DoubleLinearExpr(IntVar[] vars, double offset)
public DoubleLinearExpr(Literal[] literals, double offset)
public int numElements()
public int getVariableIndex(int index)
public double getCoefficient(int index)
public double getOffset()
Copyright © 2024. All rights reserved.