Protobuf type.
operations_research.MPSolutionResponse
Definition at line 9 of file MPSolutionResponse.java.
◆ equals()
| .lang.Override boolean equals |
( |
final java.lang.Object |
obj | ) |
|
|
inline |
◆ getBestObjectiveBound()
| .lang.Override double getBestObjectiveBound |
( |
| ) |
|
|
inline |
This field is only filled for MIP problems. For a minimization problem,
this is a lower bound on the optimal objective value. For a maximization
problem, it is an upper bound. It is only filled if the status is OPTIMAL
or FEASIBLE. In the former case, best_objective_bound should be equal to
objective_value (modulo numerical errors).
optional double best_objective_bound = 5;
- Returns
- The bestObjectiveBound.
Implements MPSolutionResponseOrBuilder.
Definition at line 348 of file MPSolutionResponse.java.
◆ getDefaultInstance()
◆ getDefaultInstanceForType()
◆ getDescriptor()
| static final com.google.protobuf.Descriptors.Descriptor getDescriptor |
( |
| ) |
|
|
inlinestatic |
◆ getDualValue()
| double getDualValue |
( |
int |
index | ) |
|
|
inline |
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field. This is a dense representation.
These are not set if the problem was solved with a MIP solver (even if
it is actually a linear program).
These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Parameters
-
| index | The index of the element to return. |
- Returns
- The dualValue at the given index.
Implements MPSolutionResponseOrBuilder.
Definition at line 448 of file MPSolutionResponse.java.
◆ getDualValueCount()
| int getDualValueCount |
( |
| ) |
|
|
inline |
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field. This is a dense representation.
These are not set if the problem was solved with a MIP solver (even if
it is actually a linear program).
These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Returns
- The count of dualValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 431 of file MPSolutionResponse.java.
◆ getDualValueList()
| .lang.Override java.util.List<java.lang.Double> getDualValueList |
( |
| ) |
|
|
inline |
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field. This is a dense representation.
These are not set if the problem was solved with a MIP solver (even if
it is actually a linear program).
These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double dual_value = 4 [packed = true];
- Returns
- A list containing the dualValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 415 of file MPSolutionResponse.java.
◆ getObjectiveValue()
| .lang.Override double getObjectiveValue |
( |
| ) |
|
|
inline |
Objective value corresponding to the "variable_value" below, taking into
account the source "objective_offset" and "objective_coefficient".
This is set iff 'status' is OPTIMAL or FEASIBLE.
optional double objective_value = 2;
- Returns
- The objectiveValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 313 of file MPSolutionResponse.java.
◆ getParserForType()
◆ getReducedCost()
| double getReducedCost |
( |
int |
index | ) |
|
|
inline |
[Advanced usage.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable. This is a dense representation.
These are not set if the problem was solved with a MIP solver (even if it
is actually a linear program).
These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Parameters
-
| index | The index of the element to return. |
- Returns
- The reducedCost at the given index.
Implements MPSolutionResponseOrBuilder.
Definition at line 503 of file MPSolutionResponse.java.
◆ getReducedCostCount()
| int getReducedCostCount |
( |
| ) |
|
|
inline |
[Advanced usage.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable. This is a dense representation.
These are not set if the problem was solved with a MIP solver (even if it
is actually a linear program).
These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Returns
- The count of reducedCost.
Implements MPSolutionResponseOrBuilder.
Definition at line 486 of file MPSolutionResponse.java.
◆ getReducedCostList()
| .lang.Override java.util.List<java.lang.Double> getReducedCostList |
( |
| ) |
|
|
inline |
[Advanced usage.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable. This is a dense representation.
These are not set if the problem was solved with a MIP solver (even if it
is actually a linear program).
These are set iff 'status' is OPTIMAL or FEASIBLE.
repeated double reduced_cost = 6 [packed = true];
- Returns
- A list containing the reducedCost.
Implements MPSolutionResponseOrBuilder.
Definition at line 470 of file MPSolutionResponse.java.
◆ getSerializedSize()
| .lang.Override int getSerializedSize |
( |
| ) |
|
|
inline |
◆ getStatus()
◆ getStatusStr()
| .lang.Override java.lang.String getStatusStr |
( |
| ) |
|
|
inline |
Human-readable string giving more details about the status. For example,
when the status is MPSOLVER_INVALID_MODE, this can hold a description of
why the model is invalid.
This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
- Returns
- The statusStr.
Implements MPSolutionResponseOrBuilder.
Definition at line 246 of file MPSolutionResponse.java.
◆ getStatusStrBytes()
| .lang.Override com.google.protobuf.ByteString getStatusStrBytes |
( |
| ) |
|
|
inline |
Human-readable string giving more details about the status. For example,
when the status is MPSOLVER_INVALID_MODE, this can hold a description of
why the model is invalid.
This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
- Returns
- The bytes for statusStr.
Implements MPSolutionResponseOrBuilder.
Definition at line 273 of file MPSolutionResponse.java.
◆ getUnknownFields()
| .lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields |
( |
| ) |
|
|
inline |
◆ getVariableValue()
| double getVariableValue |
( |
int |
index | ) |
|
|
inline |
Variable values in the same order as the MPModelProto::variable field.
This is a dense representation. These are set iff 'status' is OPTIMAL or
FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Parameters
-
| index | The index of the element to return. |
- Returns
- The variableValue at the given index.
Implements MPSolutionResponseOrBuilder.
Definition at line 393 of file MPSolutionResponse.java.
◆ getVariableValueCount()
| int getVariableValueCount |
( |
| ) |
|
|
inline |
Variable values in the same order as the MPModelProto::variable field.
This is a dense representation. These are set iff 'status' is OPTIMAL or
FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Returns
- The count of variableValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 379 of file MPSolutionResponse.java.
◆ getVariableValueList()
| .lang.Override java.util.List<java.lang.Double> getVariableValueList |
( |
| ) |
|
|
inline |
Variable values in the same order as the MPModelProto::variable field.
This is a dense representation. These are set iff 'status' is OPTIMAL or
FEASIBLE.
repeated double variable_value = 3 [packed = true];
- Returns
- A list containing the variableValue.
Implements MPSolutionResponseOrBuilder.
Definition at line 366 of file MPSolutionResponse.java.
◆ hasBestObjectiveBound()
| .lang.Override boolean hasBestObjectiveBound |
( |
| ) |
|
|
inline |
This field is only filled for MIP problems. For a minimization problem,
this is a lower bound on the optimal objective value. For a maximization
problem, it is an upper bound. It is only filled if the status is OPTIMAL
or FEASIBLE. In the former case, best_objective_bound should be equal to
objective_value (modulo numerical errors).
optional double best_objective_bound = 5;
- Returns
- Whether the bestObjectiveBound field is set.
Implements MPSolutionResponseOrBuilder.
Definition at line 332 of file MPSolutionResponse.java.
◆ hashCode()
| .lang.Override int hashCode |
( |
| ) |
|
|
inline |
◆ hasObjectiveValue()
| .lang.Override boolean hasObjectiveValue |
( |
| ) |
|
|
inline |
Objective value corresponding to the "variable_value" below, taking into
account the source "objective_offset" and "objective_coefficient".
This is set iff 'status' is OPTIMAL or FEASIBLE.
optional double objective_value = 2;
- Returns
- Whether the objectiveValue field is set.
Implements MPSolutionResponseOrBuilder.
Definition at line 299 of file MPSolutionResponse.java.
◆ hasStatus()
| .lang.Override boolean hasStatus |
( |
| ) |
|
|
inline |
◆ hasStatusStr()
| .lang.Override boolean hasStatusStr |
( |
| ) |
|
|
inline |
Human-readable string giving more details about the status. For example,
when the status is MPSOLVER_INVALID_MODE, this can hold a description of
why the model is invalid.
This isn't always filled: don't depend on its value or even its presence.
optional string status_str = 7;
- Returns
- Whether the statusStr field is set.
Implements MPSolutionResponseOrBuilder.
Definition at line 231 of file MPSolutionResponse.java.
◆ internalGetFieldAccessorTable()
| .lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable |
( |
| ) |
|
|
inlineprotected |
◆ isInitialized()
| .lang.Override final boolean isInitialized |
( |
| ) |
|
|
inline |
◆ newBuilder() [1/2]
◆ newBuilder() [2/2]
◆ newBuilderForType() [1/2]
| .lang.Override Builder newBuilderForType |
( |
| ) |
|
|
inline |
◆ newBuilderForType() [2/2]
| .lang.Override Builder newBuilderForType |
( |
com.google.protobuf.GeneratedMessageV3.BuilderParent |
parent | ) |
|
|
inlineprotected |
◆ newInstance()
| .lang.Override java.lang.Object newInstance |
( |
UnusedPrivateParameter |
unused | ) |
|
|
inlineprotected |
◆ parseDelimitedFrom() [1/2]
◆ parseDelimitedFrom() [2/2]
◆ parseFrom() [1/10]
◆ parseFrom() [2/10]
◆ parseFrom() [3/10]
◆ parseFrom() [4/10]
◆ parseFrom() [5/10]
◆ parseFrom() [6/10]
◆ parseFrom() [7/10]
◆ parseFrom() [8/10]
◆ parseFrom() [9/10]
◆ parseFrom() [10/10]
◆ parser()
◆ toBuilder()
| .lang.Override Builder toBuilder |
( |
| ) |
|
|
inline |
◆ writeTo()
| .lang.Override void writeTo |
( |
com.google.protobuf.CodedOutputStream |
output | ) |
throws java.io.IOException |
|
inline |
◆ BEST_OBJECTIVE_BOUND_FIELD_NUMBER
| final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER = 5 |
|
static |
◆ DUAL_VALUE_FIELD_NUMBER
| final int DUAL_VALUE_FIELD_NUMBER = 4 |
|
static |
◆ OBJECTIVE_VALUE_FIELD_NUMBER
| final int OBJECTIVE_VALUE_FIELD_NUMBER = 2 |
|
static |
◆ PARSER
Initial value:=
new com.
google.protobuf.AbstractParser<MPSolutionResponse>() {
@java.lang.Override
public MPSolutionResponse parsePartialFrom(
com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.
google.protobuf.InvalidProtocolBufferException {
return new MPSolutionResponse(input, extensionRegistry);
}
}
Definition at line 1775 of file MPSolutionResponse.java.
◆ REDUCED_COST_FIELD_NUMBER
| final int REDUCED_COST_FIELD_NUMBER = 6 |
|
static |
◆ STATUS_FIELD_NUMBER
| final int STATUS_FIELD_NUMBER = 1 |
|
static |
◆ STATUS_STR_FIELD_NUMBER
| final int STATUS_STR_FIELD_NUMBER = 7 |
|
static |
◆ VARIABLE_VALUE_FIELD_NUMBER
| final int VARIABLE_VALUE_FIELD_NUMBER = 3 |
|
static |
The documentation for this class was generated from the following file: