Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPSolutionResponse.Builder Class Reference
Inheritance diagram for com.google.ortools.linearsolver.MPSolutionResponse.Builder:
com.google.ortools.linearsolver.MPSolutionResponseOrBuilder

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.MPSolutionResponse getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.MPSolutionResponse build ()
 
com.google.ortools.linearsolver.MPSolutionResponse buildPartial ()
 
Builder clone ()
 
Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
 
Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
 
Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
 
Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.MPSolutionResponse other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasStatus ()
 
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)
 
boolean hasObjectiveValue ()
 
double getObjectiveValue ()
 
Builder setObjectiveValue (double value)
 
Builder clearObjectiveValue ()
 
boolean hasBestObjectiveBound ()
 
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 ()
 
boolean hasSolveInfo ()
 
com.google.ortools.linearsolver.MPSolveInfo getSolveInfo ()
 
Builder setSolveInfo (com.google.ortools.linearsolver.MPSolveInfo value)
 
Builder setSolveInfo (com.google.ortools.linearsolver.MPSolveInfo.Builder builderForValue)
 
Builder mergeSolveInfo (com.google.ortools.linearsolver.MPSolveInfo value)
 
Builder clearSolveInfo ()
 
com.google.ortools.linearsolver.MPSolveInfo.Builder getSolveInfoBuilder ()
 
com.google.ortools.linearsolver.MPSolveInfoOrBuilder getSolveInfoOrBuilder ()
 
boolean hasSolverSpecificInfo ()
 
com.google.protobuf.ByteString getSolverSpecificInfo ()
 
Builder setSolverSpecificInfo (com.google.protobuf.ByteString value)
 
Builder clearSolverSpecificInfo ()
 
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 ()
 
java.util.List< com.google.ortools.linearsolver.MPSolutiongetAdditionalSolutionsList ()
 
int getAdditionalSolutionsCount ()
 
com.google.ortools.linearsolver.MPSolution getAdditionalSolutions (int index)
 
Builder setAdditionalSolutions (int index, com.google.ortools.linearsolver.MPSolution value)
 
Builder setAdditionalSolutions (int index, com.google.ortools.linearsolver.MPSolution.Builder builderForValue)
 
Builder addAdditionalSolutions (com.google.ortools.linearsolver.MPSolution value)
 
Builder addAdditionalSolutions (int index, com.google.ortools.linearsolver.MPSolution value)
 
Builder addAdditionalSolutions (com.google.ortools.linearsolver.MPSolution.Builder builderForValue)
 
Builder addAdditionalSolutions (int index, com.google.ortools.linearsolver.MPSolution.Builder builderForValue)
 
Builder addAllAdditionalSolutions (java.lang.Iterable<? extends com.google.ortools.linearsolver.MPSolution > values)
 
Builder clearAdditionalSolutions ()
 
Builder removeAdditionalSolutions (int index)
 
com.google.ortools.linearsolver.MPSolution.Builder getAdditionalSolutionsBuilder (int index)
 
com.google.ortools.linearsolver.MPSolutionOrBuilder getAdditionalSolutionsOrBuilder (int index)
 
java.util.List<? extends com.google.ortools.linearsolver.MPSolutionOrBuildergetAdditionalSolutionsOrBuilderList ()
 
com.google.ortools.linearsolver.MPSolution.Builder addAdditionalSolutionsBuilder ()
 
com.google.ortools.linearsolver.MPSolution.Builder addAdditionalSolutionsBuilder (int index)
 
java.util.List< com.google.ortools.linearsolver.MPSolution.BuildergetAdditionalSolutionsBuilderList ()
 
final Builder setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 
final Builder mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields)
 

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Next id: 12.

Protobuf type operations_research.MPSolutionResponse

Definition at line 869 of file MPSolutionResponse.java.

Member Function Documentation

