public static enum SatParameters.Polarity extends java.lang.Enum<SatParameters.Polarity> implements com.google.protobuf.ProtocolMessageEnum
Specifies the initial polarity (true/false) when the solver branches on a variable. This can be modified later by the user, or the phase saving heuristic. Note(user): POLARITY_FALSE is usually a good choice because of the "natural" way to express a linear boolean problem.Protobuf enum
operations_research.sat.SatParameters.Polarity
Enum Constant and Description |
---|
POLARITY_FALSE
POLARITY_FALSE = 1; |
POLARITY_RANDOM
POLARITY_RANDOM = 2; |
POLARITY_TRUE
POLARITY_TRUE = 0; |
Modifier and Type | Field and Description |
---|---|
static int |
POLARITY_FALSE_VALUE
POLARITY_FALSE = 1; |
static int |
POLARITY_RANDOM_VALUE
POLARITY_RANDOM = 2; |
static int |
POLARITY_TRUE_VALUE
POLARITY_TRUE = 0; |
Modifier and Type | Method and Description |
---|---|
static SatParameters.Polarity |
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.Polarity> |
internalGetValueMap() |
static SatParameters.Polarity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SatParameters.Polarity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SatParameters.Polarity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SatParameters.Polarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SatParameters.Polarity POLARITY_TRUE
POLARITY_TRUE = 0;
public static final SatParameters.Polarity POLARITY_FALSE
POLARITY_FALSE = 1;
public static final SatParameters.Polarity POLARITY_RANDOM
POLARITY_RANDOM = 2;
public static final int POLARITY_TRUE_VALUE
POLARITY_TRUE = 0;
public static final int POLARITY_FALSE_VALUE
POLARITY_FALSE = 1;
public static final int POLARITY_RANDOM_VALUE
POLARITY_RANDOM = 2;
public static SatParameters.Polarity[] values()
for (SatParameters.Polarity c : SatParameters.Polarity.values()) System.out.println(c);
public static SatParameters.Polarity 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.Polarity valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static SatParameters.Polarity forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SatParameters.Polarity> 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.Polarity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.