public enum RestartChoice extends java.lang.Enum<RestartChoice> implements com.google.protobuf.ProtocolMessageEnum
Specifies whether a restart was performed on a given iteration.Protobuf enum
operations_research.pdlp.RestartChoice
Enum Constant and Description |
---|
RESTART_CHOICE_NO_RESTART
No restart on this iteration.
|
RESTART_CHOICE_RESTART_TO_AVERAGE
The algorithm is restarted at the average of iterates since the last
restart.
|
RESTART_CHOICE_UNSPECIFIED
RESTART_CHOICE_UNSPECIFIED = 0; |
RESTART_CHOICE_WEIGHTED_AVERAGE_RESET
The weighted average of iterates is cleared and reset to the current point.
|
Modifier and Type | Field and Description |
---|---|
static int |
RESTART_CHOICE_NO_RESTART_VALUE
No restart on this iteration.
|
static int |
RESTART_CHOICE_RESTART_TO_AVERAGE_VALUE
The algorithm is restarted at the average of iterates since the last
restart.
|
static int |
RESTART_CHOICE_UNSPECIFIED_VALUE
RESTART_CHOICE_UNSPECIFIED = 0; |
static int |
RESTART_CHOICE_WEIGHTED_AVERAGE_RESET_VALUE
The weighted average of iterates is cleared and reset to the current point.
|
Modifier and Type | Method and Description |
---|---|
static RestartChoice |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<RestartChoice> |
internalGetValueMap() |
static RestartChoice |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RestartChoice |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RestartChoice |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RestartChoice[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestartChoice RESTART_CHOICE_UNSPECIFIED
RESTART_CHOICE_UNSPECIFIED = 0;
public static final RestartChoice RESTART_CHOICE_NO_RESTART
No restart on this iteration.
RESTART_CHOICE_NO_RESTART = 1;
public static final RestartChoice RESTART_CHOICE_WEIGHTED_AVERAGE_RESET
The weighted average of iterates is cleared and reset to the current point. Note that from a mathematical perspective this can be equivalently viewed as restarting the algorithm but picking the restart point to be the current iterate.
RESTART_CHOICE_WEIGHTED_AVERAGE_RESET = 2;
public static final RestartChoice RESTART_CHOICE_RESTART_TO_AVERAGE
The algorithm is restarted at the average of iterates since the last restart.
RESTART_CHOICE_RESTART_TO_AVERAGE = 3;
public static final int RESTART_CHOICE_UNSPECIFIED_VALUE
RESTART_CHOICE_UNSPECIFIED = 0;
public static final int RESTART_CHOICE_NO_RESTART_VALUE
No restart on this iteration.
RESTART_CHOICE_NO_RESTART = 1;
public static final int RESTART_CHOICE_WEIGHTED_AVERAGE_RESET_VALUE
The weighted average of iterates is cleared and reset to the current point. Note that from a mathematical perspective this can be equivalently viewed as restarting the algorithm but picking the restart point to be the current iterate.
RESTART_CHOICE_WEIGHTED_AVERAGE_RESET = 2;
public static final int RESTART_CHOICE_RESTART_TO_AVERAGE_VALUE
The algorithm is restarted at the average of iterates since the last restart.
RESTART_CHOICE_RESTART_TO_AVERAGE = 3;
public static RestartChoice[] values()
for (RestartChoice c : RestartChoice.values()) System.out.println(c);
public static RestartChoice valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static RestartChoice valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static RestartChoice forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RestartChoice> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RestartChoice valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.