Java Reference

Java Reference

MPSolutionResponse.Builder

Detailed Description

Protobuf type.

operations_research.MPSolutionResponse

Definition at line 794 of file MPSolutionResponse.java.

Public Member Functions

.lang.Override Builder clear ()
 
.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
.lang.Override com.google.ortools.linearsolver.MPSolutionResponse getDefaultInstanceForType ()
 
.lang.Override com.google.ortools.linearsolver.MPSolutionResponse build ()
 
.lang.Override com.google.ortools.linearsolver.MPSolutionResponse buildPartial ()
 
.lang.Override Builder clone ()
 
.lang.Override Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
.lang.Override Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
 
.lang.Override Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
 
.lang.Override Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
 
.lang.Override Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
.lang.Override Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.MPSolutionResponse other)
 
.lang.Override final boolean isInitialized ()
 
.lang.Override Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
.lang.Override boolean hasStatus ()
 
.lang.Override com.google.ortools.linearsolver.MPSolverResponseStatus getStatus ()
 
Builder setStatus (com.google.ortools.linearsolver.MPSolverResponseStatus value)
 
Builder clearStatus ()
 
boolean hasStatusStr ()
 
java.lang.String getStatusStr ()
 
com.google.protobuf.ByteString getStatusStrBytes ()
 
Builder setStatusStr (java.lang.String value)
 
Builder clearStatusStr ()
 
Builder setStatusStrBytes (com.google.protobuf.ByteString value)
 
.lang.Override boolean hasObjectiveValue ()
 
.lang.Override double getObjectiveValue ()
 
Builder setObjectiveValue (double value)
 
Builder clearObjectiveValue ()
 
.lang.Override boolean hasBestObjectiveBound ()
 
.lang.Override double getBestObjectiveBound ()
 
Builder setBestObjectiveBound (double value)
 
Builder clearBestObjectiveBound ()
 
java.util.List< java.lang.Double > getVariableValueList ()
 
int getVariableValueCount ()
 
double getVariableValue (int index)
 
Builder setVariableValue (int index, double value)
 
Builder addVariableValue (double value)
 
Builder addAllVariableValue (java.lang.Iterable<? extends java.lang.Double > values)
 
Builder clearVariableValue ()
 
java.util.List< java.lang.Double > getDualValueList ()
 
int getDualValueCount ()
 
double getDualValue (int index)
 
Builder setDualValue (int index, double value)
 
Builder addDualValue (double value)
 
Builder addAllDualValue (java.lang.Iterable<? extends java.lang.Double > values)
 
Builder clearDualValue ()
 
java.util.List< java.lang.Double > getReducedCostList ()
 
int getReducedCostCount ()
 
double getReducedCost (int index)
 
Builder setReducedCost (int index, double value)
 
Builder addReducedCost (double value)
 
Builder addAllReducedCost (java.lang.Iterable<? extends java.lang.Double > values)
 
Builder clearReducedCost ()
 
.lang.Override final Builder setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 
.lang.Override final Builder mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 

Protected Member Functions

.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 

Member Function Documentation

◆ addAllDualValue()

