Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
Builder | clear () |
com.google.protobuf.Descriptors.Descriptor | getDescriptorForType () |
com.google.ortools.linearsolver.MPVariableProto | getDefaultInstanceForType () |
com.google.ortools.linearsolver.MPVariableProto | build () |
com.google.ortools.linearsolver.MPVariableProto | buildPartial () |
Builder | clone () |
Builder | setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) |
Builder | clearField (com.google.protobuf.Descriptors.FieldDescriptor field) |
Builder | clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Builder | setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) |
Builder | addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) |
Builder | mergeFrom (com.google.protobuf.Message other) |
Builder | mergeFrom (com.google.ortools.linearsolver.MPVariableProto other) |
final boolean | isInitialized () |
Builder | mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
boolean | hasLowerBound () |
double | getLowerBound () |
Builder | setLowerBound (double value) |
Builder | clearLowerBound () |
boolean | hasUpperBound () |
double | getUpperBound () |
Builder | setUpperBound (double value) |
Builder | clearUpperBound () |
boolean | hasObjectiveCoefficient () |
double | getObjectiveCoefficient () |
Builder | setObjectiveCoefficient (double value) |
Builder | clearObjectiveCoefficient () |
boolean | hasIsInteger () |
boolean | getIsInteger () |
Builder | setIsInteger (boolean value) |
Builder | clearIsInteger () |
boolean | hasName () |
java.lang.String | getName () |
com.google.protobuf.ByteString | getNameBytes () |
Builder | setName (java.lang.String value) |
Builder | clearName () |
Builder | setNameBytes (com.google.protobuf.ByteString value) |
boolean | hasBranchingPriority () |
int | getBranchingPriority () |
Builder | setBranchingPriority (int value) |
Builder | clearBranchingPriority () |
final Builder | setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields) |
final Builder | mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields) |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
A variable is always constrained in the form: lower_bound <= x <= upper_bound where lower_bound and upper_bound: - Can form a singleton: x = constant = lower_bound = upper_bound. - Can form a finite interval: lower_bound <= x <= upper_bound. (x is boxed.) - Can form a semi-infinite interval. - lower_bound = -infinity: x <= upper_bound. - upper_bound = +infinity: x >= lower_bound. - Can form the infinite interval: lower_bound = -infinity and upper_bound = +infinity, x is free. MPVariableProto furthermore stores: - The coefficient of the variable in the objective. - Whether the variable is integer.
Protobuf type operations_research.MPVariableProto
Definition at line 511 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.addRepeatedField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
java.lang.Object | value ) |
Definition at line 636 of file MPVariableProto.java.
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPVariableProto.Builder.build | ( | ) |
Definition at line 563 of file MPVariableProto.java.
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPVariableProto.Builder.buildPartial | ( | ) |
Definition at line 572 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clear | ( | ) |
Definition at line 539 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clearBranchingPriority | ( | ) |
optional int32 branching_priority = 6 [default = 0];
Definition at line 1095 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clearField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field | ) |
Definition at line 620 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clearIsInteger | ( | ) |
True if the variable is constrained to be integer. Ignored if MPModelProto::solver_type is *LINEAR_PROGRAMMING*.
optional bool is_integer = 4 [default = false];
Definition at line 951 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clearLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
Definition at line 795 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clearName | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Definition at line 1038 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clearObjectiveCoefficient | ( | ) |
The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
Definition at line 891 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clearOneof | ( | com.google.protobuf.Descriptors.OneofDescriptor | oneof | ) |
Definition at line 625 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clearUpperBound | ( | ) |
optional double upper_bound = 2 [default = inf];
Definition at line 835 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.clone | ( | ) |
Definition at line 610 of file MPVariableProto.java.
int com.google.ortools.linearsolver.MPVariableProto.Builder.getBranchingPriority | ( | ) |
optional int32 branching_priority = 6 [default = 0];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 1076 of file MPVariableProto.java.
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPVariableProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 558 of file MPVariableProto.java.
|
static |
Definition at line 516 of file MPVariableProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPVariableProto.Builder.getDescriptorForType | ( | ) |
Definition at line 553 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.Builder.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];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 922 of file MPVariableProto.java.
double com.google.ortools.linearsolver.MPVariableProto.Builder.getLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 768 of file MPVariableProto.java.
java.lang.String com.google.ortools.linearsolver.MPVariableProto.Builder.getName | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 978 of file MPVariableProto.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPVariableProto.Builder.getNameBytes | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 1001 of file MPVariableProto.java.
double com.google.ortools.linearsolver.MPVariableProto.Builder.getObjectiveCoefficient | ( | ) |
The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 864 of file MPVariableProto.java.
double com.google.ortools.linearsolver.MPVariableProto.Builder.getUpperBound | ( | ) |
optional double upper_bound = 2 [default = inf];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 816 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.Builder.hasBranchingPriority | ( | ) |
optional int32 branching_priority = 6 [default = 0];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 1068 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.Builder.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];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 909 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.Builder.hasLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 756 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.Builder.hasName | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 967 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.Builder.hasObjectiveCoefficient | ( | ) |
The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 852 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.Builder.hasUpperBound | ( | ) |
optional double upper_bound = 2 [default = inf];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 808 of file MPVariableProto.java.
|
protected |
Definition at line 522 of file MPVariableProto.java.
final boolean com.google.ortools.linearsolver.MPVariableProto.Builder.isInitialized | ( | ) |
Definition at line 679 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.mergeFrom | ( | com.google.ortools.linearsolver.MPVariableProto | other | ) |
Definition at line 651 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 684 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 642 of file MPVariableProto.java.
final Builder com.google.ortools.linearsolver.MPVariableProto.Builder.mergeUnknownFields | ( | final com.google.protobuf.UnknownFieldSet | unknownFields | ) |
Definition at line 1108 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setBranchingPriority | ( | int | value | ) |
optional int32 branching_priority = 6 [default = 0];
value | The branchingPriority to set. |
Definition at line 1084 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
java.lang.Object | value ) |
Definition at line 614 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setIsInteger | ( | boolean | value | ) |
True if the variable is constrained to be integer. Ignored if MPModelProto::solver_type is *LINEAR_PROGRAMMING*.
optional bool is_integer = 4 [default = false];
value | The isInteger to set. |
Definition at line 935 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setLowerBound | ( | double | value | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
value | The lowerBound to set. |
Definition at line 780 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setName | ( | java.lang.String | value | ) |
The name of the variable.
optional string name = 5 [default = ""];
value | The name to set. |
Definition at line 1022 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setNameBytes | ( | com.google.protobuf.ByteString | value | ) |
The name of the variable.
optional string name = 5 [default = ""];
value | The bytes for name to set. |
Definition at line 1053 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setObjectiveCoefficient | ( | double | value | ) |
The coefficient of the variable in the objective. Must be finite.
optional double objective_coefficient = 3 [default = 0];
value | The objectiveCoefficient to set. |
Definition at line 876 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setRepeatedField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
int | index, | ||
java.lang.Object | value ) |
Definition at line 630 of file MPVariableProto.java.
final Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setUnknownFields | ( | final com.google.protobuf.UnknownFieldSet | unknownFields | ) |
Definition at line 1102 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.Builder.setUpperBound | ( | double | value | ) |
optional double upper_bound = 2 [default = inf];
value | The upperBound to set. |
Definition at line 824 of file MPVariableProto.java.