Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Builder |
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 () |
final boolean | isInitialized () |
void | writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException |
int | getSerializedSize () |
boolean | equals (final java.lang.Object obj) |
int | hashCode () |
Builder | newBuilderForType () |
Builder | toBuilder () |
com.google.protobuf.Parser< MPVariableProto > | getParserForType () |
com.google.ortools.linearsolver.MPVariableProto | getDefaultInstanceForType () |
Public Member Functions inherited from com.google.ortools.linearsolver.MPVariableProtoOrBuilder |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPVariableProto | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPVariableProto | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
static com.google.ortools.linearsolver.MPVariableProto | parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
static Builder | newBuilder () |
static Builder | newBuilder (com.google.ortools.linearsolver.MPVariableProto prototype) |
static com.google.ortools.linearsolver.MPVariableProto | getDefaultInstance () |
static com.google.protobuf.Parser< MPVariableProto > | parser () |
Static Public Attributes | |
static final int | LOWER_BOUND_FIELD_NUMBER = 1 |
static final int | UPPER_BOUND_FIELD_NUMBER = 2 |
static final int | OBJECTIVE_COEFFICIENT_FIELD_NUMBER = 3 |
static final int | IS_INTEGER_FIELD_NUMBER = 4 |
static final int | NAME_FIELD_NUMBER = 5 |
static final int | BRANCHING_PRIORITY_FIELD_NUMBER = 6 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
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 26 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 316 of file MPVariableProto.java.
int com.google.ortools.linearsolver.MPVariableProto.getBranchingPriority | ( | ) |
optional int32 branching_priority = 6 [default = 0];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 242 of file MPVariableProto.java.
|
static |
Definition at line 1081 of file MPVariableProto.java.
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPVariableProto.getDefaultInstanceForType | ( | ) |
Definition at line 1117 of file MPVariableProto.java.
|
static |
Definition at line 51 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.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 162 of file MPVariableProto.java.
double com.google.ortools.linearsolver.MPVariableProto.getLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 87 of file MPVariableProto.java.
java.lang.String com.google.ortools.linearsolver.MPVariableProto.getName | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 190 of file MPVariableProto.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPVariableProto.getNameBytes | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 214 of file MPVariableProto.java.
double com.google.ortools.linearsolver.MPVariableProto.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 133 of file MPVariableProto.java.
com.google.protobuf.Parser< MPVariableProto > com.google.ortools.linearsolver.MPVariableProto.getParserForType | ( | ) |
Definition at line 1112 of file MPVariableProto.java.
int com.google.ortools.linearsolver.MPVariableProto.getSerializedSize | ( | ) |
Definition at line 282 of file MPVariableProto.java.
double com.google.ortools.linearsolver.MPVariableProto.getUpperBound | ( | ) |
optional double upper_bound = 2 [default = inf];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 106 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.hasBranchingPriority | ( | ) |
optional int32 branching_priority = 6 [default = 0];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 234 of file MPVariableProto.java.
int com.google.ortools.linearsolver.MPVariableProto.hashCode | ( | ) |
Definition at line 363 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.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 149 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.hasLowerBound | ( | ) |
lower_bound must be <= upper_bound.
optional double lower_bound = 1 [default = -inf];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 75 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.hasName | ( | ) |
The name of the variable.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 178 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.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 121 of file MPVariableProto.java.
boolean com.google.ortools.linearsolver.MPVariableProto.hasUpperBound | ( | ) |
optional double upper_bound = 2 [default = inf];
Implements com.google.ortools.linearsolver.MPVariableProtoOrBuilder.
Definition at line 98 of file MPVariableProto.java.
|
protected |
Definition at line 57 of file MPVariableProto.java.
final boolean com.google.ortools.linearsolver.MPVariableProto.isInitialized | ( | ) |
Definition at line 248 of file MPVariableProto.java.
|
static |
Definition at line 476 of file MPVariableProto.java.
|
static |
Definition at line 479 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.newBuilderForType | ( | ) |
Definition at line 475 of file MPVariableProto.java.
|
protected |
Definition at line 489 of file MPVariableProto.java.
|
static |
Definition at line 447 of file MPVariableProto.java.
|
static |
Definition at line 453 of file MPVariableProto.java.
|
static |
Definition at line 424 of file MPVariableProto.java.
|
static |
Definition at line 428 of file MPVariableProto.java.
|
static |
Definition at line 413 of file MPVariableProto.java.
|
static |
Definition at line 418 of file MPVariableProto.java.
|
static |
Definition at line 460 of file MPVariableProto.java.
|
static |
Definition at line 466 of file MPVariableProto.java.
|
static |
Definition at line 434 of file MPVariableProto.java.
|
static |
Definition at line 439 of file MPVariableProto.java.
|
static |
Definition at line 402 of file MPVariableProto.java.
|
static |
Definition at line 407 of file MPVariableProto.java.
|
static |
Definition at line 1107 of file MPVariableProto.java.
Builder com.google.ortools.linearsolver.MPVariableProto.toBuilder | ( | ) |
Definition at line 483 of file MPVariableProto.java.
void com.google.ortools.linearsolver.MPVariableProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 258 of file MPVariableProto.java.
|
static |
Definition at line 227 of file MPVariableProto.java.
|
static |
Definition at line 137 of file MPVariableProto.java.
|
static |
Definition at line 64 of file MPVariableProto.java.
|
static |
Definition at line 166 of file MPVariableProto.java.
|
static |
Definition at line 110 of file MPVariableProto.java.
|
static |
Definition at line 91 of file MPVariableProto.java.