Java Reference
Java Reference
Detailed Description
MPModelProto contains all the information for a Linear Programming model.
Protobuf type
Definition at line 845 of file MPModelProto.java.
Static Public Member Functions | |
| static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
| .lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
Member Function Documentation
◆ addAllConstraint()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1667 of file MPModelProto.java.
◆ addAllGeneralConstraint()
|
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;
Definition at line 1989 of file MPModelProto.java.
◆ addAllVariable()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1355 of file MPModelProto.java.
◆ addConstraint() [1/4]
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1590 of file MPModelProto.java.
◆ addConstraint() [2/4]
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1631 of file MPModelProto.java.
◆ addConstraint() [3/4]
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1610 of file MPModelProto.java.
◆ addConstraint() [4/4]
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1649 of file MPModelProto.java.
◆ addConstraintBuilder() [1/2]
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1760 of file MPModelProto.java.
◆ addConstraintBuilder() [2/2]
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1771 of file MPModelProto.java.
◆ addGeneralConstraint() [1/4]
|
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;
Definition at line 1908 of file MPModelProto.java.
◆ addGeneralConstraint() [2/4]
|
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;
Definition at line 1951 of file MPModelProto.java.
◆ addGeneralConstraint() [3/4]
|
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;
Definition at line 1929 of file MPModelProto.java.
◆ addGeneralConstraint() [4/4]
|
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;
Definition at line 1970 of file MPModelProto.java.
◆ addGeneralConstraintBuilder() [1/2]
|
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;
Definition at line 2088 of file MPModelProto.java.
◆ addGeneralConstraintBuilder() [2/2]
|
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;
Definition at line 2100 of file MPModelProto.java.
◆ addRepeatedField()
|
inline |
Definition at line 1036 of file MPModelProto.java.
◆ addVariable() [1/4]
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1278 of file MPModelProto.java.
◆ addVariable() [2/4]
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1319 of file MPModelProto.java.
◆ addVariable() [3/4]
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1298 of file MPModelProto.java.
◆ addVariable() [4/4]
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1337 of file MPModelProto.java.
◆ addVariableBuilder() [1/2]
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1448 of file MPModelProto.java.
◆ addVariableBuilder() [2/2]
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1459 of file MPModelProto.java.
◆ build()
|
inline |
Definition at line 936 of file MPModelProto.java.
◆ buildPartial()
|
inline |
Definition at line 945 of file MPModelProto.java.
◆ clear()
|
inline |
Definition at line 883 of file MPModelProto.java.
◆ clearConstraint()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1686 of file MPModelProto.java.
◆ clearField()
|
inline |
Definition at line 1020 of file MPModelProto.java.
◆ clearGeneralConstraint()
|
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;
Definition at line 2009 of file MPModelProto.java.
◆ clearMaximize()
|
inline |
True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];
- Returns
- This builder for chaining.
Definition at line 2180 of file MPModelProto.java.
◆ clearName()
|
inline |
Name of the model.
optional string name = 5 [default = ""];
- Returns
- This builder for chaining.
Definition at line 2489 of file MPModelProto.java.
◆ clearObjectiveOffset()
|
inline |
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
- Returns
- This builder for chaining.
Definition at line 2235 of file MPModelProto.java.
◆ clearOneof()
|
inline |
Definition at line 1025 of file MPModelProto.java.
◆ clearQuadraticObjective()
|
inline |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
Definition at line 2346 of file MPModelProto.java.
◆ clearSolutionHint()
|
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;
Definition at line 2661 of file MPModelProto.java.
◆ clearVariable()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1374 of file MPModelProto.java.
◆ clone()
|
inline |
Definition at line 1010 of file MPModelProto.java.
◆ getConstraint()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 1537 of file MPModelProto.java.
◆ getConstraintBuilder()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1720 of file MPModelProto.java.
◆ getConstraintBuilderList()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1784 of file MPModelProto.java.
◆ getConstraintCount()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 1523 of file MPModelProto.java.
◆ getConstraintList()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 1509 of file MPModelProto.java.
◆ getConstraintOrBuilder()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 1731 of file MPModelProto.java.
◆ getConstraintOrBuilderList()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Implements MPModelProtoOrBuilder.
Definition at line 1746 of file MPModelProto.java.
◆ getDefaultInstanceForType()
|
inline |
Definition at line 931 of file MPModelProto.java.
◆ getDescriptor()
|
inlinestatic |
Definition at line 850 of file MPModelProto.java.
◆ getDescriptorForType()
|
inline |
Definition at line 926 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 1852 of file MPModelProto.java.
◆ getGeneralConstraintBuilder()
|
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;
Definition at line 2045 of file MPModelProto.java.
◆ getGeneralConstraintBuilderList()
|
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;
Definition at line 2114 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 1837 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 1822 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 2057 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 2073 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 2154 of file MPModelProto.java.
◆ getName()
|
inline |
Name of the model.
optional string name = 5 [default = ""];
- Returns
- The name.
Implements MPModelProtoOrBuilder.
Definition at line 2427 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 2450 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 2209 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 2266 of file MPModelProto.java.
◆ getQuadraticObjectiveBuilder()
|
inline |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
Definition at line 2364 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 2377 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 2553 of file MPModelProto.java.
◆ getSolutionHintBuilder()
|
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;
Definition at line 2686 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 2706 of file MPModelProto.java.
◆ getVariable()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 1225 of file MPModelProto.java.
◆ getVariableBuilder()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1408 of file MPModelProto.java.
◆ getVariableBuilderList()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1472 of file MPModelProto.java.
◆ getVariableCount()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 1211 of file MPModelProto.java.
◆ getVariableList()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 1197 of file MPModelProto.java.
◆ getVariableOrBuilder()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 1419 of file MPModelProto.java.
◆ getVariableOrBuilderList()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Implements MPModelProtoOrBuilder.
Definition at line 1434 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 2142 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 2416 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 2197 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 2254 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 2534 of file MPModelProto.java.
◆ internalGetFieldAccessorTable()
|
inlineprotected |
Definition at line 856 of file MPModelProto.java.
◆ isInitialized()
|
inline |
Definition at line 1154 of file MPModelProto.java.
◆ mergeFrom() [1/3]
|
inline |
Definition at line 1051 of file MPModelProto.java.
◆ mergeFrom() [2/3]
|
inline |
Definition at line 1159 of file MPModelProto.java.
◆ mergeFrom() [3/3]
|
inline |
Definition at line 1042 of file MPModelProto.java.
◆ mergeQuadraticObjective()
|
inline |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
Definition at line 2321 of file MPModelProto.java.
◆ mergeSolutionHint()
|
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;
Definition at line 2629 of file MPModelProto.java.
◆ mergeUnknownFields()
|
inline |
Definition at line 2749 of file MPModelProto.java.
◆ removeConstraint()
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1703 of file MPModelProto.java.
◆ removeGeneralConstraint()
|
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;
Definition at line 2027 of file MPModelProto.java.
◆ removeVariable()
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1391 of file MPModelProto.java.
◆ setConstraint() [1/2]
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1551 of file MPModelProto.java.
◆ setConstraint() [2/2]
|
inline |
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
Definition at line 1572 of file MPModelProto.java.
◆ setField()
|
inline |
Definition at line 1014 of file MPModelProto.java.
◆ setGeneralConstraint() [1/2]
|
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;
Definition at line 1867 of file MPModelProto.java.
◆ setGeneralConstraint() [2/2]
|
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;
Definition at line 1889 of file MPModelProto.java.
◆ setMaximize()
|
inline |
True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];
- Parameters
-
value The maximize to set.
- Returns
- This builder for chaining.
Definition at line 2166 of file MPModelProto.java.
◆ setName()
|
inline |
Name of the model.
optional string name = 5 [default = ""];
- Parameters
-
value The name to set.
- Returns
- This builder for chaining.
Definition at line 2471 of file MPModelProto.java.
◆ setNameBytes()
|
inline |
Name of the model.
optional string name = 5 [default = ""];
- Parameters
-
value The bytes for name to set.
- Returns
- This builder for chaining.
Definition at line 2504 of file MPModelProto.java.
◆ setObjectiveOffset()
|
inline |
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
- Parameters
-
value The objectiveOffset to set.
- Returns
- This builder for chaining.
Definition at line 2221 of file MPModelProto.java.
◆ setQuadraticObjective() [1/2]
|
inline |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
Definition at line 2281 of file MPModelProto.java.
◆ setQuadraticObjective() [2/2]
|
inline |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
Definition at line 2302 of file MPModelProto.java.
◆ setRepeatedField()
|
inline |
Definition at line 1030 of file MPModelProto.java.
◆ setSolutionHint() [1/2]
|
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;
Definition at line 2575 of file MPModelProto.java.
◆ setSolutionHint() [2/2]
|
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;
Definition at line 2603 of file MPModelProto.java.
◆ setUnknownFields()
|
inline |
Definition at line 2743 of file MPModelProto.java.
◆ setVariable() [1/2]
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1239 of file MPModelProto.java.
◆ setVariable() [2/2]
|
inline |
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
Definition at line 1260 of file MPModelProto.java.
The documentation for this class was generated from the following file: