Interface MPModelProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MPModelProto
,MPModelProto.Builder
@Generated
public interface MPModelProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(int index) repeated .operations_research.MPModelProto.Annotation annotation = 9;
int
repeated .operations_research.MPModelProto.Annotation annotation = 9;
repeated .operations_research.MPModelProto.Annotation annotation = 9;
getAnnotationOrBuilder
(int index) repeated .operations_research.MPModelProto.Annotation annotation = 9;
List
<? extends MPModelProto.AnnotationOrBuilder> repeated .operations_research.MPModelProto.Annotation annotation = 9;
getConstraint
(int index) All the constraints appearing in the model.int
All the constraints appearing in the model.All the constraints appearing in the model.getConstraintOrBuilder
(int index) All the constraints appearing in the model.List
<? extends MPConstraintProtoOrBuilder> All the constraints appearing in the model.getGeneralConstraint
(int index) All the general constraints appearing in the model.int
All the general constraints appearing in the model.All the general constraints appearing in the model.getGeneralConstraintOrBuilder
(int index) All the general constraints appearing in the model.List
<? extends MPGeneralConstraintProtoOrBuilder> All the general constraints appearing in the model.boolean
True if the problem is a maximization problem.getName()
Name of the model.com.google.protobuf.ByteString
Name of the model.double
Offset for the objective function.Optionally, a quadratic objective.Optionally, a quadratic objective.Solution hint.Solution hint.getVariable
(int index) All the variables appearing in the model.int
All the variables appearing in the model.All the variables appearing in the model.getVariableOrBuilder
(int index) All the variables appearing in the model.List
<? extends MPVariableProtoOrBuilder> All the variables appearing in the model.boolean
True if the problem is a maximization problem.boolean
hasName()
Name of the model.boolean
Offset for the objective function.boolean
Optionally, a quadratic objective.boolean
Solution hint.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getVariableList
List<MPVariableProto> getVariableList()All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
-
getVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
-
getVariableCount
int getVariableCount()All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
-
getVariableOrBuilderList
List<? extends MPVariableProtoOrBuilder> getVariableOrBuilderList()All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
-
getVariableOrBuilder
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
-
getConstraintList
List<MPConstraintProto> getConstraintList()All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
-
getConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
-
getConstraintCount
int getConstraintCount()All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
-
getConstraintOrBuilderList
List<? extends MPConstraintProtoOrBuilder> getConstraintOrBuilderList()All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
-
getConstraintOrBuilder
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
-
getGeneralConstraintList
List<MPGeneralConstraintProto> 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;
-
getGeneralConstraint
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;
-
getGeneralConstraintCount
int 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;
-
getGeneralConstraintOrBuilderList
List<? extends MPGeneralConstraintProtoOrBuilder> 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;
-
getGeneralConstraintOrBuilder
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;
-
hasMaximize
boolean hasMaximize()True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];
- Returns:
- Whether the maximize field is set.
-
getMaximize
boolean getMaximize()True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];
- Returns:
- The maximize.
-
hasObjectiveOffset
boolean hasObjectiveOffset()Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
- Returns:
- Whether the objectiveOffset field is set.
-
getObjectiveOffset
double getObjectiveOffset()Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];
- Returns:
- The objectiveOffset.
-
hasQuadraticObjective
boolean hasQuadraticObjective()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.
-
getQuadraticObjective
MPQuadraticObjective getQuadraticObjective()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.
-
getQuadraticObjectiveOrBuilder
MPQuadraticObjectiveOrBuilder getQuadraticObjectiveOrBuilder()Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
-
hasName
boolean hasName()Name of the model.
optional string name = 5 [default = ""];
- Returns:
- Whether the name field is set.
-
getName
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Name of the model.
optional string name = 5 [default = ""];
- Returns:
- The bytes for name.
-
hasSolutionHint
boolean 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;
- Returns:
- Whether the solutionHint field is set.
-
getSolutionHint
PartialVariableAssignment 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;
- Returns:
- The solutionHint.
-
getSolutionHintOrBuilder
PartialVariableAssignmentOrBuilder 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;
-
getAnnotationList
List<MPModelProto.Annotation> getAnnotationList()repeated .operations_research.MPModelProto.Annotation annotation = 9;
-
getAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9;
-
getAnnotationCount
int getAnnotationCount()repeated .operations_research.MPModelProto.Annotation annotation = 9;
-
getAnnotationOrBuilderList
List<? extends MPModelProto.AnnotationOrBuilder> getAnnotationOrBuilderList()repeated .operations_research.MPModelProto.Annotation annotation = 9;
-
getAnnotationOrBuilder
repeated .operations_research.MPModelProto.Annotation annotation = 9;
-