Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.ConstantExpression Class Reference
Inheritance diagram for com.google.ortools.sat.ConstantExpression:
com.google.ortools.sat.LinearExpr com.google.ortools.sat.LinearExpr com.google.ortools.sat.LinearArgument com.google.ortools.sat.LinearArgument com.google.ortools.sat.LinearArgument com.google.ortools.sat.LinearArgument

Public Member Functions

 ConstantExpression (long offset)
 
LinearExpr build ()
 LinearArgument interface.
 
int numElements ()
 LinearExpr interface.
 
int getVariableIndex (int index)
 
long getCoefficient (int index)
 
long getOffset ()
 
String toString ()
 
 ConstantExpression (long offset)
 
LinearExpr build ()
 LinearArgument interface.
 
int numElements ()
 LinearExpr interface.
 
int getVariableIndex (int index)
 
long getCoefficient (int index)
 
long getOffset ()
 
String toString ()
 
- Public Member Functions inherited from com.google.ortools.sat.LinearExpr
- Public Member Functions inherited from com.google.ortools.sat.LinearArgument

Additional Inherited Members

- Static Public Member Functions inherited from com.google.ortools.sat.LinearExpr
static LinearExprBuilder newBuilder ()
 
static LinearExpr constant (long value)
 
static LinearExpr term (LinearArgument expr, long coeff)
 
static LinearExpr affine (LinearArgument expr, long coeff, long offset)
 
static LinearExpr sum (LinearArgument[] exprs)
 
static LinearExpr weightedSum (LinearArgument[] exprs, long[] coeffs)
 
static LinearExpr rebuildFromLinearExpressionProto (LinearExpressionProto proto)
 
static LinearExprBuilder newBuilder ()
 
static LinearExpr constant (long value)
 
static LinearExpr term (LinearArgument expr, long coeff)
 
static LinearExpr affine (LinearArgument expr, long coeff, long offset)
 
static LinearExpr sum (LinearArgument[] exprs)
 
static LinearExpr weightedSum (LinearArgument[] exprs, long[] coeffs)
 
static LinearExpr rebuildFromLinearExpressionProto (LinearExpressionProto proto)
 

Detailed Description

A specialized constant linear expression.

Definition at line 17 of file ConstantExpression.java.

Constructor & Destructor Documentation

◆ ConstantExpression() [1/2]

com.google.ortools.sat.ConstantExpression.ConstantExpression ( long offset)

Definition at line 20 of file ConstantExpression.java.

◆ ConstantExpression() [2/2]

com.google.ortools.sat.ConstantExpression.ConstantExpression ( long offset)

Definition at line 20 of file ConstantExpression.java.

Member Function Documentation

◆ build() [1/2]

LinearExpr com.google.ortools.sat.ConstantExpression.build ( )

LinearArgument interface.

Implements com.google.ortools.sat.LinearArgument.

Definition at line 26 of file ConstantExpression.java.

◆ build() [2/2]

LinearExpr com.google.ortools.sat.ConstantExpression.build ( )

LinearArgument interface.

Implements com.google.ortools.sat.LinearArgument.

Definition at line 26 of file ConstantExpression.java.

◆ getCoefficient() [1/2]

long com.google.ortools.sat.ConstantExpression.getCoefficient ( int index)

Returns the ith coefficient.

Implements com.google.ortools.sat.LinearExpr.

Definition at line 42 of file ConstantExpression.java.

◆ getCoefficient() [2/2]

long com.google.ortools.sat.ConstantExpression.getCoefficient ( int index)

Returns the ith coefficient.

Implements com.google.ortools.sat.LinearExpr.

Definition at line 42 of file ConstantExpression.java.

◆ getOffset() [1/2]

long com.google.ortools.sat.ConstantExpression.getOffset ( )

Returns the constant part of the expression.

Implements com.google.ortools.sat.LinearExpr.

Definition at line 47 of file ConstantExpression.java.

◆ getOffset() [2/2]

long com.google.ortools.sat.ConstantExpression.getOffset ( )

Returns the constant part of the expression.

Implements com.google.ortools.sat.LinearExpr.

Definition at line 47 of file ConstantExpression.java.

◆ getVariableIndex() [1/2]

int com.google.ortools.sat.ConstantExpression.getVariableIndex ( int index)

Returns the index of the ith variable.

Implements com.google.ortools.sat.LinearExpr.

Definition at line 37 of file ConstantExpression.java.

◆ getVariableIndex() [2/2]

int com.google.ortools.sat.ConstantExpression.getVariableIndex ( int index)

Returns the index of the ith variable.

Implements com.google.ortools.sat.LinearExpr.

Definition at line 37 of file ConstantExpression.java.

◆ numElements() [1/2]

int com.google.ortools.sat.ConstantExpression.numElements ( )

LinearExpr interface.

Implements com.google.ortools.sat.LinearExpr.

Definition at line 32 of file ConstantExpression.java.

◆ numElements() [2/2]

int com.google.ortools.sat.ConstantExpression.numElements ( )

LinearExpr interface.

Implements com.google.ortools.sat.LinearExpr.

Definition at line 32 of file ConstantExpression.java.

◆ toString() [1/2]

String com.google.ortools.sat.ConstantExpression.toString ( )

Definition at line 52 of file ConstantExpression.java.

◆ toString() [2/2]

String com.google.ortools.sat.ConstantExpression.toString ( )

Definition at line 52 of file ConstantExpression.java.


The documentation for this class was generated from the following files: