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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLets the solver select the metaheuristic.Uses tabu search on a list of variables to escape local minima.Accepts improving (cost-reducing) local search neighbors until a local minimum is reached.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.Uses simulated annealing to escape local minima (cf. http://en.wikipedia.org/wiki/Simulated_annealing).Uses tabu search to escape local minima (cf. http://en.wikipedia.org/wiki/Tabu_search).Means "not set". -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Lets the solver select the metaheuristic.static final int
Uses tabu search on a list of variables to escape local minima.static final int
Accepts improving (cost-reducing) local search neighbors until a local minimum is reached.static final int
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.static final int
Uses simulated annealing to escape local minima (cf. http://en.wikipedia.org/wiki/Simulated_annealing).static final int
Uses tabu search to escape local minima (cf. http://en.wikipedia.org/wiki/Tabu_search).static final int
Means "not set". -
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) static com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<LocalSearchMetaheuristic.Value> valueOf
(int value) Deprecated.valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified 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 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:
-
AUTOMATIC_VALUE
public static final int AUTOMATIC_VALUELets the solver select the metaheuristic.
AUTOMATIC = 6;
- See Also:
-
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:
-
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:
-
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:
-
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:
-
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:
-
-
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.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 nameNullPointerException
- if the argument is null
-