Google OR-Tools v9.11
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 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 ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPSolutionResponseOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Next id: 12.

Protobuf type operations_research.MPSolutionResponse

Definition at line 871 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 2367 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 2416 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 2391 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 2438 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 2577 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 2592 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 2460 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 2061 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 2214 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 1676 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 2039 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 2192 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 1657 of file MPSolutionResponse.java.

◆ build()

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

Definition at line 944 of file MPSolutionResponse.java.

◆ buildPartial()

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

Definition at line 953 of file MPSolutionResponse.java.

◆ clear()

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

Definition at line 906 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 2483 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 1563 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 2083 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 1491 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 2236 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 1813 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 1930 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 1305 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 1407 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 1695 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 2302 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 2525 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 2609 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 2284 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 2266 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 2540 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 2559 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 1528 of file MPSolutionResponse.java.

◆ getDefaultInstanceForType()

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

Definition at line 939 of file MPSolutionResponse.java.

◆ getDescriptor()

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

Definition at line 876 of file MPSolutionResponse.java.

◆ getDescriptorForType()

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

Definition at line 934 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 1998 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 1981 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 1964 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 1460 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 2151 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 2134 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 2117 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 1728 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 1832 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 1846 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 1901 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 1275 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 1338 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 1364 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 1622 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 1608 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 1594 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 1512 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 1446 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 1715 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 1888 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 1263 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 1324 of file MPSolutionResponse.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 882 of file MPSolutionResponse.java.

◆ isInitialized()

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

Definition at line 1114 of file MPSolutionResponse.java.

◆ mergeFrom() [1/3]

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

Definition at line 1027 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 1119 of file MPSolutionResponse.java.

◆ mergeFrom() [3/3]

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

Definition at line 1018 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 1786 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 2504 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 2320 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 2345 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 1544 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 2016 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 1474 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 2169 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 1744 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 1766 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 1914 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 1288 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 1388 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 1425 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 1637 of file MPSolutionResponse.java.


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