Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
boolean | hasLowerBound () |
double | getLowerBound () |
boolean | hasUpperBound () |
double | getUpperBound () |
boolean | hasObjectiveCoefficient () |
double | getObjectiveCoefficient () |
boolean | hasIsInteger () |
boolean | getIsInteger () |
boolean | hasName () |
java.lang.String | getName () |
com.google.protobuf.ByteString | getNameBytes () |
boolean | hasBranchingPriority () |
int | getBranchingPriority () |
Definition at line 7 of file MPVariableProtoOrBuilder.java.
int com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getBranchingPriority | ( | ) |
optional int32 branching_priority = 6 [default = 0];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getIsInteger | ( | ) |
True if the variable is constrained to be integer. Ignored if MPModelProto::solver_type is *LINEAR_PROGRAMMING*.
optional bool is_integer = 4 [default = false];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
double com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
java.lang.String com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getName | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getNameBytes | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
double com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getObjectiveCoefficient | ( | ) |
The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
double com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getUpperBound | ( | ) |
optional double upper_bound = 2 [default = inf];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasBranchingPriority | ( | ) |
optional int32 branching_priority = 6 [default = 0];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasIsInteger | ( | ) |
True if the variable is constrained to be integer. Ignored if MPModelProto::solver_type is *LINEAR_PROGRAMMING*.
optional bool is_integer = 4 [default = false];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasName | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasObjectiveCoefficient | ( | ) |
The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.
boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasUpperBound | ( | ) |
optional double upper_bound = 2 [default = inf];
Implemented in com.google.ortools.linearsolver.MPVariableProto.Builder, and com.google.ortools.linearsolver.MPVariableProto.