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

Public Member Functions

LinearExprBuilder add (LinearArgument expr)
 
LinearExprBuilder add (long constant)
 
LinearExprBuilder addTerm (LinearArgument expr, long coeff)
 
LinearExprBuilder addSum (LinearArgument[] exprs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, long[] coeffs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, int[] coeffs)
 
LinearExpr build ()
 
LinearExprBuilder add (LinearArgument expr)
 
LinearExprBuilder add (long constant)
 
LinearExprBuilder addTerm (LinearArgument expr, long coeff)
 
LinearExprBuilder addSum (LinearArgument[] exprs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, long[] coeffs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, int[] coeffs)
 
LinearExpr build ()
 
- Public Member Functions inherited from com.google.ortools.sat.LinearArgument

Detailed Description

Builder class for the LinearExpr container.

Definition at line 20 of file LinearExprBuilder.java.

Member Function Documentation

◆ add() [1/4]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.add ( LinearArgument expr)

Definition at line 29 of file LinearExprBuilder.java.

◆ add() [2/4]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.add ( LinearArgument expr)

Definition at line 29 of file LinearExprBuilder.java.

◆ add() [3/4]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.add ( long constant)

Definition at line 34 of file LinearExprBuilder.java.

◆ add() [4/4]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.add ( long constant)

Definition at line 34 of file LinearExprBuilder.java.

◆ addSum() [1/2]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.addSum ( LinearArgument[] exprs)

Definition at line 49 of file LinearExprBuilder.java.

◆ addSum() [2/2]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.addSum ( LinearArgument[] exprs)

Definition at line 49 of file LinearExprBuilder.java.

◆ addTerm() [1/2]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.addTerm ( LinearArgument expr,
long coeff )

Definition at line 39 of file LinearExprBuilder.java.

◆ addTerm() [2/2]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.addTerm ( LinearArgument expr,
long coeff )

Definition at line 39 of file LinearExprBuilder.java.

◆ addWeightedSum() [1/4]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.addWeightedSum ( LinearArgument[] exprs,
int[] coeffs )

Definition at line 63 of file LinearExprBuilder.java.

◆ addWeightedSum() [2/4]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.addWeightedSum ( LinearArgument[] exprs,
int[] coeffs )

Definition at line 63 of file LinearExprBuilder.java.

◆ addWeightedSum() [3/4]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.addWeightedSum ( LinearArgument[] exprs,
long[] coeffs )

Definition at line 56 of file LinearExprBuilder.java.

◆ addWeightedSum() [4/4]

LinearExprBuilder com.google.ortools.sat.LinearExprBuilder.addWeightedSum ( LinearArgument[] exprs,
long[] coeffs )

Definition at line 56 of file LinearExprBuilder.java.

◆ build() [1/2]

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

Builds a linear expression.

Implements com.google.ortools.sat.LinearArgument.

Definition at line 71 of file LinearExprBuilder.java.

◆ build() [2/2]

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

Builds a linear expression.

Implements com.google.ortools.sat.LinearArgument.

Definition at line 71 of file LinearExprBuilder.java.


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