Class MPModelProto.Builder

  • All Implemented Interfaces:
    MPModelProtoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    MPModelProto

    public static final class MPModelProto.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
    implements MPModelProtoOrBuilder
     MPModelProto contains all the information for a Linear Programming model.
     
    Protobuf type operations_research.MPModelProto
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • clear

        public MPModelProto.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • getDefaultInstanceForType

        public MPModelProto getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MPModelProto build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MPModelProto buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public MPModelProto.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • setField

        public MPModelProto.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • clearField

        public MPModelProto.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • clearOneof

        public MPModelProto.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • setRepeatedField

        public MPModelProto.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • addRepeatedField

        public MPModelProto.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • mergeFrom

        public MPModelProto.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPModelProto.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • mergeFrom

        public MPModelProto.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPModelProto.Builder>
        Throws:
        java.io.IOException
      • getVariableCount

        public int getVariableCount()
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
        Specified by:
        getVariableCount in interface MPModelProtoOrBuilder
      • setVariable

        public MPModelProto.Builder setVariable​(int index,
                                                MPVariableProto value)
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • addVariable

        public MPModelProto.Builder addVariable​(MPVariableProto value)
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • addVariable

        public MPModelProto.Builder addVariable​(int index,
                                                MPVariableProto value)
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • addAllVariable

        public MPModelProto.Builder addAllVariable​(java.lang.Iterable<? extends MPVariableProto> values)
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • clearVariable

        public MPModelProto.Builder clearVariable()
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • removeVariable

        public MPModelProto.Builder removeVariable​(int index)
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • getVariableBuilder

        public MPVariableProto.Builder getVariableBuilder​(int index)
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • addVariableBuilder

        public MPVariableProto.Builder addVariableBuilder()
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • addVariableBuilder

        public MPVariableProto.Builder addVariableBuilder​(int index)
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • getVariableBuilderList

        public java.util.List<MPVariableProto.Builder> getVariableBuilderList()
         All the variables appearing in the model.
         
        repeated .operations_research.MPVariableProto variable = 3;
      • getConstraintCount

        public int getConstraintCount()
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
        Specified by:
        getConstraintCount in interface MPModelProtoOrBuilder
      • setConstraint

        public MPModelProto.Builder setConstraint​(int index,
                                                  MPConstraintProto value)
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • setConstraint

        public MPModelProto.Builder setConstraint​(int index,
                                                  MPConstraintProto.Builder builderForValue)
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • addConstraint

        public MPModelProto.Builder addConstraint​(MPConstraintProto value)
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • addConstraint

        public MPModelProto.Builder addConstraint​(int index,
                                                  MPConstraintProto value)
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • addConstraint

        public MPModelProto.Builder addConstraint​(int index,
                                                  MPConstraintProto.Builder builderForValue)
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • addAllConstraint

        public MPModelProto.Builder addAllConstraint​(java.lang.Iterable<? extends MPConstraintProto> values)
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • clearConstraint

        public MPModelProto.Builder clearConstraint()
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • removeConstraint

        public MPModelProto.Builder removeConstraint​(int index)
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • getConstraintBuilder

        public MPConstraintProto.Builder getConstraintBuilder​(int index)
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • addConstraintBuilder

        public MPConstraintProto.Builder addConstraintBuilder()
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • addConstraintBuilder

        public MPConstraintProto.Builder addConstraintBuilder​(int index)
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • getConstraintBuilderList

        public java.util.List<MPConstraintProto.Builder> getConstraintBuilderList()
         All the constraints appearing in the model.
         
        repeated .operations_research.MPConstraintProto constraint = 4;
      • getGeneralConstraintList

        public 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;
        Specified by:
        getGeneralConstraintList in interface MPModelProtoOrBuilder
      • 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 interface MPModelProtoOrBuilder
      • getGeneralConstraint

        public 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;
        Specified by:
        getGeneralConstraint in interface MPModelProtoOrBuilder
      • setGeneralConstraint

        public MPModelProto.Builder setGeneralConstraint​(int index,
                                                         MPGeneralConstraintProto value)
         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

        public MPModelProto.Builder addGeneralConstraint​(MPGeneralConstraintProto value)
         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 value)
         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​(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

        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​(java.lang.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

        public MPModelProto.Builder 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

        public MPModelProto.Builder removeGeneralConstraint​(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;
      • getGeneralConstraintBuilder

        public MPGeneralConstraintProto.Builder getGeneralConstraintBuilder​(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;
      • addGeneralConstraintBuilder

        public MPGeneralConstraintProto.Builder 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

        public MPGeneralConstraintProto.Builder addGeneralConstraintBuilder​(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;
      • getGeneralConstraintBuilderList

        public java.util.List<MPGeneralConstraintProto.Builder> 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 interface MPModelProtoOrBuilder
        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 interface MPModelProtoOrBuilder
        Returns:
        The maximize.
      • setMaximize

        public MPModelProto.Builder setMaximize​(boolean value)
         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

        public MPModelProto.Builder 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 interface MPModelProtoOrBuilder
        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 interface MPModelProtoOrBuilder
        Returns:
        The objectiveOffset.
      • setObjectiveOffset

        public MPModelProto.Builder setObjectiveOffset​(double value)
         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

        public MPModelProto.Builder 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 interface MPModelProtoOrBuilder
        Returns:
        Whether the quadraticObjective field is set.
      • getQuadraticObjective

        public MPQuadraticObjective 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 interface MPModelProtoOrBuilder
        Returns:
        The quadraticObjective.
      • setQuadraticObjective

        public MPModelProto.Builder setQuadraticObjective​(MPQuadraticObjective value)
         Optionally, a quadratic objective.
         As of 2019/06, only SCIP and Gurobi support quadratic objectives.
         
        optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
      • setQuadraticObjective

        public MPModelProto.Builder setQuadraticObjective​(MPQuadraticObjective.Builder builderForValue)
         Optionally, a quadratic objective.
         As of 2019/06, only SCIP and Gurobi support quadratic objectives.
         
        optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
      • mergeQuadraticObjective

        public MPModelProto.Builder mergeQuadraticObjective​(MPQuadraticObjective value)
         Optionally, a quadratic objective.
         As of 2019/06, only SCIP and Gurobi support quadratic objectives.
         
        optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
      • clearQuadraticObjective

        public MPModelProto.Builder clearQuadraticObjective()
         Optionally, a quadratic objective.
         As of 2019/06, only SCIP and Gurobi support quadratic objectives.
         
        optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
      • getQuadraticObjectiveBuilder

        public MPQuadraticObjective.Builder getQuadraticObjectiveBuilder()
         Optionally, a quadratic objective.
         As of 2019/06, only SCIP and Gurobi support quadratic objectives.
         
        optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
      • hasName

        public boolean hasName()
         Name of the model.
         
        optional string name = 5 [default = ""];
        Specified by:
        hasName in interface MPModelProtoOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
         Name of the model.
         
        optional string name = 5 [default = ""];
        Specified by:
        getName in interface MPModelProtoOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of the model.
         
        optional string name = 5 [default = ""];
        Specified by:
        getNameBytes in interface MPModelProtoOrBuilder
        Returns:
        The bytes for name.
      • setName

        public MPModelProto.Builder setName​(java.lang.String value)
         Name of the model.
         
        optional string name = 5 [default = ""];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public MPModelProto.Builder clearName()
         Name of the model.
         
        optional string name = 5 [default = ""];
        Returns:
        This builder for chaining.
      • setNameBytes

        public MPModelProto.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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 interface MPModelProtoOrBuilder
        Returns:
        Whether the solutionHint field is set.
      • getSolutionHint

        public 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;
        Specified by:
        getSolutionHint in interface MPModelProtoOrBuilder
        Returns:
        The solutionHint.
      • setSolutionHint

        public MPModelProto.Builder setSolutionHint​(PartialVariableAssignment value)
         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

        public MPModelProto.Builder setSolutionHint​(PartialVariableAssignment.Builder builderForValue)
         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

        public MPModelProto.Builder mergeSolutionHint​(PartialVariableAssignment value)
         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

        public MPModelProto.Builder 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

        public PartialVariableAssignment.Builder 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

        public 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;
        Specified by:
        getSolutionHintOrBuilder in interface MPModelProtoOrBuilder
      • clearAnnotation

        public MPModelProto.Builder clearAnnotation()
        repeated .operations_research.MPModelProto.Annotation annotation = 9;
      • removeAnnotation

        public MPModelProto.Builder removeAnnotation​(int index)
        repeated .operations_research.MPModelProto.Annotation annotation = 9;
      • getAnnotationBuilder

        public MPModelProto.Annotation.Builder getAnnotationBuilder​(int index)
        repeated .operations_research.MPModelProto.Annotation annotation = 9;
      • addAnnotationBuilder

        public MPModelProto.Annotation.Builder addAnnotationBuilder()
        repeated .operations_research.MPModelProto.Annotation annotation = 9;
      • addAnnotationBuilder

        public MPModelProto.Annotation.Builder addAnnotationBuilder​(int index)
        repeated .operations_research.MPModelProto.Annotation annotation = 9;
      • getAnnotationBuilderList

        public java.util.List<MPModelProto.Annotation.Builder> getAnnotationBuilderList()
        repeated .operations_research.MPModelProto.Annotation annotation = 9;
      • setUnknownFields

        public final MPModelProto.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>
      • mergeUnknownFields

        public final MPModelProto.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MPModelProto.Builder>