Enum LocalSearchMetaheuristic.Value

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

public static enum LocalSearchMetaheuristic.Value extends Enum<LocalSearchMetaheuristic.Value> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum operations_research.LocalSearchMetaheuristic.Value
  • Enum Constant Details

    • UNSET

      public static final LocalSearchMetaheuristic.Value UNSET
       Means "not set". If the solver sees that, it'll behave like for
       AUTOMATIC. But this value won't override others upon a proto MergeFrom(),
       whereas "AUTOMATIC" will.
       
      UNSET = 0;
    • AUTOMATIC

      public static final LocalSearchMetaheuristic.Value AUTOMATIC
       Lets the solver select the metaheuristic.
       
      AUTOMATIC = 6;
    • GREEDY_DESCENT

      public static final LocalSearchMetaheuristic.Value GREEDY_DESCENT
       Accepts improving (cost-reducing) local search neighbors until a local
       minimum is reached.
       
      GREEDY_DESCENT = 1;
    • SIMULATED_ANNEALING

      public static final LocalSearchMetaheuristic.Value SIMULATED_ANNEALING
       Uses simulated annealing to escape local minima
       (cf. http://en.wikipedia.org/wiki/Simulated_annealing).
       
      SIMULATED_ANNEALING = 3;
    • UNRECOGNIZED

      public static final LocalSearchMetaheuristic.Value UNRECOGNIZED
  • Field Details

    • UNSET_VALUE

      public static final int UNSET_VALUE
       Means "not set". If the solver sees that, it'll behave like for
       AUTOMATIC. But this value won't override others upon a proto MergeFrom(),
       whereas "AUTOMATIC" will.
       
      UNSET = 0;
      See Also:
    • AUTOMATIC_VALUE

      public static final int AUTOMATIC_VALUE
       Lets the solver select the metaheuristic.
       
      AUTOMATIC = 6;
      See Also:
    • GREEDY_DESCENT_VALUE

      public static final int GREEDY_DESCENT_VALUE
       Accepts improving (cost-reducing) local search neighbors until a local
       minimum is reached.
       
      GREEDY_DESCENT = 1;
      See Also:
    • GUIDED_LOCAL_SEARCH_VALUE

      public static final int GUIDED_LOCAL_SEARCH_VALUE
       Uses guided local search to escape local minima
       (cf. http://en.wikipedia.org/wiki/Guided_Local_Search); this is generally
       the most efficient metaheuristic for vehicle routing.
       
      GUIDED_LOCAL_SEARCH = 2;
      See Also:
    • SIMULATED_ANNEALING_VALUE

      public static final int SIMULATED_ANNEALING_VALUE
       Uses simulated annealing to escape local minima
       (cf. http://en.wikipedia.org/wiki/Simulated_annealing).
       
      SIMULATED_ANNEALING = 3;
      See Also:
    • TABU_SEARCH_VALUE

      public static final int TABU_SEARCH_VALUE
       Uses tabu search to escape local minima
       (cf. http://en.wikipedia.org/wiki/Tabu_search).
       
      TABU_SEARCH = 4;
      See Also:
    • GENERIC_TABU_SEARCH_VALUE

      public static final int GENERIC_TABU_SEARCH_VALUE
       Uses tabu search on a list of variables to escape local minima. The list
       of variables to use must be provided via the SetTabuVarsCallback
       callback.
       
      GENERIC_TABU_SEARCH = 5;
      See Also:
  • Method Details

    • values

      public static LocalSearchMetaheuristic.Value[] 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

      public static LocalSearchMetaheuristic.Value valueOf(String name)
      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 public static LocalSearchMetaheuristic.Value valueOf(int value)
      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 LocalSearchMetaheuristic.Value 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<LocalSearchMetaheuristic.Value> 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 LocalSearchMetaheuristic.Value 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