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,java.io.Serializable,java.lang.Comparable<LocalSearchMetaheuristic.Value>,java.lang.constant.Constable
- Enclosing class:
- LocalSearchMetaheuristic
public static enum LocalSearchMetaheuristic.Value extends java.lang.Enum<LocalSearchMetaheuristic.Value> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
operations_research.LocalSearchMetaheuristic.Value-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description AUTOMATICLets the solver select the metaheuristic.GENERIC_TABU_SEARCHUses tabu search on a list of variables to escape local minima.GREEDY_DESCENTAccepts improving (cost-reducing) local search neighbors until a local minimum is reached.GUIDED_LOCAL_SEARCHUses guided local search to escape local minima (cf.SIMULATED_ANNEALINGUses simulated annealing to escape local minima (cf.TABU_SEARCHUses tabu search to escape local minima (cf.UNRECOGNIZEDUNSETMeans "not set". -
Field Summary
Fields Modifier and Type Field Description static intAUTOMATIC_VALUELets the solver select the metaheuristic.static intGENERIC_TABU_SEARCH_VALUEUses tabu search on a list of variables to escape local minima.static intGREEDY_DESCENT_VALUEAccepts improving (cost-reducing) local search neighbors until a local minimum is reached.static intGUIDED_LOCAL_SEARCH_VALUEUses guided local search to escape local minima (cf.static intSIMULATED_ANNEALING_VALUEUses simulated annealing to escape local minima (cf.static intTABU_SEARCH_VALUEUses tabu search to escape local minima (cf.static intUNSET_VALUEMeans "not set". -
Method Summary
Modifier and Type Method Description static LocalSearchMetaheuristic.ValueforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<LocalSearchMetaheuristic.Value>internalGetValueMap()static LocalSearchMetaheuristic.ValuevalueOf(int value)Deprecated.static LocalSearchMetaheuristic.ValuevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static LocalSearchMetaheuristic.ValuevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LocalSearchMetaheuristic.Value[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
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
Lets the solver select the metaheuristic.
AUTOMATIC = 6; -
GREEDY_DESCENT
Accepts improving (cost-reducing) local search neighbors until a local minimum is reached.
GREEDY_DESCENT = 1; -
GUIDED_LOCAL_SEARCH
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; -
SIMULATED_ANNEALING
Uses simulated annealing to escape local minima (cf. http://en.wikipedia.org/wiki/Simulated_annealing).
SIMULATED_ANNEALING = 3; -
TABU_SEARCH
Uses tabu search to escape local minima (cf. http://en.wikipedia.org/wiki/Tabu_search).
TABU_SEARCH = 4; -
GENERIC_TABU_SEARCH
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; -
UNRECOGNIZED
-
-
Field Details
-
UNSET_VALUE
public static final int UNSET_VALUEMeans "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:
- Constant Field Values
-
AUTOMATIC_VALUE
public static final int AUTOMATIC_VALUELets the solver select the metaheuristic.
AUTOMATIC = 6;- See Also:
- Constant Field Values
-
GREEDY_DESCENT_VALUE
public static final int GREEDY_DESCENT_VALUEAccepts improving (cost-reducing) local search neighbors until a local minimum is reached.
GREEDY_DESCENT = 1;- See Also:
- Constant Field Values
-
GUIDED_LOCAL_SEARCH_VALUE
public static final int GUIDED_LOCAL_SEARCH_VALUEUses 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:
- Constant Field Values
-
SIMULATED_ANNEALING_VALUE
public static final int SIMULATED_ANNEALING_VALUEUses simulated annealing to escape local minima (cf. http://en.wikipedia.org/wiki/Simulated_annealing).
SIMULATED_ANNEALING = 3;- See Also:
- Constant Field Values
-
TABU_SEARCH_VALUE
public static final int TABU_SEARCH_VALUEUses tabu search to escape local minima (cf. http://en.wikipedia.org/wiki/Tabu_search).
TABU_SEARCH = 4;- See Also:
- Constant Field Values
-
GENERIC_TABU_SEARCH_VALUE
public static final int GENERIC_TABU_SEARCH_VALUEUses 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:
- Constant Field Values
-
-
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-