Enum PrimalDualHybridGradientParams.RestartStrategy

java.lang.Object
java.lang.Enum<PrimalDualHybridGradientParams.RestartStrategy>
com.google.ortools.pdlp.PrimalDualHybridGradientParams.RestartStrategy
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<PrimalDualHybridGradientParams.RestartStrategy>, java.lang.constant.Constable
Enclosing class:
PrimalDualHybridGradientParams

public static enum PrimalDualHybridGradientParams.RestartStrategy extends Enum<PrimalDualHybridGradientParams.RestartStrategy> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum operations_research.pdlp.PrimalDualHybridGradientParams.RestartStrategy
  • Enum Constant Details

    • RESTART_STRATEGY_UNSPECIFIED

      public static final PrimalDualHybridGradientParams.RestartStrategy RESTART_STRATEGY_UNSPECIFIED
      RESTART_STRATEGY_UNSPECIFIED = 0;
    • NO_RESTARTS

      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;
    • EVERY_MAJOR_ITERATION

      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;
    • ADAPTIVE_HEURISTIC

      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;
    • ADAPTIVE_DISTANCE_BASED

      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;
  • Field Details

    • RESTART_STRATEGY_UNSPECIFIED_VALUE

      public static final int RESTART_STRATEGY_UNSPECIFIED_VALUE
      RESTART_STRATEGY_UNSPECIFIED = 0;
      See Also:
    • NO_RESTARTS_VALUE

      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;
      See Also:
    • EVERY_MAJOR_ITERATION_VALUE

      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;
      See Also:
    • ADAPTIVE_HEURISTIC_VALUE

      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;
      See Also:
    • ADAPTIVE_DISTANCE_BASED_VALUE

      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;
      See Also:
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static PrimalDualHybridGradientParams.RestartStrategy forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<PrimalDualHybridGradientParams.RestartStrategy> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static PrimalDualHybridGradientParams.RestartStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null