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>
- Enclosing class:
- LocalSearchMetaheuristic
public static enum LocalSearchMetaheuristic.Value extends java.lang.Enum<LocalSearchMetaheuristic.Value> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumoperations_research.LocalSearchMetaheuristic.Value
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 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.
-
-
-
Enum Constant Detail
-
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;
-
GUIDED_LOCAL_SEARCH
public static final LocalSearchMetaheuristic.Value 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
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;
-
TABU_SEARCH
public static final LocalSearchMetaheuristic.Value TABU_SEARCH
Uses tabu search to escape local minima (cf. http://en.wikipedia.org/wiki/Tabu_search).
TABU_SEARCH = 4;
-
GENERIC_TABU_SEARCH
public static final LocalSearchMetaheuristic.Value 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
public static final LocalSearchMetaheuristic.Value UNRECOGNIZED
-
-
Field Detail
-
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:
- Constant Field Values
-
AUTOMATIC_VALUE
public static final int AUTOMATIC_VALUE
Lets the solver select the metaheuristic.
AUTOMATIC = 6;- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
-
Method Detail
-
values
public static LocalSearchMetaheuristic.Value[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LocalSearchMetaheuristic.Value c : LocalSearchMetaheuristic.Value.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocalSearchMetaheuristic.Value valueOf(java.lang.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:
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 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.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:
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
-
-