Builder addAllDualValue ( java.lang.Iterable<? extends java.lang.Double >  values)
inline
[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
valuesThe dualValue to add.
Returns
This builder for chaining.

Definition at line 1579 of file MPSolutionResponse.java.

◆ addAllReducedCost()

Builder addAllReducedCost ( java.lang.Iterable<? extends java.lang.Double >  values)
inline
[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
valuesThe reducedCost to add.
Returns
This builder for chaining.

Definition at line 1721 of file MPSolutionResponse.java.

◆ addAllVariableValue()

Builder addAllVariableValue ( java.lang.Iterable<? extends java.lang.Double >  values)
inline
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
valuesThe variableValue to add.
Returns
This builder for chaining.

Definition at line 1440 of file MPSolutionResponse.java.

◆ addDualValue()

Builder addDualValue ( double  value)
inline
[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
valueThe dualValue to add.
Returns
This builder for chaining.

Definition at line 1559 of file MPSolutionResponse.java.

◆ addReducedCost()

Builder addReducedCost ( double  value)
inline
[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
valueThe reducedCost to add.
Returns
This builder for chaining.

Definition at line 1701 of file MPSolutionResponse.java.

◆ addRepeatedField()

.lang.Override Builder addRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor  field,
java.lang.Object  value 
)
inline

Definition at line 934 of file MPSolutionResponse.java.

◆ addVariableValue()

Builder addVariableValue ( double  value)
inline
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
valueThe variableValue to add.
Returns
This builder for chaining.

Definition at line 1423 of file MPSolutionResponse.java.

◆ build()

.lang.Override com.google.ortools.linearsolver.MPSolutionResponse build ( )
inline

Definition at line 858 of file MPSolutionResponse.java.

◆ buildPartial()

.lang.Override com.google.ortools.linearsolver.MPSolutionResponse buildPartial ( )
inline

Definition at line 867 of file MPSolutionResponse.java.

◆ clear()

.lang.Override Builder clear ( )
inline

Definition at line 827 of file MPSolutionResponse.java.

◆ clearBestObjectiveBound()

Builder clearBestObjectiveBound ( )
inline
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.

Definition at line 1337 of file MPSolutionResponse.java.

◆ clearDualValue()

Builder clearDualValue ( )
inline
[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.

Definition at line 1600 of file MPSolutionResponse.java.

◆ clearField()

.lang.Override Builder clearField ( com.google.protobuf.Descriptors.FieldDescriptor  field)
inline

Definition at line 918 of file MPSolutionResponse.java.

◆ clearObjectiveValue()

Builder clearObjectiveValue ( )
inline
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.

Definition at line 1266 of file MPSolutionResponse.java.

◆ clearOneof()

.lang.Override Builder clearOneof ( com.google.protobuf.Descriptors.OneofDescriptor  oneof)
inline

Definition at line 923 of file MPSolutionResponse.java.

◆ clearReducedCost()

Builder clearReducedCost ( )
inline
[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.

Definition at line 1742 of file MPSolutionResponse.java.

◆ clearStatus()

Builder clearStatus ( )
inline
Result of the optimization.

optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];

Returns
This builder for chaining.

Definition at line 1077 of file MPSolutionResponse.java.

◆ clearStatusStr()

Builder clearStatusStr ( )
inline
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.

Definition at line 1181 of file MPSolutionResponse.java.

◆ clearVariableValue()

Builder clearVariableValue ( )
inline
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.

Definition at line 1458 of file MPSolutionResponse.java.

◆ clone()

.lang.Override Builder clone ( )
inline

Definition at line 908 of file MPSolutionResponse.java.

◆ getBestObjectiveBound()

.lang.Override double getBestObjectiveBound ( )
inline
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
The bestObjectiveBound.

Implements MPSolutionResponseOrBuilder.

Definition at line 1303 of file MPSolutionResponse.java.

◆ getDefaultInstanceForType()

.lang.Override com.google.ortools.linearsolver.MPSolutionResponse getDefaultInstanceForType ( )
inline

Definition at line 853 of file MPSolutionResponse.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ( )
inlinestatic

Definition at line 799 of file MPSolutionResponse.java.

◆ getDescriptorForType()

.lang.Override com.google.protobuf.Descriptors.Descriptor getDescriptorForType ( )
inline

Definition at line 848 of file MPSolutionResponse.java.

◆ getDualValue()

double getDualValue ( int  index)
inline
[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
indexThe index of the element to return.
Returns
The dualValue at the given index.

Implements MPSolutionResponseOrBuilder.

Definition at line 1520 of file MPSolutionResponse.java.

◆ getDualValueCount()

int getDualValueCount ( )
inline
[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
The count of dualValue.

Implements MPSolutionResponseOrBuilder.

Definition at line 1503 of file MPSolutionResponse.java.

◆ getDualValueList()

java.util.List<java.lang.Double> getDualValueList ( )
inline
[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
A list containing the dualValue.

Implements MPSolutionResponseOrBuilder.

Definition at line 1486 of file MPSolutionResponse.java.

◆ getObjectiveValue()

.lang.Override double getObjectiveValue ( )
inline
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
The objectiveValue.

Implements MPSolutionResponseOrBuilder.

Definition at line 1236 of file MPSolutionResponse.java.

◆ getReducedCost()

double getReducedCost ( int  index)
inline
[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
indexThe index of the element to return.
Returns
The reducedCost at the given index.

Implements MPSolutionResponseOrBuilder.

Definition at line 1662 of file MPSolutionResponse.java.

◆ getReducedCostCount()

int getReducedCostCount ( )
inline
[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
The count of reducedCost.

Implements MPSolutionResponseOrBuilder.

Definition at line 1645 of file MPSolutionResponse.java.

◆ getReducedCostList()

java.util.List<java.lang.Double> getReducedCostList ( )
inline
[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
A list containing the reducedCost.

Implements MPSolutionResponseOrBuilder.

Definition at line 1628 of file MPSolutionResponse.java.

◆ getStatus()

.lang.Override com.google.ortools.linearsolver.MPSolverResponseStatus getStatus ( )
inline
Result of the optimization.

optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];

Returns
The status.

Implements MPSolutionResponseOrBuilder.

Definition at line 1046 of file MPSolutionResponse.java.

◆ getStatusStr()

java.lang.String getStatusStr ( )
inline
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
The statusStr.

Implements MPSolutionResponseOrBuilder.

Definition at line 1110 of file MPSolutionResponse.java.

◆ getStatusStrBytes()

com.google.protobuf.ByteString getStatusStrBytes ( )
inline
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
The bytes for statusStr.

Implements MPSolutionResponseOrBuilder.

Definition at line 1136 of file MPSolutionResponse.java.

◆ getVariableValue()

double getVariableValue ( int  index)
inline
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
indexThe index of the element to return.
Returns
The variableValue at the given index.

Implements MPSolutionResponseOrBuilder.

Definition at line 1390 of file MPSolutionResponse.java.

◆ getVariableValueCount()

int getVariableValueCount ( )
inline
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
The count of variableValue.

Implements MPSolutionResponseOrBuilder.

Definition at line 1376 of file MPSolutionResponse.java.

◆ getVariableValueList()

java.util.List<java.lang.Double> getVariableValueList ( )
inline
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
A list containing the variableValue.

Implements MPSolutionResponseOrBuilder.

Definition at line 1362 of file MPSolutionResponse.java.

◆ hasBestObjectiveBound()

.lang.Override boolean hasBestObjectiveBound ( )
inline
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
Whether the bestObjectiveBound field is set.

Implements MPSolutionResponseOrBuilder.

Definition at line 1287 of file MPSolutionResponse.java.

◆ hasObjectiveValue()

.lang.Override boolean hasObjectiveValue ( )
inline
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
Whether the objectiveValue field is set.

Implements MPSolutionResponseOrBuilder.

Definition at line 1222 of file MPSolutionResponse.java.

◆ hasStatus()

.lang.Override boolean hasStatus ( )
inline
Result of the optimization.

optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];

Returns
Whether the status field is set.

Implements MPSolutionResponseOrBuilder.

Definition at line 1034 of file MPSolutionResponse.java.

◆ hasStatusStr()

boolean hasStatusStr ( )
inline
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
Whether the statusStr field is set.

Implements MPSolutionResponseOrBuilder.

Definition at line 1096 of file MPSolutionResponse.java.

◆ internalGetFieldAccessorTable()

.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ( )
inlineprotected

Definition at line 805 of file MPSolutionResponse.java.

◆ isInitialized()

.lang.Override final boolean isInitialized ( )
inline

Definition at line 1001 of file MPSolutionResponse.java.

◆ mergeFrom() [1/3]

Definition at line 949 of file MPSolutionResponse.java.

◆ mergeFrom() [2/3]

.lang.Override Builder mergeFrom ( com.google.protobuf.CodedInputStream  input,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws java.io.IOException
inline

Definition at line 1006 of file MPSolutionResponse.java.

◆ mergeFrom() [3/3]

.lang.Override Builder mergeFrom ( com.google.protobuf.Message  other)
inline

Definition at line 940 of file MPSolutionResponse.java.

◆ mergeUnknownFields()

.lang.Override final Builder mergeUnknownFields ( final com.google.protobuf.UnknownFieldSet  unknownFields)
inline

Definition at line 1755 of file MPSolutionResponse.java.

◆ setBestObjectiveBound()

Builder setBestObjectiveBound ( double  value)
inline
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
valueThe bestObjectiveBound to set.
Returns
This builder for chaining.

Definition at line 1319 of file MPSolutionResponse.java.

◆ setDualValue()

Builder setDualValue ( int  index,
double  value 
)
inline
[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
indexThe index to set the value at.
valueThe dualValue to set.
Returns
This builder for chaining.

Definition at line 1538 of file MPSolutionResponse.java.

◆ setField()

.lang.Override Builder setField ( com.google.protobuf.Descriptors.FieldDescriptor  field,
java.lang.Object  value 
)
inline

Definition at line 912 of file MPSolutionResponse.java.

◆ setObjectiveValue()

Builder setObjectiveValue ( double  value)
inline
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
valueThe objectiveValue to set.
Returns
This builder for chaining.

Definition at line 1250 of file MPSolutionResponse.java.

◆ setReducedCost()

Builder setReducedCost ( int  index,
double  value 
)
inline
[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
indexThe index to set the value at.
valueThe reducedCost to set.
Returns
This builder for chaining.

Definition at line 1680 of file MPSolutionResponse.java.

◆ setRepeatedField()

.lang.Override Builder setRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor  field,
int  index,
java.lang.Object  value 
)
inline

Definition at line 928 of file MPSolutionResponse.java.

◆ setStatus()

Result of the optimization.

optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];

Parameters
valueThe status to set.
Returns
This builder for chaining.

Definition at line 1060 of file MPSolutionResponse.java.

◆ setStatusStr()

Builder setStatusStr ( java.lang.String  value)
inline
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
valueThe statusStr to set.
Returns
This builder for chaining.

Definition at line 1160 of file MPSolutionResponse.java.

◆ setStatusStrBytes()

Builder setStatusStrBytes ( com.google.protobuf.ByteString  value)
inline
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
valueThe bytes for statusStr to set.
Returns
This builder for chaining.

Definition at line 1199 of file MPSolutionResponse.java.

◆ setUnknownFields()

.lang.Override final Builder setUnknownFields ( final com.google.protobuf.UnknownFieldSet  unknownFields)
inline

Definition at line 1749 of file MPSolutionResponse.java.

◆ setVariableValue()

Builder setVariableValue ( int  index,
double  value 
)
inline
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
indexThe index to set the value at.
valueThe variableValue to set.
Returns
This builder for chaining.

Definition at line 1405 of file MPSolutionResponse.java.


The documentation for this class was generated from the following file: