public static enum SatParameters.SearchBranching extends java.lang.Enum<SatParameters.SearchBranching> implements com.google.protobuf.ProtocolMessageEnum
The search branching will be used to decide how to branch on unfixed nodes.Protobuf enum
operations_research.sat.SatParameters.SearchBranching
Enum Constant and Description |
---|
AUTOMATIC_SEARCH
Try to fix all literals using the underlying SAT solver's heuristics,
then generate and fix literals until integer variables are fixed.
|
FIXED_SEARCH
If used then all decisions taken by the solver are made using a fixed
order as specified in the API or in the CpModelProto search_strategy
field.
|
HINT_SEARCH
Mainly used internally.
|
LP_SEARCH
If used, the solver will use heuristics from the LP relaxation.
|
PARTIAL_FIXED_SEARCH
Similar to FIXED_SEARCH, but differ in how the variable not listed into
the fixed search heuristics are branched on.
|
PORTFOLIO_SEARCH
Simple portfolio search used by LNS workers.
|
PORTFOLIO_WITH_QUICK_RESTART_SEARCH
Mainly exposed here for testing.
|
PSEUDO_COST_SEARCH
If used, the solver uses the pseudo costs for branching.
|
RANDOMIZED_SEARCH
Randomized search.
|
Modifier and Type | Field and Description |
---|---|
static int |
AUTOMATIC_SEARCH_VALUE
Try to fix all literals using the underlying SAT solver's heuristics,
then generate and fix literals until integer variables are fixed.
|
static int |
FIXED_SEARCH_VALUE
If used then all decisions taken by the solver are made using a fixed
order as specified in the API or in the CpModelProto search_strategy
field.
|
static int |
HINT_SEARCH_VALUE
Mainly used internally.
|
static int |
LP_SEARCH_VALUE
If used, the solver will use heuristics from the LP relaxation.
|
static int |
PARTIAL_FIXED_SEARCH_VALUE
Similar to FIXED_SEARCH, but differ in how the variable not listed into
the fixed search heuristics are branched on.
|
static int |
PORTFOLIO_SEARCH_VALUE
Simple portfolio search used by LNS workers.
|
static int |
PORTFOLIO_WITH_QUICK_RESTART_SEARCH_VALUE
Mainly exposed here for testing.
|
static int |
PSEUDO_COST_SEARCH_VALUE
If used, the solver uses the pseudo costs for branching.
|
static int |
RANDOMIZED_SEARCH_VALUE
Randomized search.
|
Modifier and Type | Method and Description |
---|---|
static SatParameters.SearchBranching |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<SatParameters.SearchBranching> |
internalGetValueMap() |
static SatParameters.SearchBranching |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SatParameters.SearchBranching |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SatParameters.SearchBranching |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SatParameters.SearchBranching[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SatParameters.SearchBranching AUTOMATIC_SEARCH
Try to fix all literals using the underlying SAT solver's heuristics, then generate and fix literals until integer variables are fixed. New literals on integer variables are generated using the fixed search specified by the user or our default one.
AUTOMATIC_SEARCH = 0;
public static final SatParameters.SearchBranching FIXED_SEARCH
If used then all decisions taken by the solver are made using a fixed order as specified in the API or in the CpModelProto search_strategy field.
FIXED_SEARCH = 1;
public static final SatParameters.SearchBranching PORTFOLIO_SEARCH
Simple portfolio search used by LNS workers.
PORTFOLIO_SEARCH = 2;
public static final SatParameters.SearchBranching LP_SEARCH
If used, the solver will use heuristics from the LP relaxation. This exploit the reduced costs of the variables in the relaxation.
LP_SEARCH = 3;
public static final SatParameters.SearchBranching PSEUDO_COST_SEARCH
If used, the solver uses the pseudo costs for branching. Pseudo costs are computed using the historical change in objective bounds when some decision are taken. Note that this works whether we use an LP or not.
PSEUDO_COST_SEARCH = 4;
public static final SatParameters.SearchBranching PORTFOLIO_WITH_QUICK_RESTART_SEARCH
Mainly exposed here for testing. This quickly tries a lot of randomized heuristics with a low conflict limit. It usually provides a good first solution.
PORTFOLIO_WITH_QUICK_RESTART_SEARCH = 5;
public static final SatParameters.SearchBranching HINT_SEARCH
Mainly used internally. This is like FIXED_SEARCH, except we follow the solution_hint field of the CpModelProto rather than using the information provided in the search_strategy.
HINT_SEARCH = 6;
public static final SatParameters.SearchBranching PARTIAL_FIXED_SEARCH
Similar to FIXED_SEARCH, but differ in how the variable not listed into the fixed search heuristics are branched on. This will always start the search tree according to the specified fixed search strategy, but will complete it using the default automatic search.
PARTIAL_FIXED_SEARCH = 7;
public static final SatParameters.SearchBranching RANDOMIZED_SEARCH
Randomized search. Used to increase entropy in the search.
RANDOMIZED_SEARCH = 8;
public static final int AUTOMATIC_SEARCH_VALUE
Try to fix all literals using the underlying SAT solver's heuristics, then generate and fix literals until integer variables are fixed. New literals on integer variables are generated using the fixed search specified by the user or our default one.
AUTOMATIC_SEARCH = 0;
public static final int FIXED_SEARCH_VALUE
If used then all decisions taken by the solver are made using a fixed order as specified in the API or in the CpModelProto search_strategy field.
FIXED_SEARCH = 1;
public static final int PORTFOLIO_SEARCH_VALUE
Simple portfolio search used by LNS workers.
PORTFOLIO_SEARCH = 2;
public static final int LP_SEARCH_VALUE
If used, the solver will use heuristics from the LP relaxation. This exploit the reduced costs of the variables in the relaxation.
LP_SEARCH = 3;
public static final int PSEUDO_COST_SEARCH_VALUE
If used, the solver uses the pseudo costs for branching. Pseudo costs are computed using the historical change in objective bounds when some decision are taken. Note that this works whether we use an LP or not.
PSEUDO_COST_SEARCH = 4;
public static final int PORTFOLIO_WITH_QUICK_RESTART_SEARCH_VALUE
Mainly exposed here for testing. This quickly tries a lot of randomized heuristics with a low conflict limit. It usually provides a good first solution.
PORTFOLIO_WITH_QUICK_RESTART_SEARCH = 5;
public static final int HINT_SEARCH_VALUE
Mainly used internally. This is like FIXED_SEARCH, except we follow the solution_hint field of the CpModelProto rather than using the information provided in the search_strategy.
HINT_SEARCH = 6;
public static final int PARTIAL_FIXED_SEARCH_VALUE
Similar to FIXED_SEARCH, but differ in how the variable not listed into the fixed search heuristics are branched on. This will always start the search tree according to the specified fixed search strategy, but will complete it using the default automatic search.
PARTIAL_FIXED_SEARCH = 7;
public static final int RANDOMIZED_SEARCH_VALUE
Randomized search. Used to increase entropy in the search.
RANDOMIZED_SEARCH = 8;
public static SatParameters.SearchBranching[] values()
for (SatParameters.SearchBranching c : SatParameters.SearchBranching.values()) System.out.println(c);
public static SatParameters.SearchBranching valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static SatParameters.SearchBranching valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static SatParameters.SearchBranching forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SatParameters.SearchBranching> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static SatParameters.SearchBranching valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.