Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | Annotation |
interface | AnnotationOrBuilder |
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 |
static final int | ANNOTATION_FIELD_NUMBER = 9 |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
MPModelProto contains all the information for a Linear Programming model.
Protobuf type operations_research.MPModelProto
Definition at line 14 of file MPModelProto.java.
boolean com.google.ortools.linearsolver.MPModelProto.equals | ( | final java.lang.Object | obj | ) |
Definition at line 1977 of file MPModelProto.java.
com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.getAnnotation | ( | int | index | ) |
repeated .operations_research.MPModelProto.Annotation annotation = 9;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1874 of file MPModelProto.java.
int com.google.ortools.linearsolver.MPModelProto.getAnnotationCount | ( | ) |
repeated .operations_research.MPModelProto.Annotation annotation = 9;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1867 of file MPModelProto.java.
java.util.List< com.google.ortools.linearsolver.MPModelProto.Annotation > com.google.ortools.linearsolver.MPModelProto.getAnnotationList | ( | ) |
repeated .operations_research.MPModelProto.Annotation annotation = 9;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1852 of file MPModelProto.java.
com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder com.google.ortools.linearsolver.MPModelProto.getAnnotationOrBuilder | ( | int | index | ) |
repeated .operations_research.MPModelProto.Annotation annotation = 9;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1881 of file MPModelProto.java.
java.util.List<? extends com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder > com.google.ortools.linearsolver.MPModelProto.getAnnotationOrBuilderList | ( | ) |
repeated .operations_research.MPModelProto.Annotation annotation = 9;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1860 of file MPModelProto.java.
com.google.ortools.linearsolver.MPConstraintProto com.google.ortools.linearsolver.MPModelProto.getConstraint | ( | int | index | ) |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1539 of file MPModelProto.java.
int com.google.ortools.linearsolver.MPModelProto.getConstraintCount | ( | ) |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1528 of file MPModelProto.java.
java.util.List< com.google.ortools.linearsolver.MPConstraintProto > com.google.ortools.linearsolver.MPModelProto.getConstraintList | ( | ) |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1505 of file MPModelProto.java.
com.google.ortools.linearsolver.MPConstraintProtoOrBuilder com.google.ortools.linearsolver.MPModelProto.getConstraintOrBuilder | ( | int | index | ) |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1550 of file MPModelProto.java.
java.util.List<? extends com.google.ortools.linearsolver.MPConstraintProtoOrBuilder > com.google.ortools.linearsolver.MPModelProto.getConstraintOrBuilderList | ( | ) |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1517 of file MPModelProto.java.
|
static |
Definition at line 4446 of file MPModelProto.java.
com.google.ortools.linearsolver.MPModelProto com.google.ortools.linearsolver.MPModelProto.getDefaultInstanceForType | ( | ) |
Definition at line 4482 of file MPModelProto.java.
|
static |
Definition at line 41 of file MPModelProto.java.
com.google.ortools.linearsolver.MPGeneralConstraintProto com.google.ortools.linearsolver.MPModelProto.getGeneralConstraint | ( | int | index | ) |
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 com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1604 of file MPModelProto.java.
int com.google.ortools.linearsolver.MPModelProto.getGeneralConstraintCount | ( | ) |
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 com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1592 of file MPModelProto.java.
java.util.List< com.google.ortools.linearsolver.MPGeneralConstraintProto > com.google.ortools.linearsolver.MPModelProto.getGeneralConstraintList | ( | ) |
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 com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1567 of file MPModelProto.java.
com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder com.google.ortools.linearsolver.MPModelProto.getGeneralConstraintOrBuilder | ( | int | index | ) |
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 com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1616 of file MPModelProto.java.
java.util.List<? extends com.google.ortools.linearsolver.MPGeneralConstraintProtoOrBuilder > com.google.ortools.linearsolver.MPModelProto.getGeneralConstraintOrBuilderList | ( | ) |
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 com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1580 of file MPModelProto.java.
boolean com.google.ortools.linearsolver.MPModelProto.getMaximize | ( | ) |
True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1644 of file MPModelProto.java.
java.lang.String com.google.ortools.linearsolver.MPModelProto.getName | ( | ) |
Name of the model.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1740 of file MPModelProto.java.
com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelProto.getNameBytes | ( | ) |
Name of the model.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1764 of file MPModelProto.java.
double com.google.ortools.linearsolver.MPModelProto.getObjectiveOffset | ( | ) |
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1671 of file MPModelProto.java.
com.google.protobuf.Parser< MPModelProto > com.google.ortools.linearsolver.MPModelProto.getParserForType | ( | ) |
Definition at line 4477 of file MPModelProto.java.
com.google.ortools.linearsolver.MPQuadraticObjective com.google.ortools.linearsolver.MPModelProto.getQuadraticObjective | ( | ) |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1700 of file MPModelProto.java.
com.google.ortools.linearsolver.MPQuadraticObjectiveOrBuilder com.google.ortools.linearsolver.MPModelProto.getQuadraticObjectiveOrBuilder | ( | ) |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1712 of file MPModelProto.java.
int com.google.ortools.linearsolver.MPModelProto.getSerializedSize | ( | ) |
Definition at line 1931 of file MPModelProto.java.
com.google.ortools.linearsolver.PartialVariableAssignment com.google.ortools.linearsolver.MPModelProto.getSolutionHint | ( | ) |
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 com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1820 of file MPModelProto.java.
com.google.ortools.linearsolver.PartialVariableAssignmentOrBuilder com.google.ortools.linearsolver.MPModelProto.getSolutionHintOrBuilder | ( | ) |
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 com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1841 of file MPModelProto.java.
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPModelProto.getVariable | ( | int | index | ) |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1478 of file MPModelProto.java.
int com.google.ortools.linearsolver.MPModelProto.getVariableCount | ( | ) |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1467 of file MPModelProto.java.
java.util.List< com.google.ortools.linearsolver.MPVariableProto > com.google.ortools.linearsolver.MPModelProto.getVariableList | ( | ) |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1444 of file MPModelProto.java.
com.google.ortools.linearsolver.MPVariableProtoOrBuilder com.google.ortools.linearsolver.MPModelProto.getVariableOrBuilder | ( | int | index | ) |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1489 of file MPModelProto.java.
java.util.List<? extends com.google.ortools.linearsolver.MPVariableProtoOrBuilder > com.google.ortools.linearsolver.MPModelProto.getVariableOrBuilderList | ( | ) |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1456 of file MPModelProto.java.
int com.google.ortools.linearsolver.MPModelProto.hashCode | ( | ) |
Definition at line 2025 of file MPModelProto.java.
boolean com.google.ortools.linearsolver.MPModelProto.hasMaximize | ( | ) |
True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1632 of file MPModelProto.java.
boolean com.google.ortools.linearsolver.MPModelProto.hasName | ( | ) |
Name of the model.
optional string name = 5 [default = ""];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1728 of file MPModelProto.java.
boolean com.google.ortools.linearsolver.MPModelProto.hasObjectiveOffset | ( | ) |
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1659 of file MPModelProto.java.
boolean com.google.ortools.linearsolver.MPModelProto.hasQuadraticObjective | ( | ) |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
Implements com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1687 of file MPModelProto.java.
boolean com.google.ortools.linearsolver.MPModelProto.hasSolutionHint | ( | ) |
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 com.google.ortools.linearsolver.MPModelProtoOrBuilder.
Definition at line 1798 of file MPModelProto.java.
|
protected |
Definition at line 47 of file MPModelProto.java.
final boolean com.google.ortools.linearsolver.MPModelProto.isInitialized | ( | ) |
Definition at line 1888 of file MPModelProto.java.
|
static |
Definition at line 2148 of file MPModelProto.java.
|
static |
Definition at line 2151 of file MPModelProto.java.
Builder com.google.ortools.linearsolver.MPModelProto.newBuilderForType | ( | ) |
Definition at line 2147 of file MPModelProto.java.
|
protected |
Definition at line 2161 of file MPModelProto.java.
|
static |
Definition at line 2119 of file MPModelProto.java.
|
static |
Definition at line 2125 of file MPModelProto.java.
|
static |
Definition at line 2096 of file MPModelProto.java.
|
static |
Definition at line 2100 of file MPModelProto.java.
|
static |
Definition at line 2085 of file MPModelProto.java.
|
static |
Definition at line 2090 of file MPModelProto.java.
|
static |
Definition at line 2132 of file MPModelProto.java.
|
static |
Definition at line 2138 of file MPModelProto.java.
|
static |
Definition at line 2106 of file MPModelProto.java.
|
static |
Definition at line 2111 of file MPModelProto.java.
|
static |
Definition at line 2074 of file MPModelProto.java.
|
static |
Definition at line 2079 of file MPModelProto.java.
|
static |
Definition at line 4472 of file MPModelProto.java.
Builder com.google.ortools.linearsolver.MPModelProto.toBuilder | ( | ) |
Definition at line 2155 of file MPModelProto.java.
void com.google.ortools.linearsolver.MPModelProto.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 1898 of file MPModelProto.java.
|
static |
Definition at line 1845 of file MPModelProto.java.
|
static |
Definition at line 1494 of file MPModelProto.java.
|
static |
Definition at line 1555 of file MPModelProto.java.
|
static |
Definition at line 1621 of file MPModelProto.java.
|
static |
Definition at line 1716 of file MPModelProto.java.
|
static |
Definition at line 1648 of file MPModelProto.java.
|
static |
Definition at line 1675 of file MPModelProto.java.
|
static |
Definition at line 1777 of file MPModelProto.java.
|
static |
Definition at line 1433 of file MPModelProto.java.