Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder:
com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPQuadraticObjective.Builder

Public Member Functions

java.util.List< java.lang.Integer > getQvar1IndexList ()
 
int getQvar1IndexCount ()
 
int getQvar1Index (int index)
 
java.util.List< java.lang.Integer > getQvar2IndexList ()
 
int getQvar2IndexCount ()
 
int getQvar2Index (int index)
 
java.util.List< java.lang.Double > getCoefficientList ()
 
int getCoefficientCount ()
 
double getCoefficient (int index)
 

Detailed Description

Definition at line 7 of file MPQuadraticObjectiveOrBuilder.java.

Member Function Documentation

◆ getCoefficient()

double com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.getCoefficient ( int index)
Must be finite.

repeated double coefficient = 3;

Parameters
indexThe index of the element to return.
Returns
The coefficient at the given index.

Implemented in com.google.ortools.linearsolver.MPQuadraticObjective.Builder, and com.google.ortools.linearsolver.MPQuadraticObjective.

◆ getCoefficientCount()

int com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.getCoefficientCount ( )
Must be finite.

repeated double coefficient = 3;

Returns
The count of coefficient.

Implemented in com.google.ortools.linearsolver.MPQuadraticObjective.Builder, and com.google.ortools.linearsolver.MPQuadraticObjective.

◆ getCoefficientList()

java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.getCoefficientList ( )
Must be finite.

repeated double coefficient = 3;

Returns
A list containing the coefficient.

Implemented in com.google.ortools.linearsolver.MPQuadraticObjective.Builder, and com.google.ortools.linearsolver.MPQuadraticObjective.

◆ getQvar1Index()

int com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.getQvar1Index ( int index)
Sparse representation of quadratic terms in the objective function, where
term i is qvar1_index[i] * qvar2_index[i] * coefficient[i].
`qvar1_index` and `qvar2_index` are variable indices w.r.t the "variable"
field in MPModelProto.
`qvar1_index`, `qvar2_index` and `coefficients` must have the same size.
If the same unordered pair (qvar1_index, qvar2_index) appears several
times, the sum of all of the associated coefficients will be applied.

repeated int32 qvar1_index = 1;

Parameters
indexThe index of the element to return.
Returns
The qvar1Index at the given index.

Implemented in com.google.ortools.linearsolver.MPQuadraticObjective.Builder, and com.google.ortools.linearsolver.MPQuadraticObjective.

◆ getQvar1IndexCount()

int com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.getQvar1IndexCount ( )
Sparse representation of quadratic terms in the objective function, where
term i is qvar1_index[i] * qvar2_index[i] * coefficient[i].
`qvar1_index` and `qvar2_index` are variable indices w.r.t the "variable"
field in MPModelProto.
`qvar1_index`, `qvar2_index` and `coefficients` must have the same size.
If the same unordered pair (qvar1_index, qvar2_index) appears several
times, the sum of all of the associated coefficients will be applied.

repeated int32 qvar1_index = 1;

Returns
The count of qvar1Index.

Implemented in com.google.ortools.linearsolver.MPQuadraticObjective.Builder, and com.google.ortools.linearsolver.MPQuadraticObjective.

◆ getQvar1IndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.getQvar1IndexList ( )
Sparse representation of quadratic terms in the objective function, where
term i is qvar1_index[i] * qvar2_index[i] * coefficient[i].
`qvar1_index` and `qvar2_index` are variable indices w.r.t the "variable"
field in MPModelProto.
`qvar1_index`, `qvar2_index` and `coefficients` must have the same size.
If the same unordered pair (qvar1_index, qvar2_index) appears several
times, the sum of all of the associated coefficients will be applied.

repeated int32 qvar1_index = 1;

Returns
A list containing the qvar1Index.

Implemented in com.google.ortools.linearsolver.MPQuadraticObjective.Builder, and com.google.ortools.linearsolver.MPQuadraticObjective.

◆ getQvar2Index()

int com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.getQvar2Index ( int index)

repeated int32 qvar2_index = 2;

Parameters
indexThe index of the element to return.
Returns
The qvar2Index at the given index.

Implemented in com.google.ortools.linearsolver.MPQuadraticObjective.Builder, and com.google.ortools.linearsolver.MPQuadraticObjective.

◆ getQvar2IndexCount()

int com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.getQvar2IndexCount ( )

repeated int32 qvar2_index = 2;

Returns
The count of qvar2Index.

Implemented in com.google.ortools.linearsolver.MPQuadraticObjective.Builder, and com.google.ortools.linearsolver.MPQuadraticObjective.

◆ getQvar2IndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder.getQvar2IndexList ( )

repeated int32 qvar2_index = 2;

Returns
A list containing the qvar2Index.

Implemented in com.google.ortools.linearsolver.MPQuadraticObjective.Builder, and com.google.ortools.linearsolver.MPQuadraticObjective.


The documentation for this interface was generated from the following file: