public static enum MPSosConstraint.Type extends java.lang.Enum<MPSosConstraint.Type> implements com.google.protobuf.ProtocolMessageEnum
operations_research.MPSosConstraint.Type
Enum Constant and Description |
---|
SOS1_DEFAULT
At most one variable in `var_index` must be non-zero.
|
SOS2
At most two consecutive variables from `var_index` can be non-zero (i.e.
|
Modifier and Type | Field and Description |
---|---|
static int |
SOS1_DEFAULT_VALUE
At most one variable in `var_index` must be non-zero.
|
static int |
SOS2_VALUE
At most two consecutive variables from `var_index` can be non-zero (i.e.
|
Modifier and Type | Method and Description |
---|---|
static MPSosConstraint.Type |
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<MPSosConstraint.Type> |
internalGetValueMap() |
static MPSosConstraint.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MPSosConstraint.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MPSosConstraint.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MPSosConstraint.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MPSosConstraint.Type SOS1_DEFAULT
At most one variable in `var_index` must be non-zero.
SOS1_DEFAULT = 0;
public static final MPSosConstraint.Type SOS2
At most two consecutive variables from `var_index` can be non-zero (i.e. for some i, var_index[i] and var_index[i+1]). See https://en.wikipedia.org/wiki/Special_ordered_set#Types_of_SOS
SOS2 = 1;
public static final int SOS1_DEFAULT_VALUE
At most one variable in `var_index` must be non-zero.
SOS1_DEFAULT = 0;
public static final int SOS2_VALUE
At most two consecutive variables from `var_index` can be non-zero (i.e. for some i, var_index[i] and var_index[i+1]). See https://en.wikipedia.org/wiki/Special_ordered_set#Types_of_SOS
SOS2 = 1;
public static MPSosConstraint.Type[] values()
for (MPSosConstraint.Type c : MPSosConstraint.Type.values()) System.out.println(c);
public static MPSosConstraint.Type 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 MPSosConstraint.Type valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static MPSosConstraint.Type forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<MPSosConstraint.Type> 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 MPSosConstraint.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.