◆ addAdditionalSolutions() [1/4]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutions ( com.google.ortools.linearsolver.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;

Definition at line 2397 of file MPSolutionResponse.java.

◆ addAdditionalSolutions() [2/4]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutions ( com.google.ortools.linearsolver.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;

Definition at line 2446 of file MPSolutionResponse.java.

◆ addAdditionalSolutions() [3/4]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutions ( int index,
com.google.ortools.linearsolver.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;

Definition at line 2421 of file MPSolutionResponse.java.

◆ addAdditionalSolutions() [4/4]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAdditionalSolutions ( int index,
com.google.ortools.linearsolver.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;

Definition at line 2468 of file MPSolutionResponse.java.

◆ addAdditionalSolutionsBuilder() [1/2]

com.google.ortools.linearsolver.MPSolution.Builder com.google.ortools.linearsolver.MPSolutionResponse.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;

Definition at line 2607 of file MPSolutionResponse.java.

◆ addAdditionalSolutionsBuilder() [2/2]

com.google.ortools.linearsolver.MPSolution.Builder com.google.ortools.linearsolver.MPSolutionResponse.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;

Definition at line 2622 of file MPSolutionResponse.java.

◆ addAllAdditionalSolutions()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addAllAdditionalSolutions ( java.lang.Iterable<? extends com.google.ortools.linearsolver.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;

Definition at line 2490 of file MPSolutionResponse.java.

◆ addAllDualValue()

Builder com.google.ortools.linearsolver.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
valuesThe dualValue to add.
Returns
This builder for chaining.

Definition at line 2091 of file MPSolutionResponse.java.

◆ addAllReducedCost()

Builder com.google.ortools.linearsolver.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
valuesThe reducedCost to add.
Returns
This builder for chaining.

Definition at line 2244 of file MPSolutionResponse.java.

◆ addAllVariableValue()

Builder com.google.ortools.linearsolver.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
valuesThe variableValue to add.
Returns
This builder for chaining.

Definition at line 1706 of file MPSolutionResponse.java.

◆ addDualValue()

Builder com.google.ortools.linearsolver.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
valueThe dualValue to add.
Returns
This builder for chaining.

Definition at line 2069 of file MPSolutionResponse.java.

◆ addReducedCost()

Builder com.google.ortools.linearsolver.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
valueThe reducedCost to add.
Returns
This builder for chaining.

Definition at line 2222 of file MPSolutionResponse.java.

◆ addRepeatedField()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.addRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 1042 of file MPSolutionResponse.java.

◆ addVariableValue()

Builder com.google.ortools.linearsolver.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
valueThe variableValue to add.
Returns
This builder for chaining.

Definition at line 1687 of file MPSolutionResponse.java.

◆ build()

com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.Builder.build ( )

Definition at line 942 of file MPSolutionResponse.java.

◆ buildPartial()

com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.Builder.buildPartial ( )

Definition at line 951 of file MPSolutionResponse.java.

◆ clear()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clear ( )

Definition at line 904 of file MPSolutionResponse.java.

◆ clearAdditionalSolutions()

Builder com.google.ortools.linearsolver.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;

Definition at line 2513 of file MPSolutionResponse.java.

◆ clearBestObjectiveBound()

Builder com.google.ortools.linearsolver.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.

Definition at line 1593 of file MPSolutionResponse.java.

◆ clearDualValue()

Builder com.google.ortools.linearsolver.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.

Definition at line 2113 of file MPSolutionResponse.java.

◆ clearField()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearField ( com.google.protobuf.Descriptors.FieldDescriptor field)

Definition at line 1026 of file MPSolutionResponse.java.

◆ clearObjectiveValue()

Builder com.google.ortools.linearsolver.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.

Definition at line 1521 of file MPSolutionResponse.java.

◆ clearOneof()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearOneof ( com.google.protobuf.Descriptors.OneofDescriptor oneof)

Definition at line 1031 of file MPSolutionResponse.java.

◆ clearReducedCost()

Builder com.google.ortools.linearsolver.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.

Definition at line 2266 of file MPSolutionResponse.java.

◆ clearSolveInfo()

Builder com.google.ortools.linearsolver.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;

Definition at line 1843 of file MPSolutionResponse.java.

◆ clearSolverSpecificInfo()

Builder com.google.ortools.linearsolver.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.

Definition at line 1960 of file MPSolutionResponse.java.

◆ clearStatus()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clearStatus ( )
Result of the optimization.

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

Returns
This builder for chaining.

Definition at line 1335 of file MPSolutionResponse.java.

◆ clearStatusStr()

Builder com.google.ortools.linearsolver.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.

Definition at line 1437 of file MPSolutionResponse.java.

◆ clearVariableValue()

Builder com.google.ortools.linearsolver.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.

Definition at line 1725 of file MPSolutionResponse.java.

◆ clone()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.clone ( )

Definition at line 1016 of file MPSolutionResponse.java.

◆ getAdditionalSolutions()

com.google.ortools.linearsolver.MPSolution com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2332 of file MPSolutionResponse.java.

◆ getAdditionalSolutionsBuilder()

com.google.ortools.linearsolver.MPSolution.Builder com.google.ortools.linearsolver.MPSolutionResponse.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;

Definition at line 2555 of file MPSolutionResponse.java.

◆ getAdditionalSolutionsBuilderList()

java.util.List< com.google.ortools.linearsolver.MPSolution.Builder > com.google.ortools.linearsolver.MPSolutionResponse.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;

Definition at line 2639 of file MPSolutionResponse.java.

◆ getAdditionalSolutionsCount()

int com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2314 of file MPSolutionResponse.java.

◆ getAdditionalSolutionsList()

java.util.List< com.google.ortools.linearsolver.MPSolution > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2296 of file MPSolutionResponse.java.

◆ getAdditionalSolutionsOrBuilder()

com.google.ortools.linearsolver.MPSolutionOrBuilder com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2570 of file MPSolutionResponse.java.

◆ getAdditionalSolutionsOrBuilderList()

java.util.List<? extends com.google.ortools.linearsolver.MPSolutionOrBuilder > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2589 of file MPSolutionResponse.java.

◆ getBestObjectiveBound()

double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Returns
The bestObjectiveBound.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1558 of file MPSolutionResponse.java.

◆ getDefaultInstanceForType()

com.google.ortools.linearsolver.MPSolutionResponse com.google.ortools.linearsolver.MPSolutionResponse.Builder.getDefaultInstanceForType ( )

Definition at line 937 of file MPSolutionResponse.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPSolutionResponse.Builder.getDescriptor ( )
static

Definition at line 874 of file MPSolutionResponse.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPSolutionResponse.Builder.getDescriptorForType ( )

Definition at line 932 of file MPSolutionResponse.java.

◆ getDualValue()

double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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];

Parameters
indexThe index of the element to return.
Returns
The dualValue at the given index.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2028 of file MPSolutionResponse.java.

◆ getDualValueCount()

int com.google.ortools.linearsolver.MPSolutionResponse.Builder.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];

Returns
The count of dualValue.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2011 of file MPSolutionResponse.java.

◆ getDualValueList()

java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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];

Returns
A list containing the dualValue.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1994 of file MPSolutionResponse.java.

◆ getObjectiveValue()

double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Returns
The objectiveValue.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1490 of file MPSolutionResponse.java.

◆ getReducedCost()

double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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];

Parameters
indexThe index of the element to return.
Returns
The reducedCost at the given index.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2181 of file MPSolutionResponse.java.

◆ getReducedCostCount()

int com.google.ortools.linearsolver.MPSolutionResponse.Builder.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];

