Java Reference
Java Reference
Detailed Description
Protobuf type.
Definition at line 794 of file MPSolutionResponse.java.
Public Member Functions | |
| .lang.Override Builder | clear () |
| .lang.Override com.google.protobuf.Descriptors.Descriptor | getDescriptorForType () |
| .lang.Override com.google.ortools.linearsolver.MPSolutionResponse | getDefaultInstanceForType () |
| .lang.Override com.google.ortools.linearsolver.MPSolutionResponse | build () |
| .lang.Override com.google.ortools.linearsolver.MPSolutionResponse | buildPartial () |
| .lang.Override Builder | clone () |
| .lang.Override Builder | setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) |
| .lang.Override Builder | clearField (com.google.protobuf.Descriptors.FieldDescriptor field) |
| .lang.Override Builder | clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
| .lang.Override Builder | setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) |
| .lang.Override Builder | addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) |
| .lang.Override Builder | mergeFrom (com.google.protobuf.Message other) |
| Builder | mergeFrom (com.google.ortools.linearsolver.MPSolutionResponse other) |
| .lang.Override final boolean | isInitialized () |
| .lang.Override Builder | mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| .lang.Override boolean | hasStatus () |
| .lang.Override com.google.ortools.linearsolver.MPSolverResponseStatus | getStatus () |
| Builder | setStatus (com.google.ortools.linearsolver.MPSolverResponseStatus value) |
| Builder | clearStatus () |
| boolean | hasStatusStr () |
| java.lang.String | getStatusStr () |
| com.google.protobuf.ByteString | getStatusStrBytes () |
| Builder | setStatusStr (java.lang.String value) |
| Builder | clearStatusStr () |
| Builder | setStatusStrBytes (com.google.protobuf.ByteString value) |
| .lang.Override boolean | hasObjectiveValue () |
| .lang.Override double | getObjectiveValue () |
| Builder | setObjectiveValue (double value) |
| Builder | clearObjectiveValue () |
| .lang.Override boolean | hasBestObjectiveBound () |
| .lang.Override double | getBestObjectiveBound () |
| Builder | setBestObjectiveBound (double value) |
| Builder | clearBestObjectiveBound () |
| java.util.List< java.lang.Double > | getVariableValueList () |
| int | getVariableValueCount () |
| double | getVariableValue (int index) |
| Builder | setVariableValue (int index, double value) |
| Builder | addVariableValue (double value) |
| Builder | addAllVariableValue (java.lang.Iterable<? extends java.lang.Double > values) |
| Builder | clearVariableValue () |
| java.util.List< java.lang.Double > | getDualValueList () |
| int | getDualValueCount () |
| double | getDualValue (int index) |
| Builder | setDualValue (int index, double value) |
| Builder | addDualValue (double value) |
| Builder | addAllDualValue (java.lang.Iterable<? extends java.lang.Double > values) |
| Builder | clearDualValue () |
| java.util.List< java.lang.Double > | getReducedCostList () |
| int | getReducedCostCount () |
| double | getReducedCost (int index) |
| Builder | setReducedCost (int index, double value) |
| Builder | addReducedCost (double value) |
| Builder | addAllReducedCost (java.lang.Iterable<? extends java.lang.Double > values) |
| Builder | clearReducedCost () |
| .lang.Override final Builder | setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields) |
| .lang.Override final Builder | mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields) |
Static Public Member Functions | |
| static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
| .lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
Member Function Documentation
◆ addAllDualValue()
|
inline |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Parameters
-
values The dualValue to add.
- Returns
- This builder for chaining.
Definition at line 1579 of file MPSolutionResponse.java.
◆ addAllReducedCost()
|
inline |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Parameters
-
values The reducedCost to add.
- Returns
- This builder for chaining.
Definition at line 1721 of file MPSolutionResponse.java.
◆ addAllVariableValue()
|
inline |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Parameters
-
values The variableValue to add.
- Returns
- This builder for chaining.
Definition at line 1440 of file MPSolutionResponse.java.
◆ addDualValue()
|
inline |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Parameters
-
value The dualValue to add.
- Returns
- This builder for chaining.
Definition at line 1559 of file MPSolutionResponse.java.
◆ addReducedCost()
|
inline |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Parameters
-
value The reducedCost to add.
- Returns
- This builder for chaining.
Definition at line 1701 of file MPSolutionResponse.java.
◆ addRepeatedField()
|
inline |
Definition at line 934 of file MPSolutionResponse.java.
◆ addVariableValue()
|
inline |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Parameters
-
value The variableValue to add.
- Returns
- This builder for chaining.
Definition at line 1423 of file MPSolutionResponse.java.
◆ build()
|
inline |
Definition at line 858 of file MPSolutionResponse.java.
◆ buildPartial()
|
inline |
Definition at line 867 of file MPSolutionResponse.java.
◆ clear()
|
inline |
Definition at line 827 of file MPSolutionResponse.java.
◆ clearBestObjectiveBound()
|
inline |
This field is only filled for MIP problems. For a minimization problem, this is a lower bound on the optimal objective value. For a maximization problem, it is an upper bound. It is only filled if the status is OPTIMAL or FEASIBLE. In the former case, best_objective_bound should be equal to objective_value (modulo numerical errors).
optional double best_objective_bound = 5;
- Returns
- This builder for chaining.
Definition at line 1337 of file MPSolutionResponse.java.
◆ clearDualValue()
|
inline |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Returns
- This builder for chaining.
Definition at line 1600 of file MPSolutionResponse.java.
◆ clearField()
|
inline |
Definition at line 918 of file MPSolutionResponse.java.
◆ clearObjectiveValue()
|
inline |
Objective value corresponding to the "variable_value" below, taking into account the source "objective_offset" and "objective_coefficient". This is set iff 'status' is OPTIMAL or FEASIBLE.
optional double objective_value = 2;
- Returns
- This builder for chaining.
Definition at line 1266 of file MPSolutionResponse.java.
◆ clearOneof()
|
inline |
Definition at line 923 of file MPSolutionResponse.java.
◆ clearReducedCost()
|
inline |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Returns
- This builder for chaining.
Definition at line 1742 of file MPSolutionResponse.java.
◆ clearStatus()
|
inline |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
- Returns
- This builder for chaining.
Definition at line 1077 of file MPSolutionResponse.java.
◆ clearStatusStr()
|
inline |
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_INVALID_MODE, this can hold a description of why the model is invalid. This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
- Returns
- This builder for chaining.
Definition at line 1181 of file MPSolutionResponse.java.
◆ clearVariableValue()
|
inline |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Returns
- This builder for chaining.
Definition at line 1458 of file MPSolutionResponse.java.
◆ clone()
|
inline |
Definition at line 908 of file MPSolutionResponse.java.
◆ getBestObjectiveBound()
|
inline |
This field is only filled for MIP problems. For a minimization problem, this is a lower bound on the optimal objective value. For a maximization problem, it is an upper bound. It is only filled if the status is OPTIMAL or FEASIBLE. In the former case, best_objective_bound should be equal to objective_value (modulo numerical errors).
optional double best_objective_bound = 5;
- Returns
- The bestObjectiveBound.
Implements MPSolutionResponseOrBuilder.
Definition at line 1303 of file MPSolutionResponse.java.
◆ getDefaultInstanceForType()
|
inline |
Definition at line 853 of file MPSolutionResponse.java.
◆ getDescriptor()
|
inlinestatic |
Definition at line 799 of file MPSolutionResponse.java.
◆ getDescriptorForType()
|
inline |
Definition at line 848 of file MPSolutionResponse.java.
◆ getDualValue()
|
inline |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Parameters
-
index The index of the element to return.
- Returns
- The dualValue at the given index.
Implements MPSolutionResponseOrBuilder.
Definition at line 1520 of file MPSolutionResponse.java.
◆ getDualValueCount()
|
inline |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Returns
- The count of dualValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 1503 of file MPSolutionResponse.java.
◆ getDualValueList()
|
inline |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Returns
- A list containing the dualValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 1486 of file MPSolutionResponse.java.
◆ getObjectiveValue()
|
inline |
Objective value corresponding to the "variable_value" below, taking into account the source "objective_offset" and "objective_coefficient". This is set iff 'status' is OPTIMAL or FEASIBLE.
optional double objective_value = 2;
- Returns
- The objectiveValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 1236 of file MPSolutionResponse.java.
◆ getReducedCost()
|
inline |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Parameters
-
index The index of the element to return.
- Returns
- The reducedCost at the given index.
Implements MPSolutionResponseOrBuilder.
Definition at line 1662 of file MPSolutionResponse.java.
◆ getReducedCostCount()
|
inline |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Returns
- The count of reducedCost.
Implements MPSolutionResponseOrBuilder.
Definition at line 1645 of file MPSolutionResponse.java.
◆ getReducedCostList()
|
inline |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Returns
- A list containing the reducedCost.
Implements MPSolutionResponseOrBuilder.
Definition at line 1628 of file MPSolutionResponse.java.
◆ getStatus()
|
inline |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
- Returns
- The status.
Implements MPSolutionResponseOrBuilder.
Definition at line 1046 of file MPSolutionResponse.java.
◆ getStatusStr()
|
inline |
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_INVALID_MODE, this can hold a description of why the model is invalid. This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
- Returns
- The statusStr.
Implements MPSolutionResponseOrBuilder.
Definition at line 1110 of file MPSolutionResponse.java.
◆ getStatusStrBytes()
|
inline |
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_INVALID_MODE, this can hold a description of why the model is invalid. This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
- Returns
- The bytes for statusStr.
Implements MPSolutionResponseOrBuilder.
Definition at line 1136 of file MPSolutionResponse.java.
◆ getVariableValue()
|
inline |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Parameters
-
index The index of the element to return.
- Returns
- The variableValue at the given index.
Implements MPSolutionResponseOrBuilder.
Definition at line 1390 of file MPSolutionResponse.java.
◆ getVariableValueCount()
|
inline |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Returns
- The count of variableValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 1376 of file MPSolutionResponse.java.
◆ getVariableValueList()
|
inline |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Returns
- A list containing the variableValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 1362 of file MPSolutionResponse.java.
◆ hasBestObjectiveBound()
|
inline |
This field is only filled for MIP problems. For a minimization problem, this is a lower bound on the optimal objective value. For a maximization problem, it is an upper bound. It is only filled if the status is OPTIMAL or FEASIBLE. In the former case, best_objective_bound should be equal to objective_value (modulo numerical errors).
optional double best_objective_bound = 5;
- Returns
- Whether the bestObjectiveBound field is set.
Implements MPSolutionResponseOrBuilder.
Definition at line 1287 of file MPSolutionResponse.java.
◆ hasObjectiveValue()
|
inline |
Objective value corresponding to the "variable_value" below, taking into account the source "objective_offset" and "objective_coefficient". This is set iff 'status' is OPTIMAL or FEASIBLE.
optional double objective_value = 2;
- Returns
- Whether the objectiveValue field is set.
Implements MPSolutionResponseOrBuilder.
Definition at line 1222 of file MPSolutionResponse.java.
◆ hasStatus()
|
inline |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
- Returns
- Whether the status field is set.
Implements MPSolutionResponseOrBuilder.
Definition at line 1034 of file MPSolutionResponse.java.
◆ hasStatusStr()
|
inline |
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_INVALID_MODE, this can hold a description of why the model is invalid. This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
- Returns
- Whether the statusStr field is set.
Implements MPSolutionResponseOrBuilder.
Definition at line 1096 of file MPSolutionResponse.java.
◆ internalGetFieldAccessorTable()
|
inlineprotected |
Definition at line 805 of file MPSolutionResponse.java.
◆ isInitialized()
|
inline |
Definition at line 1001 of file MPSolutionResponse.java.
◆ mergeFrom() [1/3]
|
inline |
Definition at line 949 of file MPSolutionResponse.java.
◆ mergeFrom() [2/3]
|
inline |
Definition at line 1006 of file MPSolutionResponse.java.
◆ mergeFrom() [3/3]
|
inline |
Definition at line 940 of file MPSolutionResponse.java.
◆ mergeUnknownFields()
|
inline |
Definition at line 1755 of file MPSolutionResponse.java.
◆ setBestObjectiveBound()
|
inline |
This field is only filled for MIP problems. For a minimization problem, this is a lower bound on the optimal objective value. For a maximization problem, it is an upper bound. It is only filled if the status is OPTIMAL or FEASIBLE. In the former case, best_objective_bound should be equal to objective_value (modulo numerical errors).
optional double best_objective_bound = 5;
- Parameters
-
value The bestObjectiveBound to set.
- Returns
- This builder for chaining.
Definition at line 1319 of file MPSolutionResponse.java.
◆ setDualValue()
|
inline |
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constraint field. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Parameters
-
index The index to set the value at. value The dualValue to set.
- Returns
- This builder for chaining.
Definition at line 1538 of file MPSolutionResponse.java.
◆ setField()
|
inline |
Definition at line 912 of file MPSolutionResponse.java.
◆ setObjectiveValue()
|
inline |
Objective value corresponding to the "variable_value" below, taking into account the source "objective_offset" and "objective_coefficient". This is set iff 'status' is OPTIMAL or FEASIBLE.
optional double objective_value = 2;
- Parameters
-
value The objectiveValue to set.
- Returns
- This builder for chaining.
Definition at line 1250 of file MPSolutionResponse.java.
◆ setReducedCost()
|
inline |
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::variable. This is a dense representation. These are not set if the problem was solved with a MIP solver (even if it is actually a linear program). These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Parameters
-
index The index to set the value at. value The reducedCost to set.
- Returns
- This builder for chaining.
Definition at line 1680 of file MPSolutionResponse.java.
◆ setRepeatedField()
|
inline |
Definition at line 928 of file MPSolutionResponse.java.
◆ setStatus()
|
inline |
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
- Parameters
-
value The status to set.
- Returns
- This builder for chaining.
Definition at line 1060 of file MPSolutionResponse.java.
◆ setStatusStr()
|
inline |
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_INVALID_MODE, this can hold a description of why the model is invalid. This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
- Parameters
-
value The statusStr to set.
- Returns
- This builder for chaining.
Definition at line 1160 of file MPSolutionResponse.java.
◆ setStatusStrBytes()
|
inline |
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_INVALID_MODE, this can hold a description of why the model is invalid. This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
- Parameters
-
value The bytes for statusStr to set.
- Returns
- This builder for chaining.
Definition at line 1199 of file MPSolutionResponse.java.
◆ setUnknownFields()
|
inline |
Definition at line 1749 of file MPSolutionResponse.java.
◆ setVariableValue()
|
inline |
Variable values in the same order as the MPModelProto::variable field. This is a dense representation. These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Parameters
-
index The index to set the value at. value The variableValue to set.
- Returns
- This builder for chaining.
Definition at line 1405 of file MPSolutionResponse.java.
The documentation for this class was generated from the following file: