Class MPModelProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MPModelProto.Builder>
com.google.protobuf.GeneratedMessage.Builder<MPModelProto.Builder>
com.google.ortools.linearsolver.MPModelProto.Builder
- All Implemented Interfaces:
MPModelProtoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
MPModelProto
public static final class MPModelProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MPModelProto.Builder>
implements MPModelProtoOrBuilder
MPModelProto contains all the information for a Linear Programming model.Protobuf type
operations_research.MPModelProto-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnnotation(Iterable<? extends MPModelProto.Annotation> values) repeated .operations_research.MPModelProto.Annotation annotation = 9;addAllConstraint(Iterable<? extends MPConstraintProto> values) All the constraints appearing in the model.addAllGeneralConstraint(Iterable<? extends MPGeneralConstraintProto> values) All the general constraints appearing in the model.addAllVariable(Iterable<? extends MPVariableProto> values) All the variables appearing in the model.addAnnotation(int index, MPModelProto.Annotation value) repeated .operations_research.MPModelProto.Annotation annotation = 9;addAnnotation(int index, MPModelProto.Annotation.Builder builderForValue) repeated .operations_research.MPModelProto.Annotation annotation = 9;repeated .operations_research.MPModelProto.Annotation annotation = 9;addAnnotation(MPModelProto.Annotation.Builder builderForValue) repeated .operations_research.MPModelProto.Annotation annotation = 9;repeated .operations_research.MPModelProto.Annotation annotation = 9;addAnnotationBuilder(int index) repeated .operations_research.MPModelProto.Annotation annotation = 9;addConstraint(int index, MPConstraintProto value) All the constraints appearing in the model.addConstraint(int index, MPConstraintProto.Builder builderForValue) All the constraints appearing in the model.addConstraint(MPConstraintProto value) All the constraints appearing in the model.addConstraint(MPConstraintProto.Builder builderForValue) All the constraints appearing in the model.All the constraints appearing in the model.addConstraintBuilder(int index) All the constraints appearing in the model.addGeneralConstraint(int index, MPGeneralConstraintProto value) All the general constraints appearing in the model.addGeneralConstraint(int index, MPGeneralConstraintProto.Builder builderForValue) All the general constraints appearing in the model.All the general constraints appearing in the model.addGeneralConstraint(MPGeneralConstraintProto.Builder builderForValue) All the general constraints appearing in the model.All the general constraints appearing in the model.addGeneralConstraintBuilder(int index) All the general constraints appearing in the model.addVariable(int index, MPVariableProto value) All the variables appearing in the model.addVariable(int index, MPVariableProto.Builder builderForValue) All the variables appearing in the model.addVariable(MPVariableProto value) All the variables appearing in the model.addVariable(MPVariableProto.Builder builderForValue) All the variables appearing in the model.All the variables appearing in the model.addVariableBuilder(int index) All the variables appearing in the model.build()clear()repeated .operations_research.MPModelProto.Annotation annotation = 9;All the constraints appearing in the model.All the general constraints appearing in the model.True if the problem is a maximization problem.Name of the model.Offset for the objective function.Optionally, a quadratic objective.Solution hint.All the variables appearing in the model.getAnnotation(int index) repeated .operations_research.MPModelProto.Annotation annotation = 9;getAnnotationBuilder(int index) repeated .operations_research.MPModelProto.Annotation annotation = 9;repeated .operations_research.MPModelProto.Annotation annotation = 9;intrepeated .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.getConstraintBuilder(int index) All the constraints appearing in the model.All the constraints appearing in the model.intAll 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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGeneralConstraint(int index) All the general constraints appearing in the model.getGeneralConstraintBuilder(int index) All the general constraints appearing in the model.All the general constraints appearing in the model.intAll 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.booleanTrue if the problem is a maximization problem.getName()Name of the model.com.google.protobuf.ByteStringName of the model.doubleOffset for the objective function.Optionally, a quadratic objective.Optionally, a quadratic objective.Optionally, a quadratic objective.Solution hint.Solution hint.Solution hint.getVariable(int index) All the variables appearing in the model.getVariableBuilder(int index) All the variables appearing in the model.All the variables appearing in the model.intAll 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.booleanTrue if the problem is a maximization problem.booleanhasName()Name of the model.booleanOffset for the objective function.booleanOptionally, a quadratic objective.booleanSolution hint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MPModelProto other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optionally, a quadratic objective.Solution hint.removeAnnotation(int index) repeated .operations_research.MPModelProto.Annotation annotation = 9;removeConstraint(int index) All the constraints appearing in the model.removeGeneralConstraint(int index) All the general constraints appearing in the model.removeVariable(int index) All the variables appearing in the model.setAnnotation(int index, MPModelProto.Annotation value) repeated .operations_research.MPModelProto.Annotation annotation = 9;setAnnotation(int index, MPModelProto.Annotation.Builder builderForValue) repeated .operations_research.MPModelProto.Annotation annotation = 9;setConstraint(int index, MPConstraintProto value) All the constraints appearing in the model.setConstraint(int index, MPConstraintProto.Builder builderForValue) All the constraints appearing in the model.setGeneralConstraint(int index, MPGeneralConstraintProto value) All the general constraints appearing in the model.setGeneralConstraint(int index, MPGeneralConstraintProto.Builder builderForValue) All the general constraints appearing in the model.setMaximize(boolean value) True if the problem is a maximization problem.Name of the model.setNameBytes(com.google.protobuf.ByteString value) Name of the model.setObjectiveOffset(double value) Offset for the objective function.Optionally, a quadratic objective.setQuadraticObjective(MPQuadraticObjective.Builder builderForValue) Optionally, a quadratic objective.Solution hint.setSolutionHint(PartialVariableAssignment.Builder builderForValue) Solution hint.setVariable(int index, MPVariableProto value) All the variables appearing in the model.setVariable(int index, MPVariableProto.Builder builderForValue) All the variables appearing in the model.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MPModelProto.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MPModelProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MPModelProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MPModelProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MPModelProto.Builder>
-
mergeFrom
public MPModelProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MPModelProto.Builder>- Throws:
IOException
-
getVariableList
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;- Specified by:
getVariableListin interfaceMPModelProtoOrBuilder
-
getVariableCount
public int getVariableCount()All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;- Specified by:
getVariableCountin interfaceMPModelProtoOrBuilder
-
getVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;- Specified by:
getVariablein interfaceMPModelProtoOrBuilder
-
setVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
setVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
addVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
addVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
addVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
addVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
addAllVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
clearVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
removeVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
getVariableBuilder
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;- Specified by:
getVariableOrBuilderin interfaceMPModelProtoOrBuilder
-
getVariableOrBuilderList
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;- Specified by:
getVariableOrBuilderListin interfaceMPModelProtoOrBuilder
-
addVariableBuilder
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
addVariableBuilder
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
getVariableBuilderList
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3; -
getConstraintList
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;- Specified by:
getConstraintListin interfaceMPModelProtoOrBuilder
-
getConstraintCount
public int getConstraintCount()All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;- Specified by:
getConstraintCountin interfaceMPModelProtoOrBuilder
-
getConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;- Specified by:
getConstraintin interfaceMPModelProtoOrBuilder
-
setConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
setConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
addConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
addConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
addConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
addConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
addAllConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
clearConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
removeConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
getConstraintBuilder
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;- Specified by:
getConstraintOrBuilderin interfaceMPModelProtoOrBuilder
-
getConstraintOrBuilderList
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;- Specified by:
getConstraintOrBuilderListin interfaceMPModelProtoOrBuilder
-
addConstraintBuilder
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
addConstraintBuilder
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
getConstraintBuilderList
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4; -
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;- Specified by:
getGeneralConstraintListin interfaceMPModelProtoOrBuilder
-
getGeneralConstraintCount
public 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;- Specified by:
getGeneralConstraintCountin interfaceMPModelProtoOrBuilder
-
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;- Specified by:
getGeneralConstraintin interfaceMPModelProtoOrBuilder
-
setGeneralConstraint
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; -
setGeneralConstraint
public MPModelProto.Builder setGeneralConstraint(int index, MPGeneralConstraintProto.Builder builderForValue) 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; -
addGeneralConstraint
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; -
addGeneralConstraint
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; -
addGeneralConstraint
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; -
addGeneralConstraint
public MPModelProto.Builder addGeneralConstraint(int index, MPGeneralConstraintProto.Builder builderForValue) 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; -
addAllGeneralConstraint
public MPModelProto.Builder addAllGeneralConstraint(Iterable<? extends MPGeneralConstraintProto> values) 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; -
clearGeneralConstraint
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; -
removeGeneralConstraint
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; -
getGeneralConstraintBuilder
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;- Specified by:
getGeneralConstraintOrBuilderin interfaceMPModelProtoOrBuilder
-
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;- Specified by:
getGeneralConstraintOrBuilderListin interfaceMPModelProtoOrBuilder
-
addGeneralConstraintBuilder
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; -
addGeneralConstraintBuilder
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; -
getGeneralConstraintBuilderList
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
public boolean hasMaximize()True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];- Specified by:
hasMaximizein interfaceMPModelProtoOrBuilder- Returns:
- Whether the maximize field is set.
-
getMaximize
public boolean getMaximize()True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];- Specified by:
getMaximizein interfaceMPModelProtoOrBuilder- Returns:
- The maximize.
-
setMaximize
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.
-
clearMaximize
True if the problem is a maximization problem. Minimize by default.
optional bool maximize = 1 [default = false];- Returns:
- This builder for chaining.
-
hasObjectiveOffset
public boolean hasObjectiveOffset()Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];- Specified by:
hasObjectiveOffsetin interfaceMPModelProtoOrBuilder- Returns:
- Whether the objectiveOffset field is set.
-
getObjectiveOffset
public double getObjectiveOffset()Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];- Specified by:
getObjectiveOffsetin interfaceMPModelProtoOrBuilder- Returns:
- The objectiveOffset.
-
setObjectiveOffset
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.
-
clearObjectiveOffset
Offset for the objective function. Must be finite.
optional double objective_offset = 2 [default = 0];- Returns:
- This builder for chaining.
-
hasQuadraticObjective
public boolean hasQuadraticObjective()Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;- Specified by:
hasQuadraticObjectivein interfaceMPModelProtoOrBuilder- Returns:
- Whether the quadraticObjective field is set.
-
getQuadraticObjective
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;- Specified by:
getQuadraticObjectivein interfaceMPModelProtoOrBuilder- Returns:
- The quadraticObjective.
-
setQuadraticObjective
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8; -
setQuadraticObjective
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8; -
mergeQuadraticObjective
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8; -
clearQuadraticObjective
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8; -
getQuadraticObjectiveBuilder
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8; -
getQuadraticObjectiveOrBuilder
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
optional .operations_research.MPQuadraticObjective quadratic_objective = 8;- Specified by:
getQuadraticObjectiveOrBuilderin interfaceMPModelProtoOrBuilder
-
hasName
public boolean hasName()Name of the model.
optional string name = 5 [default = ""];- Specified by:
hasNamein interfaceMPModelProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the model.
optional string name = 5 [default = ""];- Specified by:
getNamein interfaceMPModelProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the model.
optional string name = 5 [default = ""];- Specified by:
getNameBytesin interfaceMPModelProtoOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the model.
optional string name = 5 [default = ""];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the model.
optional string name = 5 [default = ""];- Returns:
- This builder for chaining.
-
setNameBytes
Name of the model.
optional string name = 5 [default = ""];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasSolutionHint
public 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;- Specified by:
hasSolutionHintin interfaceMPModelProtoOrBuilder- Returns:
- Whether the solutionHint field is set.
-
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;- Specified by:
getSolutionHintin interfaceMPModelProtoOrBuilder- Returns:
- The solutionHint.
-
setSolutionHint
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; -
setSolutionHint
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; -
mergeSolutionHint
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; -
clearSolutionHint
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; -
getSolutionHintBuilder
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; -
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;- Specified by:
getSolutionHintOrBuilderin interfaceMPModelProtoOrBuilder
-
getAnnotationList
repeated .operations_research.MPModelProto.Annotation annotation = 9;- Specified by:
getAnnotationListin interfaceMPModelProtoOrBuilder
-
getAnnotationCount
public int getAnnotationCount()repeated .operations_research.MPModelProto.Annotation annotation = 9;- Specified by:
getAnnotationCountin interfaceMPModelProtoOrBuilder
-
getAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9;- Specified by:
getAnnotationin interfaceMPModelProtoOrBuilder
-
setAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
setAnnotation
public MPModelProto.Builder setAnnotation(int index, MPModelProto.Annotation.Builder builderForValue) repeated .operations_research.MPModelProto.Annotation annotation = 9; -
addAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
addAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
addAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
addAnnotation
public MPModelProto.Builder addAnnotation(int index, MPModelProto.Annotation.Builder builderForValue) repeated .operations_research.MPModelProto.Annotation annotation = 9; -
addAllAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
clearAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
removeAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
getAnnotationBuilder
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
getAnnotationOrBuilder
repeated .operations_research.MPModelProto.Annotation annotation = 9;- Specified by:
getAnnotationOrBuilderin interfaceMPModelProtoOrBuilder
-
getAnnotationOrBuilderList
repeated .operations_research.MPModelProto.Annotation annotation = 9;- Specified by:
getAnnotationOrBuilderListin interfaceMPModelProtoOrBuilder
-
addAnnotationBuilder
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
addAnnotationBuilder
repeated .operations_research.MPModelProto.Annotation annotation = 9; -
getAnnotationBuilderList
repeated .operations_research.MPModelProto.Annotation annotation = 9;
-