Returns
The count of reducedCost.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2164 of file MPSolutionResponse.java.

◆ getReducedCostList()

java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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];

Returns
A list containing the reducedCost.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 2147 of file MPSolutionResponse.java.

◆ getSolveInfo()

com.google.ortools.linearsolver.MPSolveInfo com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Returns
The solveInfo.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1758 of file MPSolutionResponse.java.

◆ getSolveInfoBuilder()

com.google.ortools.linearsolver.MPSolveInfo.Builder com.google.ortools.linearsolver.MPSolutionResponse.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;

Definition at line 1862 of file MPSolutionResponse.java.

◆ getSolveInfoOrBuilder()

com.google.ortools.linearsolver.MPSolveInfoOrBuilder com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1876 of file MPSolutionResponse.java.

◆ getSolverSpecificInfo()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPSolutionResponse.Builder.getSolverSpecificInfo ( )
Opaque solver-specific information.
For the PDLP solver, this is a serialized pdlp::SolveLog proto.

optional bytes solver_specific_info = 11;

Returns
The solverSpecificInfo.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1931 of file MPSolutionResponse.java.

◆ getStatus()

com.google.ortools.linearsolver.MPSolverResponseStatus com.google.ortools.linearsolver.MPSolutionResponse.Builder.getStatus ( )
Result of the optimization.

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

Returns
The status.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1305 of file MPSolutionResponse.java.

◆ getStatusStr()

java.lang.String com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Returns
The statusStr.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1368 of file MPSolutionResponse.java.

◆ getStatusStrBytes()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Returns
The bytes for statusStr.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1394 of file MPSolutionResponse.java.

◆ getVariableValue()

double com.google.ortools.linearsolver.MPSolutionResponse.Builder.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];

Parameters
indexThe index of the element to return.
Returns
The variableValue at the given index.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1652 of file MPSolutionResponse.java.

◆ getVariableValueCount()

int com.google.ortools.linearsolver.MPSolutionResponse.Builder.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];

Returns
The count of variableValue.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1638 of file MPSolutionResponse.java.

◆ getVariableValueList()

java.util.List< java.lang.Double > com.google.ortools.linearsolver.MPSolutionResponse.Builder.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];

Returns
A list containing the variableValue.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1624 of file MPSolutionResponse.java.

◆ hasBestObjectiveBound()

boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Returns
Whether the bestObjectiveBound field is set.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1542 of file MPSolutionResponse.java.

◆ hasObjectiveValue()

boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Returns
Whether the objectiveValue field is set.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1476 of file MPSolutionResponse.java.

◆ hasSolveInfo()

boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Returns
Whether the solveInfo field is set.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1745 of file MPSolutionResponse.java.

◆ hasSolverSpecificInfo()

boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.hasSolverSpecificInfo ( )
Opaque solver-specific information.
For the PDLP solver, this is a serialized pdlp::SolveLog proto.

