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

Public Member Functions

LinearExprBuilder add (LinearArgument expr)
 
LinearExprBuilder add (double constant)
 
LinearExprBuilder addTerm (LinearArgument expr, double coeff)
 
LinearExprBuilder addSum (LinearArgument[] exprs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, double[] coeffs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, int[] coeffs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, long[] coeffs)
 
LinearExpr build ()
 
LinearExprBuilder add (LinearArgument expr)
 
LinearExprBuilder add (double constant)
 
LinearExprBuilder addTerm (LinearArgument expr, double coeff)
 
LinearExprBuilder addSum (LinearArgument[] exprs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, double[] coeffs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, int[] coeffs)
 
LinearExprBuilder addWeightedSum (LinearArgument[] exprs, long[] coeffs)
 
LinearExpr build ()
 
- Public Member Functions inherited from com.google.ortools.modelbuilder.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.modelbuilder.LinearExprBuilder.add ( double constant)

Definition at line 34 of file LinearExprBuilder.java.

◆ add() [2/4]

LinearExprBuilder com.google.ortools.modelbuilder.LinearExprBuilder.add ( double constant)

Definition at line 34 of file LinearExprBuilder.java.

◆ add() [3/4]

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

Definition at line 29 of file LinearExprBuilder.java.

◆ add() [4/4]

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

Definition at line 29 of file LinearExprBuilder.java.

◆ addSum() [1/2]

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

Definition at line 49 of file LinearExprBuilder.java.

◆ addSum() [2/2]

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

Definition at line 49 of file LinearExprBuilder.java.

◆ addTerm() [1/2]

LinearExprBuilder com.google.ortools.modelbuilder.LinearExprBuilder.addTerm ( LinearArgument expr,
double coeff )

Definition at line 39 of file LinearExprBuilder.java.

◆ addTerm() [2/2]

LinearExprBuilder com.google.ortools.modelbuilder.LinearExprBuilder.addTerm ( LinearArgument expr,
double coeff )

Definition at line 39 of file LinearExprBuilder.java.

◆ addWeightedSum() [1/6]

LinearExprBuilder com.google.ortools.modelbuilder.LinearExprBuilder.addWeightedSum ( LinearArgument[] exprs,
double[] coeffs )

Definition at line 56 of file LinearExprBuilder.java.

◆ addWeightedSum() [2/6]

LinearExprBuilder com.google.ortools.modelbuilder.LinearExprBuilder.addWeightedSum ( LinearArgument[] exprs,
double[] coeffs )

Definition at line 56 of file LinearExprBuilder.java.

◆ addWeightedSum() [3/6]

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

Definition at line 63 of file LinearExprBuilder.java.

◆ addWeightedSum() [4/6]

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

Definition at line 63 of file LinearExprBuilder.java.

◆ addWeightedSum() [5/6]

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

Definition at line 70 of file LinearExprBuilder.java.

◆ addWeightedSum() [6/6]

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

Definition at line 70 of file LinearExprBuilder.java.

◆ build() [1/2]

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

Builds a linear expression.

Implements com.google.ortools.modelbuilder.LinearArgument.

Definition at line 78 of file LinearExprBuilder.java.

◆ build() [2/2]

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

Builds a linear expression.

Implements com.google.ortools.modelbuilder.LinearArgument.

Definition at line 78 of file LinearExprBuilder.java.


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