Class MPSolutionResponse.Builder

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

    public static final class MPSolutionResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MPSolutionResponse.Builder>
    implements MPSolutionResponseOrBuilder
     Next id: 12.
     
    Protobuf type operations_research.MPSolutionResponse
    • 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<MPSolutionResponse.Builder>
      • clear

        public MPSolutionResponse.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<MPSolutionResponse.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<MPSolutionResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public MPSolutionResponse.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<MPSolutionResponse.Builder>
      • setField

        public MPSolutionResponse.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<MPSolutionResponse.Builder>
      • clearField

        public MPSolutionResponse.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<MPSolutionResponse.Builder>
      • clearOneof

        public MPSolutionResponse.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<MPSolutionResponse.Builder>
      • setRepeatedField

        public MPSolutionResponse.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<MPSolutionResponse.Builder>
      • addRepeatedField

        public MPSolutionResponse.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<MPSolutionResponse.Builder>
      • mergeFrom

        public MPSolutionResponse.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<MPSolutionResponse.Builder>
      • isInitialized

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

        public MPSolutionResponse.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<MPSolutionResponse.Builder>
        Throws:
        java.io.IOException
      • hasStatus

        public boolean hasStatus()
         Result of the optimization.
         
        optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
        Specified by:
        hasStatus in interface MPSolutionResponseOrBuilder
        Returns:
        Whether the status field is set.
      • setStatus

        public MPSolutionResponse.Builder setStatus​(MPSolverResponseStatus value)
         Result of the optimization.
         
        optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public MPSolutionResponse.Builder clearStatus()
         Result of the optimization.
         
        optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
        Returns:
        This builder for chaining.
      • hasStatusStr

        public boolean hasStatusStr()
         Human-readable string giving more details about the status. For example,
         when the status is MPSOLVER_INVALID_MODE, this can hold a description of
         why the model is invalid.
         This isn't always filled: don't depend on its value or even its presence.
         
        optional string status_str = 7;
        Specified by:
        hasStatusStr in interface MPSolutionResponseOrBuilder
        Returns:
        Whether the statusStr field is set.
      • getStatusStr

        public java.lang.String getStatusStr()
         Human-readable string giving more details about the status. For example,
         when the status is MPSOLVER_INVALID_MODE, this can hold a description of
         why the model is invalid.
         This isn't always filled: don't depend on its value or even its presence.
         
        optional string status_str = 7;
        Specified by:
        getStatusStr in interface MPSolutionResponseOrBuilder
        Returns:
        The statusStr.
      • getStatusStrBytes

        public com.google.protobuf.ByteString getStatusStrBytes()
         Human-readable string giving more details about the status. For example,
         when the status is MPSOLVER_INVALID_MODE, this can hold a description of
         why the model is invalid.
         This isn't always filled: don't depend on its value or even its presence.
         
        optional string status_str = 7;
        Specified by:
        getStatusStrBytes in interface MPSolutionResponseOrBuilder
        Returns:
        The bytes for statusStr.
      • setStatusStr

        public MPSolutionResponse.Builder setStatusStr​(java.lang.String value)
         Human-readable string giving more details about the status. For example,
         when the status is MPSOLVER_INVALID_MODE, this can hold a description of
         why the model is invalid.
         This isn't always filled: don't depend on its value or even its presence.
         
        optional string status_str = 7;
        Parameters:
        value - The statusStr to set.
        Returns:
        This builder for chaining.
      • clearStatusStr

        public MPSolutionResponse.Builder clearStatusStr()
         Human-readable string giving more details about the status. For example,
         when the status is MPSOLVER_INVALID_MODE, this can hold a description of
         why the model is invalid.
         This isn't always filled: don't depend on its value or even its presence.
         
        optional string status_str = 7;
        Returns:
        This builder for chaining.
      • setStatusStrBytes

        public MPSolutionResponse.Builder setStatusStrBytes​(com.google.protobuf.ByteString value)
         Human-readable string giving more details about the status. For example,
         when the status is MPSOLVER_INVALID_MODE, this can hold a description of
         why the model is invalid.
         This isn't always filled: don't depend on its value or even its presence.
         
        optional string status_str = 7;
        Parameters:
        value - The bytes for statusStr to set.
        Returns:
        This builder for chaining.
      • hasObjectiveValue

        public boolean hasObjectiveValue()
         Objective value corresponding to the "variable_value" below, taking into
         account the source "objective_offset" and "objective_coefficient".
         This is set iff 'status' is OPTIMAL or FEASIBLE.
         
        optional double objective_value = 2;
        Specified by:
        hasObjectiveValue in interface MPSolutionResponseOrBuilder
        Returns:
        Whether the objectiveValue field is set.
      • getObjectiveValue

        public double getObjectiveValue()
         Objective value corresponding to the "variable_value" below, taking into
         account the source "objective_offset" and "objective_coefficient".
         This is set iff 'status' is OPTIMAL or FEASIBLE.
         
        optional double objective_value = 2;
        Specified by:
        getObjectiveValue in interface MPSolutionResponseOrBuilder
        Returns:
        The objectiveValue.
      • setObjectiveValue

        public MPSolutionResponse.Builder setObjectiveValue​(double value)
         Objective value corresponding to the "variable_value" below, taking into
         account the source "objective_offset" and "objective_coefficient".
         This is set iff 'status' is OPTIMAL or FEASIBLE.
         
        optional double objective_value = 2;
        Parameters:
        value - The objectiveValue to set.
        Returns:
        This builder for chaining.
      • clearObjectiveValue

        public MPSolutionResponse.Builder clearObjectiveValue()
         Objective value corresponding to the "variable_value" below, taking into
         account the source "objective_offset" and "objective_coefficient".
         This is set iff 'status' is OPTIMAL or FEASIBLE.
         
        optional double objective_value = 2;
        Returns:
        This builder for chaining.
      • hasBestObjectiveBound

        public boolean hasBestObjectiveBound()
         This field is only filled for MIP problems. For a minimization problem,
         this is a lower bound on the optimal objective value. For a maximization
         problem, it is an upper bound. It is only filled if the status is OPTIMAL
         or FEASIBLE. In the former case, best_objective_bound should be equal to
         objective_value (modulo numerical errors).
         
        optional double best_objective_bound = 5;
        Specified by:
        hasBestObjectiveBound in interface MPSolutionResponseOrBuilder
        Returns:
        Whether the bestObjectiveBound field is set.
      • getBestObjectiveBound

        public double getBestObjectiveBound()
         This field is only filled for MIP problems. For a minimization problem,
         this is a lower bound on the optimal objective value. For a maximization
         problem, it is an upper bound. It is only filled if the status is OPTIMAL
         or FEASIBLE. In the former case, best_objective_bound should be equal to
         objective_value (modulo numerical errors).
         
        optional double best_objective_bound = 5;
        Specified by:
        getBestObjectiveBound in interface MPSolutionResponseOrBuilder
        Returns:
        The bestObjectiveBound.
      • setBestObjectiveBound

        public MPSolutionResponse.Builder setBestObjectiveBound​(double value)
         This field is only filled for MIP problems. For a minimization problem,
         this is a lower bound on the optimal objective value. For a maximization
         problem, it is an upper bound. It is only filled if the status is OPTIMAL
         or FEASIBLE. In the former case, best_objective_bound should be equal to
         objective_value (modulo numerical errors).
         
        optional double best_objective_bound = 5;
        Parameters:
        value - The bestObjectiveBound to set.
        Returns:
        This builder for chaining.
      • clearBestObjectiveBound

        public MPSolutionResponse.Builder clearBestObjectiveBound()
         This field is only filled for MIP problems. For a minimization problem,
         this is a lower bound on the optimal objective value. For a maximization
         problem, it is an upper bound. It is only filled if the status is OPTIMAL
         or FEASIBLE. In the former case, best_objective_bound should be equal to
         objective_value (modulo numerical errors).
         
        optional double best_objective_bound = 5;
        Returns:
        This builder for chaining.
      • getVariableValueList

        public java.util.List<java.lang.Double> getVariableValueList()
         Variable values in the same order as the MPModelProto::variable field.
         This is a dense representation. These are set iff 'status' is OPTIMAL or
         FEASIBLE.
         
        repeated double variable_value = 3 [packed = true];
        Specified by:
        getVariableValueList in interface MPSolutionResponseOrBuilder
        Returns:
        A list containing the variableValue.
      • getVariableValueCount

        public int getVariableValueCount()
         Variable values in the same order as the MPModelProto::variable field.
         This is a dense representation. These are set iff 'status' is OPTIMAL or
         FEASIBLE.
         
        repeated double variable_value = 3 [packed = true];
        Specified by:
        getVariableValueCount in interface MPSolutionResponseOrBuilder
        Returns:
        The count of variableValue.
      • getVariableValue

        public double getVariableValue​(int index)
         Variable values in the same order as the MPModelProto::variable field.
         This is a dense representation. These are set iff 'status' is OPTIMAL or
         FEASIBLE.
         
        repeated double variable_value = 3 [packed = true];
        Specified by:
        getVariableValue in interface MPSolutionResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The variableValue at the given index.
      • setVariableValue

        public MPSolutionResponse.Builder setVariableValue​(int index,
                                                           double value)
         Variable values in the same order as the MPModelProto::variable field.
         This is a dense representation. These are set iff 'status' is OPTIMAL or
         FEASIBLE.
         
        repeated double variable_value = 3 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The variableValue to set.
        Returns:
        This builder for chaining.
      • addVariableValue

        public MPSolutionResponse.Builder addVariableValue​(double value)
         Variable values in the same order as the MPModelProto::variable field.
         This is a dense representation. These are set iff 'status' is OPTIMAL or
         FEASIBLE.
         
        repeated double variable_value = 3 [packed = true];
        Parameters:
        value - The variableValue to add.
        Returns:
        This builder for chaining.
      • addAllVariableValue

        public MPSolutionResponse.Builder addAllVariableValue​(java.lang.Iterable<? extends java.lang.Double> values)
         Variable values in the same order as the MPModelProto::variable field.
         This is a dense representation. These are set iff 'status' is OPTIMAL or
         FEASIBLE.
         
        repeated double variable_value = 3 [packed = true];
        Parameters:
        values - The variableValue to add.
        Returns:
        This builder for chaining.
      • clearVariableValue

        public MPSolutionResponse.Builder clearVariableValue()
         Variable values in the same order as the MPModelProto::variable field.
         This is a dense representation. These are set iff 'status' is OPTIMAL or
         FEASIBLE.
         
        repeated double variable_value = 3 [packed = true];
        Returns:
        This builder for chaining.
      • hasSolveInfo

        public boolean hasSolveInfo()
         Contains extra information about the solve, populated if the underlying
         solver (and its interface) supports it. As of 2021/07/19 this is supported
         by SCIP and Gurobi proto solves.
         
        optional .operations_research.MPSolveInfo solve_info = 10;
        Specified by:
        hasSolveInfo in interface MPSolutionResponseOrBuilder
        Returns:
        Whether the solveInfo field is set.
      • getSolveInfo

        public MPSolveInfo getSolveInfo()
         Contains extra information about the solve, populated if the underlying
         solver (and its interface) supports it. As of 2021/07/19 this is supported
         by SCIP and Gurobi proto solves.
         
        optional .operations_research.MPSolveInfo solve_info = 10;
        Specified by:
        getSolveInfo in interface MPSolutionResponseOrBuilder
        Returns:
        The solveInfo.
      • setSolveInfo

        public MPSolutionResponse.Builder setSolveInfo​(MPSolveInfo value)
         Contains extra information about the solve, populated if the underlying
         solver (and its interface) supports it. As of 2021/07/19 this is supported
         by SCIP and Gurobi proto solves.
         
        optional .operations_research.MPSolveInfo solve_info = 10;
      • setSolveInfo

        public MPSolutionResponse.Builder setSolveInfo​(MPSolveInfo.Builder builderForValue)
         Contains extra information about the solve, populated if the underlying
         solver (and its interface) supports it. As of 2021/07/19 this is supported
         by SCIP and Gurobi proto solves.
         
        optional .operations_research.MPSolveInfo solve_info = 10;
      • mergeSolveInfo

        public MPSolutionResponse.Builder mergeSolveInfo​(MPSolveInfo value)
         Contains extra information about the solve, populated if the underlying
         solver (and its interface) supports it. As of 2021/07/19 this is supported
         by SCIP and Gurobi proto solves.
         
        optional .operations_research.MPSolveInfo solve_info = 10;
      • clearSolveInfo

        public MPSolutionResponse.Builder clearSolveInfo()
         Contains extra information about the solve, populated if the underlying
         solver (and its interface) supports it. As of 2021/07/19 this is supported
         by SCIP and Gurobi proto solves.
         
        optional .operations_research.MPSolveInfo solve_info = 10;
      • getSolveInfoBuilder

        public MPSolveInfo.Builder getSolveInfoBuilder()
         Contains extra information about the solve, populated if the underlying
         solver (and its interface) supports it. As of 2021/07/19 this is supported
         by SCIP and Gurobi proto solves.
         
        optional .operations_research.MPSolveInfo solve_info = 10;
      • getSolveInfoOrBuilder

        public MPSolveInfoOrBuilder getSolveInfoOrBuilder()
         Contains extra information about the solve, populated if the underlying
         solver (and its interface) supports it. As of 2021/07/19 this is supported
         by SCIP and Gurobi proto solves.
         
        optional .operations_research.MPSolveInfo solve_info = 10;
        Specified by:
        getSolveInfoOrBuilder in interface MPSolutionResponseOrBuilder
      • hasSolverSpecificInfo

        public boolean hasSolverSpecificInfo()
         Opaque solver-specific information.
         For the PDLP solver, this is a serialized pdlp::SolveLog proto.
         
        optional bytes solver_specific_info = 11;
        Specified by:
        hasSolverSpecificInfo in interface MPSolutionResponseOrBuilder
        Returns:
        Whether the solverSpecificInfo field is set.
      • getSolverSpecificInfo

        public com.google.protobuf.ByteString getSolverSpecificInfo()
         Opaque solver-specific information.
         For the PDLP solver, this is a serialized pdlp::SolveLog proto.
         
        optional bytes solver_specific_info = 11;
        Specified by:
        getSolverSpecificInfo in interface MPSolutionResponseOrBuilder
        Returns:
        The solverSpecificInfo.
      • setSolverSpecificInfo

        public MPSolutionResponse.Builder setSolverSpecificInfo​(com.google.protobuf.ByteString value)
         Opaque solver-specific information.
         For the PDLP solver, this is a serialized pdlp::SolveLog proto.
         
        optional bytes solver_specific_info = 11;
        Parameters:
        value - The solverSpecificInfo to set.
        Returns:
        This builder for chaining.
      • clearSolverSpecificInfo

        public MPSolutionResponse.Builder clearSolverSpecificInfo()
         Opaque solver-specific information.
         For the PDLP solver, this is a serialized pdlp::SolveLog proto.
         
        optional bytes solver_specific_info = 11;
        Returns:
        This builder for chaining.
      • getDualValueList

        public java.util.List<java.lang.Double> getDualValueList()
         [Advanced usage.]
         Values of the dual variables values in the same order as the
         MPModelProto::constraint field. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if
         it is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double dual_value = 4 [packed = true];
        Specified by:
        getDualValueList in interface MPSolutionResponseOrBuilder
        Returns:
        A list containing the dualValue.
      • getDualValueCount

        public int getDualValueCount()
         [Advanced usage.]
         Values of the dual variables values in the same order as the
         MPModelProto::constraint field. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if
         it is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double dual_value = 4 [packed = true];
        Specified by:
        getDualValueCount in interface MPSolutionResponseOrBuilder
        Returns:
        The count of dualValue.
      • getDualValue

        public double getDualValue​(int index)
         [Advanced usage.]
         Values of the dual variables values in the same order as the
         MPModelProto::constraint field. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if
         it is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double dual_value = 4 [packed = true];
        Specified by:
        getDualValue in interface MPSolutionResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The dualValue at the given index.
      • setDualValue

        public MPSolutionResponse.Builder setDualValue​(int index,
                                                       double value)
         [Advanced usage.]
         Values of the dual variables values in the same order as the
         MPModelProto::constraint field. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if
         it is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double dual_value = 4 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The dualValue to set.
        Returns:
        This builder for chaining.
      • addDualValue

        public MPSolutionResponse.Builder addDualValue​(double value)
         [Advanced usage.]
         Values of the dual variables values in the same order as the
         MPModelProto::constraint field. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if
         it is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double dual_value = 4 [packed = true];
        Parameters:
        value - The dualValue to add.
        Returns:
        This builder for chaining.
      • addAllDualValue

        public MPSolutionResponse.Builder addAllDualValue​(java.lang.Iterable<? extends java.lang.Double> values)
         [Advanced usage.]
         Values of the dual variables values in the same order as the
         MPModelProto::constraint field. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if
         it is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double dual_value = 4 [packed = true];
        Parameters:
        values - The dualValue to add.
        Returns:
        This builder for chaining.
      • clearDualValue

        public MPSolutionResponse.Builder clearDualValue()
         [Advanced usage.]
         Values of the dual variables values in the same order as the
         MPModelProto::constraint field. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if
         it is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double dual_value = 4 [packed = true];
        Returns:
        This builder for chaining.
      • getReducedCostList

        public java.util.List<java.lang.Double> getReducedCostList()
         [Advanced usage.]
         Values of the reduced cost of the variables in the same order as the
         MPModelProto::variable. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if it
         is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double reduced_cost = 6 [packed = true];
        Specified by:
        getReducedCostList in interface MPSolutionResponseOrBuilder
        Returns:
        A list containing the reducedCost.
      • getReducedCostCount

        public int getReducedCostCount()
         [Advanced usage.]
         Values of the reduced cost of the variables in the same order as the
         MPModelProto::variable. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if it
         is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double reduced_cost = 6 [packed = true];
        Specified by:
        getReducedCostCount in interface MPSolutionResponseOrBuilder
        Returns:
        The count of reducedCost.
      • getReducedCost

        public double getReducedCost​(int index)
         [Advanced usage.]
         Values of the reduced cost of the variables in the same order as the
         MPModelProto::variable. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if it
         is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double reduced_cost = 6 [packed = true];
        Specified by:
        getReducedCost in interface MPSolutionResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The reducedCost at the given index.
      • setReducedCost

        public MPSolutionResponse.Builder setReducedCost​(int index,
                                                         double value)
         [Advanced usage.]
         Values of the reduced cost of the variables in the same order as the
         MPModelProto::variable. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if it
         is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double reduced_cost = 6 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The reducedCost to set.
        Returns:
        This builder for chaining.
      • addReducedCost

        public MPSolutionResponse.Builder addReducedCost​(double value)
         [Advanced usage.]
         Values of the reduced cost of the variables in the same order as the
         MPModelProto::variable. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if it
         is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double reduced_cost = 6 [packed = true];
        Parameters:
        value - The reducedCost to add.
        Returns:
        This builder for chaining.
      • addAllReducedCost

        public MPSolutionResponse.Builder addAllReducedCost​(java.lang.Iterable<? extends java.lang.Double> values)
         [Advanced usage.]
         Values of the reduced cost of the variables in the same order as the
         MPModelProto::variable. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if it
         is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double reduced_cost = 6 [packed = true];
        Parameters:
        values - The reducedCost to add.
        Returns:
        This builder for chaining.
      • clearReducedCost

        public MPSolutionResponse.Builder clearReducedCost()
         [Advanced usage.]
         Values of the reduced cost of the variables in the same order as the
         MPModelProto::variable. This is a dense representation.
         These are not set if the problem was solved with a MIP solver (even if it
         is actually a linear program).
         These are set iff 'status' is OPTIMAL or FEASIBLE.
         
        repeated double reduced_cost = 6 [packed = true];
        Returns:
        This builder for chaining.
      • getAdditionalSolutionsList

        public java.util.List<MPSolution> getAdditionalSolutionsList()
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
        Specified by:
        getAdditionalSolutionsList in interface MPSolutionResponseOrBuilder
      • getAdditionalSolutionsCount

        public int getAdditionalSolutionsCount()
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
        Specified by:
        getAdditionalSolutionsCount in interface MPSolutionResponseOrBuilder
      • getAdditionalSolutions

        public MPSolution getAdditionalSolutions​(int index)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
        Specified by:
        getAdditionalSolutions in interface MPSolutionResponseOrBuilder
      • setAdditionalSolutions

        public MPSolutionResponse.Builder setAdditionalSolutions​(int index,
                                                                 MPSolution value)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • setAdditionalSolutions

        public MPSolutionResponse.Builder setAdditionalSolutions​(int index,
                                                                 MPSolution.Builder builderForValue)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • addAdditionalSolutions

        public MPSolutionResponse.Builder addAdditionalSolutions​(MPSolution value)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • addAdditionalSolutions

        public MPSolutionResponse.Builder addAdditionalSolutions​(int index,
                                                                 MPSolution value)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • addAdditionalSolutions

        public MPSolutionResponse.Builder addAdditionalSolutions​(MPSolution.Builder builderForValue)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • addAdditionalSolutions

        public MPSolutionResponse.Builder addAdditionalSolutions​(int index,
                                                                 MPSolution.Builder builderForValue)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • addAllAdditionalSolutions

        public MPSolutionResponse.Builder addAllAdditionalSolutions​(java.lang.Iterable<? extends MPSolution> values)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • clearAdditionalSolutions

        public MPSolutionResponse.Builder clearAdditionalSolutions()
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • removeAdditionalSolutions

        public MPSolutionResponse.Builder removeAdditionalSolutions​(int index)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • getAdditionalSolutionsBuilder

        public MPSolution.Builder getAdditionalSolutionsBuilder​(int index)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • getAdditionalSolutionsOrBuilder

        public MPSolutionOrBuilder getAdditionalSolutionsOrBuilder​(int index)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
        Specified by:
        getAdditionalSolutionsOrBuilder in interface MPSolutionResponseOrBuilder
      • getAdditionalSolutionsOrBuilderList

        public java.util.List<? extends MPSolutionOrBuilder> getAdditionalSolutionsOrBuilderList()
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
        Specified by:
        getAdditionalSolutionsOrBuilderList in interface MPSolutionResponseOrBuilder
      • addAdditionalSolutionsBuilder

        public MPSolution.Builder addAdditionalSolutionsBuilder()
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • addAdditionalSolutionsBuilder

        public MPSolution.Builder addAdditionalSolutionsBuilder​(int index)
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • getAdditionalSolutionsBuilderList

        public java.util.List<MPSolution.Builder> getAdditionalSolutionsBuilderList()
         [Advanced usage.]
         If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
         number of additional solutions may be populated here, if available. These
         additional solutions are different than the main solution described by the
         above fields `objective_value` and `variable_value`.
         
        repeated .operations_research.MPSolution additional_solutions = 8;
      • setUnknownFields

        public final MPSolutionResponse.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<MPSolutionResponse.Builder>
      • mergeUnknownFields

        public final MPSolutionResponse.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<MPSolutionResponse.Builder>