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