optional bytes solver_specific_info = 11;

Returns
Whether the solverSpecificInfo field is set.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1918 of file MPSolutionResponse.java.

◆ hasStatus()

boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.hasStatus ( )
Result of the optimization.

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

Returns
Whether the status field is set.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1293 of file MPSolutionResponse.java.

◆ hasStatusStr()

boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.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;

Returns
Whether the statusStr field is set.

Implements com.google.ortools.linearsolver.MPSolutionResponseOrBuilder.

Definition at line 1354 of file MPSolutionResponse.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.ortools.linearsolver.MPSolutionResponse.Builder.internalGetFieldAccessorTable ( )
protected

Definition at line 880 of file MPSolutionResponse.java.

◆ isInitialized()

final boolean com.google.ortools.linearsolver.MPSolutionResponse.Builder.isInitialized ( )

Definition at line 1144 of file MPSolutionResponse.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeFrom ( com.google.ortools.linearsolver.MPSolutionResponse other)

Definition at line 1057 of file MPSolutionResponse.java.

◆ mergeFrom() [2/3]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException

Definition at line 1149 of file MPSolutionResponse.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 1048 of file MPSolutionResponse.java.

◆ mergeSolveInfo()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeSolveInfo ( com.google.ortools.linearsolver.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;

Definition at line 1816 of file MPSolutionResponse.java.

◆ mergeUnknownFields()

final Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.mergeUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 2663 of file MPSolutionResponse.java.

◆ removeAdditionalSolutions()

Builder com.google.ortools.linearsolver.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;

Definition at line 2534 of file MPSolutionResponse.java.

◆ setAdditionalSolutions() [1/2]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setAdditionalSolutions ( int index,
com.google.ortools.linearsolver.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;

Definition at line 2350 of file MPSolutionResponse.java.

◆ setAdditionalSolutions() [2/2]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setAdditionalSolutions ( int index,
com.google.ortools.linearsolver.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;

Definition at line 2375 of file MPSolutionResponse.java.

◆ setBestObjectiveBound()

Builder com.google.ortools.linearsolver.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
valueThe bestObjectiveBound to set.
Returns
This builder for chaining.

Definition at line 1574 of file MPSolutionResponse.java.

◆ setDualValue()

Builder com.google.ortools.linearsolver.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
indexThe index to set the value at.
valueThe dualValue to set.
Returns
This builder for chaining.

Definition at line 2046 of file MPSolutionResponse.java.

◆ setField()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setField ( com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value )

Definition at line 1020 of file MPSolutionResponse.java.

◆ setObjectiveValue()

Builder com.google.ortools.linearsolver.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
valueThe objectiveValue to set.
Returns
This builder for chaining.

Definition at line 1504 of file MPSolutionResponse.java.

◆ setReducedCost()

Builder com.google.ortools.linearsolver.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
indexThe index to set the value at.
valueThe reducedCost to set.
Returns
This builder for chaining.

Definition at line 2199 of file MPSolutionResponse.java.

◆ setRepeatedField()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setRepeatedField ( com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value )

Definition at line 1036 of file MPSolutionResponse.java.

◆ setSolveInfo() [1/2]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setSolveInfo ( com.google.ortools.linearsolver.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;

Definition at line 1774 of file MPSolutionResponse.java.

◆ setSolveInfo() [2/2]

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setSolveInfo ( com.google.ortools.linearsolver.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;

Definition at line 1796 of file MPSolutionResponse.java.

◆ setSolverSpecificInfo()

Builder com.google.ortools.linearsolver.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
valueThe solverSpecificInfo to set.
Returns
This builder for chaining.

Definition at line 1944 of file MPSolutionResponse.java.

◆ setStatus()

Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setStatus ( com.google.ortools.linearsolver.MPSolverResponseStatus value)
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 1318 of file MPSolutionResponse.java.

◆ setStatusStr()

Builder com.google.ortools.linearsolver.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
valueThe statusStr to set.
Returns
This builder for chaining.

Definition at line 1418 of file MPSolutionResponse.java.

◆ setStatusStrBytes()

Builder com.google.ortools.linearsolver.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
valueThe bytes for statusStr to set.
Returns
This builder for chaining.

Definition at line 1455 of file MPSolutionResponse.java.

◆ setUnknownFields()

final Builder com.google.ortools.linearsolver.MPSolutionResponse.Builder.setUnknownFields ( final com.google.protobuf.UnknownFieldSet unknownFields)

Definition at line 2657 of file MPSolutionResponse.java.

◆ setVariableValue()

Builder com.google.ortools.linearsolver.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
indexThe index to set the value at.
valueThe variableValue to set.
Returns
This builder for chaining.

Definition at line 1667 of file MPSolutionResponse.java.


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