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.]
|
int |
getAdditionalSolutionsCount()
[Advanced usage.]
|
java.util.List<MPSolution> |
getAdditionalSolutionsList()
[Advanced usage.]
|
MPSolutionOrBuilder |
getAdditionalSolutionsOrBuilder(int index)
[Advanced usage.]
|
java.util.List<? extends MPSolutionOrBuilder> |
getAdditionalSolutionsOrBuilderList()
[Advanced usage.]
|
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.]
|
int |
getDualValueCount()
[Advanced usage.]
|
java.util.List<java.lang.Double> |
getDualValueList()
[Advanced usage.]
|
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.]
|
int |
getReducedCostCount()
[Advanced usage.]
|
java.util.List<java.lang.Double> |
getReducedCostList()
[Advanced usage.]
|
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessage
public boolean hasStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
hasStatus
in interface MPSolutionResponseOrBuilder
public MPSolverResponseStatus getStatus()
Result of the optimization.
optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
getStatus
in interface MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
index
- 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
index
- 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
index
- 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public 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 MPSolutionResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static MPSolutionResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPSolutionResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPSolutionResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPSolutionResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPSolutionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPSolutionResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MPSolutionResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MPSolutionResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MPSolutionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MPSolutionResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MPSolutionResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static MPSolutionResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public MPSolutionResponse.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static MPSolutionResponse.Builder newBuilder()
public static MPSolutionResponse.Builder newBuilder(MPSolutionResponse prototype)
public MPSolutionResponse.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected MPSolutionResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static MPSolutionResponse getDefaultInstance()
public static com.google.protobuf.Parser<MPSolutionResponse> parser()
public com.google.protobuf.Parser<MPSolutionResponse> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public MPSolutionResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2025. All rights reserved.