public final class IterationStats extends com.google.protobuf.GeneratedMessage implements IterationStatsOrBuilder
All values in IterationStats assume that the primal quadratic program is a minimization problem and the dual is a maximization problem. Problems should be transformed to this form if they are not already in this form. The dual vector is defined to be the vector of multipliers on the linear constraints, that is, excluding dual multipliers on variable bounds (reduced costs).Protobuf type
operations_research.pdlp.IterationStats
Modifier and Type | Class and Description |
---|---|
static class |
IterationStats.Builder
All values in IterationStats assume that the primal quadratic program is a
minimization problem and the dual is a maximization problem.
|
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 |
CONVERGENCE_INFORMATION_FIELD_NUMBER |
static int |
CUMULATIVE_KKT_MATRIX_PASSES_FIELD_NUMBER |
static int |
CUMULATIVE_REJECTED_STEPS_FIELD_NUMBER |
static int |
CUMULATIVE_TIME_SEC_FIELD_NUMBER |
static int |
INFEASIBILITY_INFORMATION_FIELD_NUMBER |
static int |
ITERATION_NUMBER_FIELD_NUMBER |
static int |
POINT_METADATA_FIELD_NUMBER |
static int |
PRIMAL_WEIGHT_FIELD_NUMBER |
static int |
RESTART_USED_FIELD_NUMBER |
static int |
STEP_SIZE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
ConvergenceInformation |
getConvergenceInformation(int index)
A set of statistics measuring how close a point is to establishing primal
and dual feasibility and optimality.
|
int |
getConvergenceInformationCount()
A set of statistics measuring how close a point is to establishing primal
and dual feasibility and optimality.
|
java.util.List<ConvergenceInformation> |
getConvergenceInformationList()
A set of statistics measuring how close a point is to establishing primal
and dual feasibility and optimality.
|
ConvergenceInformationOrBuilder |
getConvergenceInformationOrBuilder(int index)
A set of statistics measuring how close a point is to establishing primal
and dual feasibility and optimality.
|
java.util.List<? extends ConvergenceInformationOrBuilder> |
getConvergenceInformationOrBuilderList()
A set of statistics measuring how close a point is to establishing primal
and dual feasibility and optimality.
|
double |
getCumulativeKktMatrixPasses()
The cumulative number of passes through the KKT matrix since the start of
the solve.
|
int |
getCumulativeRejectedSteps()
The total number of rejected steps (e.g., within a line search procedure)
since the start of the solve.
|
double |
getCumulativeTimeSec()
The amount of time passed since we started solving the problem (see solver
log `solve_time_sec` which records total time).
|
static IterationStats |
getDefaultInstance() |
IterationStats |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
InfeasibilityInformation |
getInfeasibilityInformation(int index)
A set of statistics measuring how close a point is to establishing primal
or dual infeasibility (i.e., has no solution).
|
int |
getInfeasibilityInformationCount()
A set of statistics measuring how close a point is to establishing primal
or dual infeasibility (i.e., has no solution).
|
java.util.List<InfeasibilityInformation> |
getInfeasibilityInformationList()
A set of statistics measuring how close a point is to establishing primal
or dual infeasibility (i.e., has no solution).
|
InfeasibilityInformationOrBuilder |
getInfeasibilityInformationOrBuilder(int index)
A set of statistics measuring how close a point is to establishing primal
or dual infeasibility (i.e., has no solution).
|
java.util.List<? extends InfeasibilityInformationOrBuilder> |
getInfeasibilityInformationOrBuilderList()
A set of statistics measuring how close a point is to establishing primal
or dual infeasibility (i.e., has no solution).
|
int |
getIterationNumber()
The iteration number at which these stats were recorded.
|
com.google.protobuf.Parser<IterationStats> |
getParserForType() |
PointMetadata |
getPointMetadata(int index)
Auxiliary statistics for each type of point.
|
int |
getPointMetadataCount()
Auxiliary statistics for each type of point.
|
java.util.List<PointMetadata> |
getPointMetadataList()
Auxiliary statistics for each type of point.
|
PointMetadataOrBuilder |
getPointMetadataOrBuilder(int index)
Auxiliary statistics for each type of point.
|
java.util.List<? extends PointMetadataOrBuilder> |
getPointMetadataOrBuilderList()
Auxiliary statistics for each type of point.
|
double |
getPrimalWeight()
Primal weight controlling the relation between primal and dual step sizes.
|
RestartChoice |
getRestartUsed()
The kind of restart that occurred at this iteration, or NO_RESTART if a
restart did not occur.
|
int |
getSerializedSize() |
double |
getStepSize()
Step size used at this iteration.
|
boolean |
hasCumulativeKktMatrixPasses()
The cumulative number of passes through the KKT matrix since the start of
the solve.
|
boolean |
hasCumulativeRejectedSteps()
The total number of rejected steps (e.g., within a line search procedure)
since the start of the solve.
|
boolean |
hasCumulativeTimeSec()
The amount of time passed since we started solving the problem (see solver
log `solve_time_sec` which records total time).
|
int |
hashCode() |
boolean |
hasIterationNumber()
The iteration number at which these stats were recorded.
|
boolean |
hasPrimalWeight()
Primal weight controlling the relation between primal and dual step sizes.
|
boolean |
hasRestartUsed()
The kind of restart that occurred at this iteration, or NO_RESTART if a
restart did not occur.
|
boolean |
hasStepSize()
Step size used at this iteration.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static IterationStats.Builder |
newBuilder() |
static IterationStats.Builder |
newBuilder(IterationStats prototype) |
IterationStats.Builder |
newBuilderForType() |
protected IterationStats.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static IterationStats |
parseDelimitedFrom(java.io.InputStream input) |
static IterationStats |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IterationStats |
parseFrom(byte[] data) |
static IterationStats |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IterationStats |
parseFrom(java.nio.ByteBuffer data) |
static IterationStats |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IterationStats |
parseFrom(com.google.protobuf.ByteString data) |
static IterationStats |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IterationStats |
parseFrom(com.google.protobuf.CodedInputStream input) |
static IterationStats |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static IterationStats |
parseFrom(java.io.InputStream input) |
static IterationStats |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<IterationStats> |
parser() |
IterationStats.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 ITERATION_NUMBER_FIELD_NUMBER
public static final int CONVERGENCE_INFORMATION_FIELD_NUMBER
public static final int INFEASIBILITY_INFORMATION_FIELD_NUMBER
public static final int POINT_METADATA_FIELD_NUMBER
public static final int CUMULATIVE_KKT_MATRIX_PASSES_FIELD_NUMBER
public static final int CUMULATIVE_REJECTED_STEPS_FIELD_NUMBER
public static final int CUMULATIVE_TIME_SEC_FIELD_NUMBER
public static final int RESTART_USED_FIELD_NUMBER
public static final int STEP_SIZE_FIELD_NUMBER
public static final int PRIMAL_WEIGHT_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 hasIterationNumber()
The iteration number at which these stats were recorded. By convention, iteration counts start at 1, and the stats correspond to the solution *after* the iteration. Therefore stats from iteration 0 are the stats at the starting point.
optional int32 iteration_number = 1;
hasIterationNumber
in interface IterationStatsOrBuilder
public int getIterationNumber()
The iteration number at which these stats were recorded. By convention, iteration counts start at 1, and the stats correspond to the solution *after* the iteration. Therefore stats from iteration 0 are the stats at the starting point.
optional int32 iteration_number = 1;
getIterationNumber
in interface IterationStatsOrBuilder
public java.util.List<ConvergenceInformation> getConvergenceInformationList()
A set of statistics measuring how close a point is to establishing primal and dual feasibility and optimality. This field is repeated since there might be several different points that are considered.
repeated .operations_research.pdlp.ConvergenceInformation convergence_information = 2;
getConvergenceInformationList
in interface IterationStatsOrBuilder
public java.util.List<? extends ConvergenceInformationOrBuilder> getConvergenceInformationOrBuilderList()
A set of statistics measuring how close a point is to establishing primal and dual feasibility and optimality. This field is repeated since there might be several different points that are considered.
repeated .operations_research.pdlp.ConvergenceInformation convergence_information = 2;
getConvergenceInformationOrBuilderList
in interface IterationStatsOrBuilder
public int getConvergenceInformationCount()
A set of statistics measuring how close a point is to establishing primal and dual feasibility and optimality. This field is repeated since there might be several different points that are considered.
repeated .operations_research.pdlp.ConvergenceInformation convergence_information = 2;
getConvergenceInformationCount
in interface IterationStatsOrBuilder
public ConvergenceInformation getConvergenceInformation(int index)
A set of statistics measuring how close a point is to establishing primal and dual feasibility and optimality. This field is repeated since there might be several different points that are considered.
repeated .operations_research.pdlp.ConvergenceInformation convergence_information = 2;
getConvergenceInformation
in interface IterationStatsOrBuilder
public ConvergenceInformationOrBuilder getConvergenceInformationOrBuilder(int index)
A set of statistics measuring how close a point is to establishing primal and dual feasibility and optimality. This field is repeated since there might be several different points that are considered.
repeated .operations_research.pdlp.ConvergenceInformation convergence_information = 2;
getConvergenceInformationOrBuilder
in interface IterationStatsOrBuilder
public java.util.List<InfeasibilityInformation> getInfeasibilityInformationList()
A set of statistics measuring how close a point is to establishing primal or dual infeasibility (i.e., has no solution). This field is repeated since there might be several different points that could establish infeasibility.
repeated .operations_research.pdlp.InfeasibilityInformation infeasibility_information = 3;
getInfeasibilityInformationList
in interface IterationStatsOrBuilder
public java.util.List<? extends InfeasibilityInformationOrBuilder> getInfeasibilityInformationOrBuilderList()
A set of statistics measuring how close a point is to establishing primal or dual infeasibility (i.e., has no solution). This field is repeated since there might be several different points that could establish infeasibility.
repeated .operations_research.pdlp.InfeasibilityInformation infeasibility_information = 3;
getInfeasibilityInformationOrBuilderList
in interface IterationStatsOrBuilder
public int getInfeasibilityInformationCount()
A set of statistics measuring how close a point is to establishing primal or dual infeasibility (i.e., has no solution). This field is repeated since there might be several different points that could establish infeasibility.
repeated .operations_research.pdlp.InfeasibilityInformation infeasibility_information = 3;
getInfeasibilityInformationCount
in interface IterationStatsOrBuilder
public InfeasibilityInformation getInfeasibilityInformation(int index)
A set of statistics measuring how close a point is to establishing primal or dual infeasibility (i.e., has no solution). This field is repeated since there might be several different points that could establish infeasibility.
repeated .operations_research.pdlp.InfeasibilityInformation infeasibility_information = 3;
getInfeasibilityInformation
in interface IterationStatsOrBuilder
public InfeasibilityInformationOrBuilder getInfeasibilityInformationOrBuilder(int index)
A set of statistics measuring how close a point is to establishing primal or dual infeasibility (i.e., has no solution). This field is repeated since there might be several different points that could establish infeasibility.
repeated .operations_research.pdlp.InfeasibilityInformation infeasibility_information = 3;
getInfeasibilityInformationOrBuilder
in interface IterationStatsOrBuilder
public java.util.List<PointMetadata> getPointMetadataList()
Auxiliary statistics for each type of point.
repeated .operations_research.pdlp.PointMetadata point_metadata = 11;
getPointMetadataList
in interface IterationStatsOrBuilder
public java.util.List<? extends PointMetadataOrBuilder> getPointMetadataOrBuilderList()
Auxiliary statistics for each type of point.
repeated .operations_research.pdlp.PointMetadata point_metadata = 11;
getPointMetadataOrBuilderList
in interface IterationStatsOrBuilder
public int getPointMetadataCount()
Auxiliary statistics for each type of point.
repeated .operations_research.pdlp.PointMetadata point_metadata = 11;
getPointMetadataCount
in interface IterationStatsOrBuilder
public PointMetadata getPointMetadata(int index)
Auxiliary statistics for each type of point.
repeated .operations_research.pdlp.PointMetadata point_metadata = 11;
getPointMetadata
in interface IterationStatsOrBuilder
public PointMetadataOrBuilder getPointMetadataOrBuilder(int index)
Auxiliary statistics for each type of point.
repeated .operations_research.pdlp.PointMetadata point_metadata = 11;
getPointMetadataOrBuilder
in interface IterationStatsOrBuilder
public boolean hasCumulativeKktMatrixPasses()
The cumulative number of passes through the KKT matrix since the start of the solve. One pass is a multply by the constraint matrix, its transpose and the matrix that defines the quadratic part of the objective. For example, each iteration of mirror saddle prox contributes 2.0 to this sum. This is a float because it can include fractional passes through the data. For example, in an active set method we may only use a submatrix with 20% of the nonzeros of the KKT matrix at each iteration in which case 0.2 would be added to the total.
optional double cumulative_kkt_matrix_passes = 4;
hasCumulativeKktMatrixPasses
in interface IterationStatsOrBuilder
public double getCumulativeKktMatrixPasses()
The cumulative number of passes through the KKT matrix since the start of the solve. One pass is a multply by the constraint matrix, its transpose and the matrix that defines the quadratic part of the objective. For example, each iteration of mirror saddle prox contributes 2.0 to this sum. This is a float because it can include fractional passes through the data. For example, in an active set method we may only use a submatrix with 20% of the nonzeros of the KKT matrix at each iteration in which case 0.2 would be added to the total.
optional double cumulative_kkt_matrix_passes = 4;
getCumulativeKktMatrixPasses
in interface IterationStatsOrBuilder
public boolean hasCumulativeRejectedSteps()
The total number of rejected steps (e.g., within a line search procedure) since the start of the solve.
optional int32 cumulative_rejected_steps = 5;
hasCumulativeRejectedSteps
in interface IterationStatsOrBuilder
public int getCumulativeRejectedSteps()
The total number of rejected steps (e.g., within a line search procedure) since the start of the solve.
optional int32 cumulative_rejected_steps = 5;
getCumulativeRejectedSteps
in interface IterationStatsOrBuilder
public boolean hasCumulativeTimeSec()
The amount of time passed since we started solving the problem (see solver log `solve_time_sec` which records total time).
optional double cumulative_time_sec = 6;
hasCumulativeTimeSec
in interface IterationStatsOrBuilder
public double getCumulativeTimeSec()
The amount of time passed since we started solving the problem (see solver log `solve_time_sec` which records total time).
optional double cumulative_time_sec = 6;
getCumulativeTimeSec
in interface IterationStatsOrBuilder
public boolean hasRestartUsed()
The kind of restart that occurred at this iteration, or NO_RESTART if a restart did not occur.
optional .operations_research.pdlp.RestartChoice restart_used = 7;
hasRestartUsed
in interface IterationStatsOrBuilder
public RestartChoice getRestartUsed()
The kind of restart that occurred at this iteration, or NO_RESTART if a restart did not occur.
optional .operations_research.pdlp.RestartChoice restart_used = 7;
getRestartUsed
in interface IterationStatsOrBuilder
public boolean hasStepSize()
Step size used at this iteration. Note that the step size used for the primal update is step_size / primal_weight, while the one used for the dual update is step_size * primal_weight.
optional double step_size = 8;
hasStepSize
in interface IterationStatsOrBuilder
public double getStepSize()
Step size used at this iteration. Note that the step size used for the primal update is step_size / primal_weight, while the one used for the dual update is step_size * primal_weight.
optional double step_size = 8;
getStepSize
in interface IterationStatsOrBuilder
public boolean hasPrimalWeight()
Primal weight controlling the relation between primal and dual step sizes. See field 'step_size' for a detailed description.
optional double primal_weight = 9;
hasPrimalWeight
in interface IterationStatsOrBuilder
public double getPrimalWeight()
Primal weight controlling the relation between primal and dual step sizes. See field 'step_size' for a detailed description.
optional double primal_weight = 9;
getPrimalWeight
in interface IterationStatsOrBuilder
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 IterationStats parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IterationStats parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IterationStats parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IterationStats parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IterationStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IterationStats parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static IterationStats parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static IterationStats parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static IterationStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static IterationStats parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static IterationStats parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static IterationStats parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public IterationStats.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static IterationStats.Builder newBuilder()
public static IterationStats.Builder newBuilder(IterationStats prototype)
public IterationStats.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected IterationStats.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static IterationStats getDefaultInstance()
public static com.google.protobuf.Parser<IterationStats> parser()
public com.google.protobuf.Parser<IterationStats> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public IterationStats getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2025. All rights reserved.