Java Reference
Java Reference
Detailed Description
MPModelProto contains all the information for a Linear Programming model.
Protobuf type
Definition at line 13 of file MPModelProto.java.
Classes | |
| class | Builder |
Static Public Member Functions | |
| static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
| static com.google.ortools.linearsolver.MPModelProto | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPModelProto | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPModelProto | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPModelProto | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPModelProto | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPModelProto | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.linearsolver.MPModelProto | parseFrom (java.io.InputStream input) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPModelProto | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPModelProto | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPModelProto | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPModelProto | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
| static com.google.ortools.linearsolver.MPModelProto | 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.MPModelProto prototype) |
| static com.google.ortools.linearsolver.MPModelProto | getDefaultInstance () |
| static com.google.protobuf.Parser< MPModelProto > | parser () |
Static Public Attributes | |
| static final int | VARIABLE_FIELD_NUMBER = 3 |
| static final int | CONSTRAINT_FIELD_NUMBER = 4 |
| static final int | GENERAL_CONSTRAINT_FIELD_NUMBER = 7 |
| static final int | MAXIMIZE_FIELD_NUMBER = 1 |
| static final int | OBJECTIVE_OFFSET_FIELD_NUMBER = 2 |
| static final int | QUADRATIC_OBJECTIVE_FIELD_NUMBER = 8 |
| static final int | NAME_FIELD_NUMBER = 5 |
| static final int | SOLUTION_HINT_FIELD_NUMBER = 6 |
| .lang.Deprecated static final com.google.protobuf.Parser< MPModelProto > | PARSER |
Protected Member Functions | |
| .lang.Override java.lang.Object | newInstance (UnusedPrivateParameter unused) |
| .lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
| .lang.Override Builder | newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
Member Function Documentation
◆ equals()
|
inline |
Definition at line 657 of file MPModelProto.java.
◆ getConstraint()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 275 of file MPModelProto.java.
◆ getConstraintCount()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 264 of file MPModelProto.java.
◆ getConstraintList()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 241 of file MPModelProto.java.
◆ getConstraintOrBuilder()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 286 of file MPModelProto.java.
◆ getConstraintOrBuilderList()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 253 of file MPModelProto.java.
◆ getDefaultInstance()
|
inlinestatic |
Definition at line 2764 of file MPModelProto.java.
◆ getDefaultInstanceForType()
|
inline |
Definition at line 2789 of file MPModelProto.java.
◆ getDescriptor()
|
inlinestatic |
Definition at line 158 of file MPModelProto.java.
◆ getGeneralConstraint()
|
inline |
All the general constraints appearing in the model. Note that not all solvers support all types of general constraints.
repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
Implements MPModelProtoOrBuilder.
Definition at line 339 of file MPModelProto.java.
◆ getGeneralConstraintCount()
|
inline |
All the general constraints appearing in the model. Note that not all solvers support all types of general constraints.
repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
Implements MPModelProtoOrBuilder.
Definition at line 327 of file MPModelProto.java.
◆ getGeneralConstraintList()
|
inline |
All the general constraints appearing in the model. Note that not all solvers support all types of general constraints.
repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
Implements MPModelProtoOrBuilder.
Definition at line 302 of file MPModelProto.java.
◆ getGeneralConstraintOrBuilder()
|
inline |
All the general constraints appearing in the model. Note that not all solvers support all types of general constraints.
repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
Implements MPModelProtoOrBuilder.
Definition at line 351 of file MPModelProto.java.
◆ getGeneralConstraintOrBuilderList()
|
inline |
All the general constraints appearing in the model. Note that not all solvers support all types of general constraints.
repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
Implements MPModelProtoOrBuilder.
Definition at line 315 of file MPModelProto.java.
◆ getMaximize()
|
inline |
True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];
- Returns
- The maximize.
Implements MPModelProtoOrBuilder.
Definition at line 379 of file MPModelProto.java.
◆ getName()
|
inline |
Name of the model.
optional string name = 5 [default = ""];
- Returns
- The name.
Implements MPModelProtoOrBuilder.
Definition at line 474 of file MPModelProto.java.
◆ getNameBytes()
|
inline |
Name of the model.
optional string name = 5 [default = ""];
- Returns
- The bytes for name.
Implements MPModelProtoOrBuilder.
Definition at line 498 of file MPModelProto.java.
◆ getObjectiveOffset()
|
inline |
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
- Returns
- The objectiveOffset.
Implements MPModelProtoOrBuilder.
Definition at line 406 of file MPModelProto.java.
◆ getParserForType()
|
inline |
Definition at line 2784 of file MPModelProto.java.
◆ getQuadraticObjective()
|
inline |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
- Returns
- The quadraticObjective.
Implements MPModelProtoOrBuilder.
Definition at line 435 of file MPModelProto.java.
◆ getQuadraticObjectiveOrBuilder()
|
inline |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
Implements MPModelProtoOrBuilder.
Definition at line 447 of file MPModelProto.java.
◆ getSerializedSize()
|
inline |
Definition at line 615 of file MPModelProto.java.
◆ getSolutionHint()
|
inline |
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. A solver that supports this feature will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
optional .operations_research.PartialVariableAssignment solution_hint = 6;
- Returns
- The solutionHint.
Implements MPModelProtoOrBuilder.
Definition at line 550 of file MPModelProto.java.
◆ getSolutionHintOrBuilder()
|
inline |
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. A solver that supports this feature will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
optional .operations_research.PartialVariableAssignment solution_hint = 6;
Implements MPModelProtoOrBuilder.
Definition at line 569 of file MPModelProto.java.
◆ getUnknownFields()
|
inline |
Definition at line 38 of file MPModelProto.java.
◆ getVariable()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 215 of file MPModelProto.java.
◆ getVariableCount()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 204 of file MPModelProto.java.
◆ getVariableList()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 181 of file MPModelProto.java.
◆ getVariableOrBuilder()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 226 of file MPModelProto.java.
◆ getVariableOrBuilderList()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 193 of file MPModelProto.java.
◆ hashCode()
|
inline |
Definition at line 703 of file MPModelProto.java.
◆ hasMaximize()
|
inline |
True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];
- Returns
- Whether the maximize field is set.
Implements MPModelProtoOrBuilder.
Definition at line 367 of file MPModelProto.java.
◆ hasName()
|
inline |
Name of the model.
optional string name = 5 [default = ""];
- Returns
- Whether the name field is set.
Implements MPModelProtoOrBuilder.
Definition at line 462 of file MPModelProto.java.
◆ hasObjectiveOffset()
|
inline |
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
- Returns
- Whether the objectiveOffset field is set.
Implements MPModelProtoOrBuilder.
Definition at line 394 of file MPModelProto.java.
◆ hasQuadraticObjective()
|
inline |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
- Returns
- Whether the quadraticObjective field is set.
Implements MPModelProtoOrBuilder.
Definition at line 422 of file MPModelProto.java.
◆ hasSolutionHint()
|
inline |
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. A solver that supports this feature will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
optional .operations_research.PartialVariableAssignment solution_hint = 6;
- Returns
- Whether the solutionHint field is set.
Implements MPModelProtoOrBuilder.
Definition at line 530 of file MPModelProto.java.
◆ internalGetFieldAccessorTable()
|
inlineprotected |
Definition at line 164 of file MPModelProto.java.
◆ isInitialized()
|
inline |
Definition at line 575 of file MPModelProto.java.
◆ newBuilder() [1/2]
|
inlinestatic |
Definition at line 820 of file MPModelProto.java.
◆ newBuilder() [2/2]
|
inlinestatic |
Definition at line 823 of file MPModelProto.java.
◆ newBuilderForType() [1/2]
|
inline |
Definition at line 819 of file MPModelProto.java.
◆ newBuilderForType() [2/2]
|
inlineprotected |
Definition at line 833 of file MPModelProto.java.
◆ newInstance()
|
inlineprotected |
Definition at line 31 of file MPModelProto.java.
◆ parseDelimitedFrom() [1/2]
|
inlinestatic |
Definition at line 792 of file MPModelProto.java.
◆ parseDelimitedFrom() [2/2]
|
inlinestatic |
Definition at line 797 of file MPModelProto.java.
◆ parseFrom() [1/10]
|
inlinestatic |
Definition at line 770 of file MPModelProto.java.
◆ parseFrom() [2/10]
|
inlinestatic |
Definition at line 774 of file MPModelProto.java.
◆ parseFrom() [3/10]
|
inlinestatic |
Definition at line 759 of file MPModelProto.java.
◆ parseFrom() [4/10]
|
inlinestatic |
Definition at line 764 of file MPModelProto.java.
◆ parseFrom() [5/10]
|
inlinestatic |
Definition at line 804 of file MPModelProto.java.
◆ parseFrom() [6/10]
|
inlinestatic |
Definition at line 810 of file MPModelProto.java.
◆ parseFrom() [7/10]
|
inlinestatic |
Definition at line 780 of file MPModelProto.java.
◆ parseFrom() [8/10]
|
inlinestatic |
Definition at line 785 of file MPModelProto.java.
◆ parseFrom() [9/10]
|
inlinestatic |
Definition at line 748 of file MPModelProto.java.
◆ parseFrom() [10/10]
|
inlinestatic |
Definition at line 753 of file MPModelProto.java.
◆ parser()
|
inlinestatic |
Definition at line 2779 of file MPModelProto.java.
◆ toBuilder()
|
inline |
Definition at line 827 of file MPModelProto.java.
◆ writeTo()
|
inline |
Definition at line 585 of file MPModelProto.java.
Member Data Documentation
◆ CONSTRAINT_FIELD_NUMBER
|
static |
Definition at line 231 of file MPModelProto.java.
◆ GENERAL_CONSTRAINT_FIELD_NUMBER
|
static |
Definition at line 291 of file MPModelProto.java.
◆ MAXIMIZE_FIELD_NUMBER
|
static |
Definition at line 356 of file MPModelProto.java.
◆ NAME_FIELD_NUMBER
|
static |
Definition at line 451 of file MPModelProto.java.
◆ OBJECTIVE_OFFSET_FIELD_NUMBER
|
static |
Definition at line 383 of file MPModelProto.java.
◆ PARSER
|
static |
Definition at line 2769 of file MPModelProto.java.
◆ QUADRATIC_OBJECTIVE_FIELD_NUMBER
|
static |
Definition at line 410 of file MPModelProto.java.
◆ SOLUTION_HINT_FIELD_NUMBER
|
static |
Definition at line 511 of file MPModelProto.java.
◆ VARIABLE_FIELD_NUMBER
|
static |
Definition at line 171 of file MPModelProto.java.
The documentation for this class was generated from the following file: