public final class MPSolutionResponse extends com.google.protobuf.GeneratedMessage implements MPSolutionResponseOrBuilder
Next id: 12.Protobuf type
operations_research.MPSolutionResponse| Modifier and Type | Class and Description |
|---|---|
static class |
MPSolutionResponse.Builder
Next id: 12.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADDITIONAL_SOLUTIONS_FIELD_NUMBER |
static int |
BEST_OBJECTIVE_BOUND_FIELD_NUMBER |
static int |
DUAL_VALUE_FIELD_NUMBER |
static int |
OBJECTIVE_VALUE_FIELD_NUMBER |
static int |
REDUCED_COST_FIELD_NUMBER |
static int |
SOLVE_INFO_FIELD_NUMBER |
static int |
SOLVER_SPECIFIC_INFO_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
STATUS_STR_FIELD_NUMBER |
static int |
VARIABLE_VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
MPSolution |
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.
|
int |
getAdditionalSolutionsCount()
[Advanced usage.]
If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
number of additional solutions may be populated here, if available.
|
java.util.List<MPSolution> |
getAdditionalSolutionsList()
[Advanced usage.]
If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
number of additional solutions may be populated here, if available.
|
MPSolutionOrBuilder |
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.
|
java.util.List<? extends MPSolutionOrBuilder> |
getAdditionalSolutionsOrBuilderList()
[Advanced usage.]
If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
number of additional solutions may be populated here, if available.
|
double |
getBestObjectiveBound()
This field is only filled for MIP problems.
|
static MPSolutionResponse |
getDefaultInstance() |
MPSolutionResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getDualValue(int index)
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field.
|
int |
getDualValueCount()
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field.
|
java.util.List<java.lang.Double> |
getDualValueList()
[Advanced usage.]
Values of the dual variables values in the same order as the
MPModelProto::constraint field.
|
double |
getObjectiveValue()
Objective value corresponding to the "variable_value" below, taking into
account the source "objective_offset" and "objective_coefficient".
|
com.google.protobuf.Parser<MPSolutionResponse> |
getParserForType() |
double |
getReducedCost(int index)
[Advanced usage.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable.
|
int |
getReducedCostCount()
[Advanced usage.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable.
|
java.util.List<java.lang.Double> |
getReducedCostList()
[Advanced usage.]
Values of the reduced cost of the variables in the same order as the
MPModelProto::variable.
|
int |
getSerializedSize() |
MPSolveInfo |
getSolveInfo()
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
MPSolveInfoOrBuilder |
getSolveInfoOrBuilder()
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
com.google.protobuf.ByteString |
getSolverSpecificInfo()
Opaque solver-specific information.
|
MPSolverResponseStatus |
getStatus()
Result of the optimization.
|
java.lang.String |
getStatusStr()
Human-readable string giving more details about the status.
|
com.google.protobuf.ByteString |
getStatusStrBytes()
Human-readable string giving more details about the status.
|
double |
getVariableValue(int index)
Variable values in the same order as the MPModelProto::variable field.
|
int |
getVariableValueCount()
Variable values in the same order as the MPModelProto::variable field.
|
java.util.List<java.lang.Double> |
getVariableValueList()
Variable values in the same order as the MPModelProto::variable field.
|
boolean |
hasBestObjectiveBound()
This field is only filled for MIP problems.
|
int |
hashCode() |
boolean |
hasObjectiveValue()
Objective value corresponding to the "variable_value" below, taking into
account the source "objective_offset" and "objective_coefficient".
|
boolean |
hasSolveInfo()
Contains extra information about the solve, populated if the underlying
solver (and its interface) supports it.
|
boolean |
hasSolverSpecificInfo()
Opaque solver-specific information.
|
boolean |
hasStatus()
Result of the optimization.
|
boolean |
hasStatusStr()
Human-readable string giving more details about the status.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MPSolutionResponse.Builder |
newBuilder() |
static MPSolutionResponse.Builder |
newBuilder(MPSolutionResponse prototype) |
MPSolutionResponse.Builder |
newBuilderForType() |
protected MPSolutionResponse.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static MPSolutionResponse |
parseDelimitedFrom(java.io.InputStream input) |
static MPSolutionResponse |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolutionResponse |
parseFrom(byte[] data) |
static MPSolutionResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolutionResponse |
parseFrom(java.nio.ByteBuffer data) |
static MPSolutionResponse |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolutionResponse |
parseFrom(com.google.protobuf.ByteString data) |
static MPSolutionResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolutionResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MPSolutionResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MPSolutionResponse |
parseFrom(java.io.InputStream input) |
static MPSolutionResponse |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MPSolutionResponse> |
parser() |
MPSolutionResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int STATUS_FIELD_NUMBER
public static final int STATUS_STR_FIELD_NUMBER
public static final int OBJECTIVE_VALUE_FIELD_NUMBER
public static final int BEST_OBJECTIVE_BOUND_FIELD_NUMBER
public static final int VARIABLE_VALUE_FIELD_NUMBER
public static final int SOLVE_INFO_FIELD_NUMBER
public static final int SOLVER_SPECIFIC_INFO_FIELD_NUMBER
public static final int DUAL_VALUE_FIELD_NUMBER
public static final int REDUCED_COST_FIELD_NUMBER
public static final int ADDITIONAL_SOLUTIONS_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];hasStatus in interface MPSolutionResponseOrBuilderpublic MPSolverResponseStatus getStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];getStatus in interface MPSolutionResponseOrBuilderpublic boolean 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;hasStatusStr in interface MPSolutionResponseOrBuilderpublic java.lang.String 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;getStatusStr in interface MPSolutionResponseOrBuilderpublic com.google.protobuf.ByteString 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;getStatusStrBytes in interface MPSolutionResponseOrBuilderpublic boolean 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;hasObjectiveValue in interface MPSolutionResponseOrBuilderpublic double 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;getObjectiveValue in interface MPSolutionResponseOrBuilderpublic boolean 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;hasBestObjectiveBound in interface MPSolutionResponseOrBuilderpublic double 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;getBestObjectiveBound in interface MPSolutionResponseOrBuilderpublic java.util.List<java.lang.Double> 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];getVariableValueList in interface MPSolutionResponseOrBuilderpublic int 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];getVariableValueCount in interface MPSolutionResponseOrBuilderpublic double 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];getVariableValue in interface MPSolutionResponseOrBuilderindex - The index of the element to return.public boolean 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;hasSolveInfo in interface MPSolutionResponseOrBuilderpublic MPSolveInfo 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;getSolveInfo in interface MPSolutionResponseOrBuilderpublic MPSolveInfoOrBuilder 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;getSolveInfoOrBuilder in interface MPSolutionResponseOrBuilderpublic boolean hasSolverSpecificInfo()
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
optional bytes solver_specific_info = 11;hasSolverSpecificInfo in interface MPSolutionResponseOrBuilderpublic com.google.protobuf.ByteString getSolverSpecificInfo()
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
optional bytes solver_specific_info = 11;getSolverSpecificInfo in interface MPSolutionResponseOrBuilderpublic java.util.List<java.lang.Double> 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];getDualValueList in interface MPSolutionResponseOrBuilderpublic int 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];getDualValueCount in interface MPSolutionResponseOrBuilderpublic double 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];getDualValue in interface MPSolutionResponseOrBuilderindex - The index of the element to return.public java.util.List<java.lang.Double> 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];getReducedCostList in interface MPSolutionResponseOrBuilderpublic int 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];getReducedCostCount in interface MPSolutionResponseOrBuilderpublic double 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];getReducedCost in interface MPSolutionResponseOrBuilderindex - The index of the element to return.public java.util.List<MPSolution> 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;getAdditionalSolutionsList in interface MPSolutionResponseOrBuilderpublic java.util.List<? extends MPSolutionOrBuilder> 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;getAdditionalSolutionsOrBuilderList in interface MPSolutionResponseOrBuilderpublic int 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;getAdditionalSolutionsCount in interface MPSolutionResponseOrBuilderpublic MPSolution 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;getAdditionalSolutions in interface MPSolutionResponseOrBuilderpublic MPSolutionOrBuilder 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;getAdditionalSolutionsOrBuilder in interface MPSolutionResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MPSolutionResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolutionResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolutionResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolutionResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolutionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolutionResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MPSolutionResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPSolutionResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MPSolutionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPSolutionResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MPSolutionResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MPSolutionResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MPSolutionResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MPSolutionResponse.Builder newBuilder()
public static MPSolutionResponse.Builder newBuilder(MPSolutionResponse prototype)
public MPSolutionResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MPSolutionResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static MPSolutionResponse getDefaultInstance()
public static com.google.protobuf.Parser<MPSolutionResponse> parser()
public com.google.protobuf.Parser<MPSolutionResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic MPSolutionResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024. All rights reserved.