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

Public Member Functions

java.util.List< java.lang.Integer > getVarIndexList ()
 
int getVarIndexCount ()
 
int getVarIndex (int index)
 
java.util.List< java.lang.Double > getCoefficientList ()
 
int getCoefficientCount ()
 
double getCoefficient (int index)
 
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 > getQcoefficientList ()
 
int getQcoefficientCount ()
 
double getQcoefficient (int index)
 
boolean hasLowerBound ()
 
double getLowerBound ()
 
boolean hasUpperBound ()
 
double getUpperBound ()
 

Detailed Description

Definition at line 7 of file MPQuadraticConstraintOrBuilder.java.

Member Function Documentation

◆ getCoefficient()

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

repeated double coefficient = 2;

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

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

◆ getCoefficientCount()

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

repeated double coefficient = 2;

Returns
The count of coefficient.

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

◆ getCoefficientList()

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

repeated double coefficient = 2;

Returns
A list containing the coefficient.

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

◆ getLowerBound()

double com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getLowerBound ( )
lower_bound must be <= upper_bound.

optional double lower_bound = 6 [default = -inf];

Returns
The lowerBound.

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

◆ getQcoefficient()

double com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQcoefficient ( int index)
Must be finite.

repeated double qcoefficient = 5;

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

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

◆ getQcoefficientCount()

int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQcoefficientCount ( )
Must be finite.

repeated double qcoefficient = 5;

Returns
The count of qcoefficient.

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

◆ getQcoefficientList()

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

repeated double qcoefficient = 5;

Returns
A list containing the qcoefficient.

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

◆ getQvar1Index()

int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQvar1Index ( int index)
Sparse representation of quadratic terms in the quadratic constraint, where
term i is qvar1_index[i] * qvar2_index[i] * qcoefficient[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 = 3;

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

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

◆ getQvar1IndexCount()

int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQvar1IndexCount ( )
Sparse representation of quadratic terms in the quadratic constraint, where
term i is qvar1_index[i] * qvar2_index[i] * qcoefficient[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 = 3;

Returns
The count of qvar1Index.

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

◆ getQvar1IndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getQvar1IndexList ( )
Sparse representation of quadratic terms in the quadratic constraint, where
term i is qvar1_index[i] * qvar2_index[i] * qcoefficient[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 = 3;

Returns
A list containing the qvar1Index.

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

◆ getQvar2Index()

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

repeated int32 qvar2_index = 4;

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

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

◆ getQvar2IndexCount()

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

repeated int32 qvar2_index = 4;

Returns
The count of qvar2Index.

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

◆ getQvar2IndexList()

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

repeated int32 qvar2_index = 4;

Returns
A list containing the qvar2Index.

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

◆ getUpperBound()

double com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getUpperBound ( )

optional double upper_bound = 7 [default = inf];

Returns
The upperBound.

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

◆ getVarIndex()

int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getVarIndex ( int index)
Sparse representation of linear terms in the quadratic constraint, where
term i is var_index[i] * coefficient[i].
`var_index` are variable indices w.r.t the "variable" field in
MPModelProto, and should be unique.

repeated int32 var_index = 1;

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

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

◆ getVarIndexCount()

int com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getVarIndexCount ( )
Sparse representation of linear terms in the quadratic constraint, where
term i is var_index[i] * coefficient[i].
`var_index` are variable indices w.r.t the "variable" field in
MPModelProto, and should be unique.

repeated int32 var_index = 1;

Returns
The count of varIndex.

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

◆ getVarIndexList()

java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.getVarIndexList ( )
Sparse representation of linear terms in the quadratic constraint, where
term i is var_index[i] * coefficient[i].
`var_index` are variable indices w.r.t the "variable" field in
MPModelProto, and should be unique.

repeated int32 var_index = 1;

Returns
A list containing the varIndex.

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

◆ hasLowerBound()

boolean com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.hasLowerBound ( )
lower_bound must be <= upper_bound.

optional double lower_bound = 6 [default = -inf];

Returns
Whether the lowerBound field is set.

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

◆ hasUpperBound()

boolean com.google.ortools.linearsolver.MPQuadraticConstraintOrBuilder.hasUpperBound ( )

optional double upper_bound = 7 [default = inf];

Returns
Whether the upperBound field is set.

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


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