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;
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.getConstraintBuilder
(int index) All the constraints appearing in the model.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.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getGeneralConstraint
(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.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.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.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<MPModelProto.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<MPModelProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<MPModelProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MPModelProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getVariableList
in interfaceMPModelProtoOrBuilder
-
getVariableCount
public int getVariableCount()All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
- Specified by:
getVariableCount
in interfaceMPModelProtoOrBuilder
-
getVariable
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
- Specified by:
getVariable
in 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:
getVariableOrBuilder
in interfaceMPModelProtoOrBuilder
-
getVariableOrBuilderList
All the variables appearing in the model.
repeated .operations_research.MPVariableProto variable = 3;
- Specified by:
getVariableOrBuilderList
in 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:
getConstraintList
in interfaceMPModelProtoOrBuilder
-
getConstraintCount
public int getConstraintCount()All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
- Specified by:
getConstraintCount
in interfaceMPModelProtoOrBuilder
-
getConstraint
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
- Specified by:
getConstraint
in 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:
getConstraintOrBuilder
in interfaceMPModelProtoOrBuilder
-
getConstraintOrBuilderList
All the constraints appearing in the model.
repeated .operations_research.MPConstraintProto constraint = 4;
- Specified by:
getConstraintOrBuilderList
in 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:
getGeneralConstraintList
in 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:
getGeneralConstraintCount
in 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:
getGeneralConstraint
in 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:
getGeneralConstraintOrBuilder
in 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:
getGeneralConstraintOrBuilderList
in 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:
hasMaximize
in 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:
getMaximize
in 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:
hasObjectiveOffset
in 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:
getObjectiveOffset
in 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:
hasQuadraticObjective
in 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:
getQuadraticObjective
in 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:
getQuadraticObjectiveOrBuilder
in interfaceMPModelProtoOrBuilder
-
hasName
public boolean hasName()Name of the model.
optional string name = 5 [default = ""];
- Specified by:
hasName
in interfaceMPModelProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
Name of the model.
optional string name = 5 [default = ""];
- Specified by:
getName
in interfaceMPModelProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the model.
optional string name = 5 [default = ""];
- Specified by:
getNameBytes
in 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:
hasSolutionHint
in 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:
getSolutionHint
in 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:
getSolutionHintOrBuilder
in interfaceMPModelProtoOrBuilder
-
getAnnotationList
repeated .operations_research.MPModelProto.Annotation annotation = 9;
- Specified by:
getAnnotationList
in interfaceMPModelProtoOrBuilder
-
getAnnotationCount
public int getAnnotationCount()repeated .operations_research.MPModelProto.Annotation annotation = 9;
- Specified by:
getAnnotationCount
in interfaceMPModelProtoOrBuilder
-
getAnnotation
repeated .operations_research.MPModelProto.Annotation annotation = 9;
- Specified by:
getAnnotation
in 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:
getAnnotationOrBuilder
in interfaceMPModelProtoOrBuilder
-
getAnnotationOrBuilderList
repeated .operations_research.MPModelProto.Annotation annotation = 9;
- Specified by:
getAnnotationOrBuilderList
in 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;
-