Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
java.util.List< java.lang.Integer > | getVarIndexList () |
int | getVarIndexCount () |
int | getVarIndex (int index) |
boolean | hasConstant () |
double | getConstant () |
boolean | hasResultantVarIndex () |
int | getResultantVarIndex () |
Definition at line 7 of file MPArrayWithConstantConstraintOrBuilder.java.
double com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.getConstant | ( | ) |
optional double constant = 2;
Implemented in com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, and com.google.ortools.linearsolver.MPArrayWithConstantConstraint.
int com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.getResultantVarIndex | ( | ) |
optional int32 resultant_var_index = 3;
Implemented in com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, and com.google.ortools.linearsolver.MPArrayWithConstantConstraint.
int com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.getVarIndex | ( | int | index | ) |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
index | The index of the element to return. |
Implemented in com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, and com.google.ortools.linearsolver.MPArrayWithConstantConstraint.
int com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.getVarIndexCount | ( | ) |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
Implemented in com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, and com.google.ortools.linearsolver.MPArrayWithConstantConstraint.
java.util.List< java.lang.Integer > com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.getVarIndexList | ( | ) |
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;
Implemented in com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, and com.google.ortools.linearsolver.MPArrayWithConstantConstraint.
boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.hasConstant | ( | ) |
optional double constant = 2;
Implemented in com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, and com.google.ortools.linearsolver.MPArrayWithConstantConstraint.
boolean com.google.ortools.linearsolver.MPArrayWithConstantConstraintOrBuilder.hasResultantVarIndex | ( | ) |
optional int32 resultant_var_index = 3;
Implemented in com.google.ortools.linearsolver.MPArrayWithConstantConstraint.Builder, and com.google.ortools.linearsolver.MPArrayWithConstantConstraint.