Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.DoubleLinearExpr Class Reference

Public Member Functions

int numElements ()
 
int getVariableIndex (int index)
 
double getCoefficient (int index)
 
double getOffset ()
 
 DoubleLinearExpr (IntVar[] variables, double[] coefficients, double offset)
 
 DoubleLinearExpr (Literal[] literals, double[] coefficients, double offset)
 
 DoubleLinearExpr (IntVar var, double coefficient, double offset)
 
 DoubleLinearExpr (Literal lit, double coefficient, double offset)
 
 DoubleLinearExpr (IntVar[] vars, double offset)
 
 DoubleLinearExpr (Literal[] literals, double offset)
 
int numElements ()
 
int getVariableIndex (int index)
 
double getCoefficient (int index)
 
double getOffset ()
 
 DoubleLinearExpr (IntVar[] variables, double[] coefficients, double offset)
 
 DoubleLinearExpr (Literal[] literals, double[] coefficients, double offset)
 
 DoubleLinearExpr (IntVar var, double coefficient, double offset)
 
 DoubleLinearExpr (Literal lit, double coefficient, double offset)
 
 DoubleLinearExpr (IntVar[] vars, double offset)
 
 DoubleLinearExpr (Literal[] literals, double offset)
 

Detailed Description

A linear expression interface that can be parsed.

Definition at line 17 of file DoubleLinearExpr.java.

Constructor & Destructor Documentation

◆ DoubleLinearExpr() [1/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( IntVar[] variables,
double[] coefficients,
double offset )

Definition at line 125 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [2/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( Literal[] literals,
double[] coefficients,
double offset )

Definition at line 134 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [3/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( IntVar var,
double coefficient,
double offset )

Definition at line 154 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [4/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( Literal lit,
double coefficient,
double offset )

Definition at line 160 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [5/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( IntVar[] vars,
double offset )

Definition at line 172 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [6/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( Literal[] literals,
double offset )

Definition at line 184 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [7/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( IntVar[] variables,
double[] coefficients,
double offset )

Definition at line 125 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [8/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( Literal[] literals,
double[] coefficients,
double offset )

Definition at line 134 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [9/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( IntVar var,
double coefficient,
double offset )

Definition at line 154 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [10/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( Literal lit,
double coefficient,
double offset )

Definition at line 160 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [11/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( IntVar[] vars,
double offset )

Definition at line 172 of file DoubleLinearExpr.java.

◆ DoubleLinearExpr() [12/12]

com.google.ortools.sat.DoubleLinearExpr.DoubleLinearExpr ( Literal[] literals,
double offset )

Definition at line 184 of file DoubleLinearExpr.java.

Member Function Documentation

◆ getCoefficient() [1/2]

double com.google.ortools.sat.DoubleLinearExpr.getCoefficient ( int index)

Returns the ith coefficient.

Definition at line 113 of file DoubleLinearExpr.java.

◆ getCoefficient() [2/2]

double com.google.ortools.sat.DoubleLinearExpr.getCoefficient ( int index)

Returns the ith coefficient.

Definition at line 113 of file DoubleLinearExpr.java.

◆ getOffset() [1/2]

double com.google.ortools.sat.DoubleLinearExpr.getOffset ( )

Returns the constant part of the expression.

Definition at line 121 of file DoubleLinearExpr.java.

◆ getOffset() [2/2]

double com.google.ortools.sat.DoubleLinearExpr.getOffset ( )

Returns the constant part of the expression.

Definition at line 121 of file DoubleLinearExpr.java.

◆ getVariableIndex() [1/2]

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

Returns the ith variable.

Definition at line 105 of file DoubleLinearExpr.java.

◆ getVariableIndex() [2/2]

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

Returns the ith variable.

Definition at line 105 of file DoubleLinearExpr.java.

◆ numElements() [1/2]

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

Returns the number of elements in the interface.

Definition at line 100 of file DoubleLinearExpr.java.

◆ numElements() [2/2]

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

Returns the number of elements in the interface.

Definition at line 100 of file DoubleLinearExpr.java.


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