public interface MPVariableProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
int |
getBranchingPriority()
optional int32 branching_priority = 6 [default = 0]; |
boolean |
getIsInteger()
True if the variable is constrained to be integer.
|
double |
getLowerBound()
lower_bound must be <= upper_bound.
|
java.lang.String |
getName()
The name of the variable.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the variable.
|
double |
getObjectiveCoefficient()
The coefficient of the variable in the objective.
|
double |
getUpperBound()
optional double upper_bound = 2 [default = inf]; |
boolean |
hasBranchingPriority()
optional int32 branching_priority = 6 [default = 0]; |
boolean |
hasIsInteger()
True if the variable is constrained to be integer.
|
boolean |
hasLowerBound()
lower_bound must be <= upper_bound.
|
boolean |
hasName()
The name of the variable.
|
boolean |
hasObjectiveCoefficient()
The coefficient of the variable in the objective.
|
boolean |
hasUpperBound()
optional double upper_bound = 2 [default = inf]; |
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean hasLowerBound()
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
double getLowerBound()
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
boolean hasUpperBound()
optional double upper_bound = 2 [default = inf];
double getUpperBound()
optional double upper_bound = 2 [default = inf];
boolean hasObjectiveCoefficient()
The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
double getObjectiveCoefficient()
The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
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];
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];
boolean hasName()
The name of the variable.
optional string name = 5 [default = ""];
java.lang.String getName()
The name of the variable.
optional string name = 5 [default = ""];
com.google.protobuf.ByteString getNameBytes()
The name of the variable.
optional string name = 5 [default = ""];
boolean hasBranchingPriority()
optional int32 branching_priority = 6 [default = 0];
int getBranchingPriority()
optional int32 branching_priority = 6 [default = 0];
Copyright © 2025. All rights reserved.