public static enum PrimalDualHybridGradientParams.RestartStrategy extends java.lang.Enum<PrimalDualHybridGradientParams.RestartStrategy> implements com.google.protobuf.ProtocolMessageEnum
operations_research.pdlp.PrimalDualHybridGradientParams.RestartStrategy
Enum Constant and Description |
---|
ADAPTIVE_DISTANCE_BASED
A distance-based restarting scheme that restarts the algorithm whenever
an appropriate potential function is reduced sufficiently.
|
ADAPTIVE_HEURISTIC
A heuristic that adaptively decides on every major iteration whether to
restart (this is forced approximately on increasing powers-of-two
iterations), and if so to the current or to the average, based on
reduction in a potential function.
|
EVERY_MAJOR_ITERATION
On every major iteration, the current solution is reset to the average
since the last major iteration.
|
NO_RESTARTS
No restarts are performed.
|
RESTART_STRATEGY_UNSPECIFIED
RESTART_STRATEGY_UNSPECIFIED = 0; |
Modifier and Type | Field and Description |
---|---|
static int |
ADAPTIVE_DISTANCE_BASED_VALUE
A distance-based restarting scheme that restarts the algorithm whenever
an appropriate potential function is reduced sufficiently.
|
static int |
ADAPTIVE_HEURISTIC_VALUE
A heuristic that adaptively decides on every major iteration whether to
restart (this is forced approximately on increasing powers-of-two
iterations), and if so to the current or to the average, based on
reduction in a potential function.
|
static int |
EVERY_MAJOR_ITERATION_VALUE
On every major iteration, the current solution is reset to the average
since the last major iteration.
|
static int |
NO_RESTARTS_VALUE
No restarts are performed.
|
static int |
RESTART_STRATEGY_UNSPECIFIED_VALUE
RESTART_STRATEGY_UNSPECIFIED = 0; |
Modifier and Type | Method and Description |
---|---|
static PrimalDualHybridGradientParams.RestartStrategy |
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<PrimalDualHybridGradientParams.RestartStrategy> |
internalGetValueMap() |
static PrimalDualHybridGradientParams.RestartStrategy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static PrimalDualHybridGradientParams.RestartStrategy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PrimalDualHybridGradientParams.RestartStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrimalDualHybridGradientParams.RestartStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimalDualHybridGradientParams.RestartStrategy RESTART_STRATEGY_UNSPECIFIED
RESTART_STRATEGY_UNSPECIFIED = 0;
public static final PrimalDualHybridGradientParams.RestartStrategy NO_RESTARTS
No restarts are performed. The average solution is cleared every major iteration, but the current solution is not changed.
NO_RESTARTS = 1;
public static final PrimalDualHybridGradientParams.RestartStrategy EVERY_MAJOR_ITERATION
On every major iteration, the current solution is reset to the average since the last major iteration.
EVERY_MAJOR_ITERATION = 2;
public static final PrimalDualHybridGradientParams.RestartStrategy ADAPTIVE_HEURISTIC
A heuristic that adaptively decides on every major iteration whether to restart (this is forced approximately on increasing powers-of-two iterations), and if so to the current or to the average, based on reduction in a potential function. The rule more or less follows the description of the adaptive restart scheme in https://arxiv.org/pdf/2106.04756.pdf.
ADAPTIVE_HEURISTIC = 3;
public static final PrimalDualHybridGradientParams.RestartStrategy ADAPTIVE_DISTANCE_BASED
A distance-based restarting scheme that restarts the algorithm whenever an appropriate potential function is reduced sufficiently. This check happens at every major iteration. TODO(user): Cite paper for the restart strategy and definition of the potential function, when available.
ADAPTIVE_DISTANCE_BASED = 4;
public static final int RESTART_STRATEGY_UNSPECIFIED_VALUE
RESTART_STRATEGY_UNSPECIFIED = 0;
public static final int NO_RESTARTS_VALUE
No restarts are performed. The average solution is cleared every major iteration, but the current solution is not changed.
NO_RESTARTS = 1;
public static final int EVERY_MAJOR_ITERATION_VALUE
On every major iteration, the current solution is reset to the average since the last major iteration.
EVERY_MAJOR_ITERATION = 2;
public static final int ADAPTIVE_HEURISTIC_VALUE
A heuristic that adaptively decides on every major iteration whether to restart (this is forced approximately on increasing powers-of-two iterations), and if so to the current or to the average, based on reduction in a potential function. The rule more or less follows the description of the adaptive restart scheme in https://arxiv.org/pdf/2106.04756.pdf.
ADAPTIVE_HEURISTIC = 3;
public static final int ADAPTIVE_DISTANCE_BASED_VALUE
A distance-based restarting scheme that restarts the algorithm whenever an appropriate potential function is reduced sufficiently. This check happens at every major iteration. TODO(user): Cite paper for the restart strategy and definition of the potential function, when available.
ADAPTIVE_DISTANCE_BASED = 4;
public static PrimalDualHybridGradientParams.RestartStrategy[] values()
for (PrimalDualHybridGradientParams.RestartStrategy c : PrimalDualHybridGradientParams.RestartStrategy.values()) System.out.println(c);
public static PrimalDualHybridGradientParams.RestartStrategy 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 PrimalDualHybridGradientParams.RestartStrategy valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static PrimalDualHybridGradientParams.RestartStrategy forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<PrimalDualHybridGradientParams.RestartStrategy> 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 PrimalDualHybridGradientParams.RestartStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.