Interface MPVariableProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MPVariableProto
,MPVariableProto.Builder
@Generated
public interface MPVariableProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionint
optional int32 branching_priority = 6 [default = 0];
boolean
True if the variable is constrained to be integer.double
lower_bound must be <= upper_bound.getName()
The name of the variable.com.google.protobuf.ByteString
The name of the variable.double
The coefficient of the variable in the objective.double
optional double upper_bound = 2 [default = inf];
boolean
optional int32 branching_priority = 6 [default = 0];
boolean
True if the variable is constrained to be integer.boolean
lower_bound must be <= upper_bound.boolean
hasName()
The name of the variable.boolean
The coefficient of the variable in the objective.boolean
optional double upper_bound = 2 [default = inf];
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasLowerBound
boolean hasLowerBound()lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
- Returns:
- Whether the lowerBound field is set.
-
getLowerBound
double getLowerBound()lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
- Returns:
- The lowerBound.
-
hasUpperBound
boolean hasUpperBound()optional double upper_bound = 2 [default = inf];
- Returns:
- Whether the upperBound field is set.
-
getUpperBound
double getUpperBound()optional double upper_bound = 2 [default = inf];
- Returns:
- The upperBound.
-
hasObjectiveCoefficient
boolean hasObjectiveCoefficient()The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
- Returns:
- Whether the objectiveCoefficient field is set.
-
getObjectiveCoefficient
double getObjectiveCoefficient()The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
- Returns:
- The objectiveCoefficient.
-
hasIsInteger
boolean 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];
- Returns:
- Whether the isInteger field is set.
-
getIsInteger
boolean 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];
- Returns:
- The isInteger.
-
hasName
boolean hasName()The name of the variable.
optional string name = 5 [default = ""];
- Returns:
- Whether the name field is set.
-
getName
String getName()The name of the variable.
optional string name = 5 [default = ""];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of the variable.
optional string name = 5 [default = ""];
- Returns:
- The bytes for name.
-
hasBranchingPriority
boolean hasBranchingPriority()optional int32 branching_priority = 6 [default = 0];
- Returns:
- Whether the branchingPriority field is set.
-
getBranchingPriority
int getBranchingPriority()optional int32 branching_priority = 6 [default = 0];
- Returns:
- The branchingPriority.
-