Package com.google.ortools.linearsolver
Enum MPSosConstraint.Type
- java.lang.Object
-
- java.lang.Enum<MPSosConstraint.Type>
-
- com.google.ortools.linearsolver.MPSosConstraint.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<MPSosConstraint.Type>
- Enclosing class:
- MPSosConstraint
public static enum MPSosConstraint.Type extends java.lang.Enum<MPSosConstraint.Type> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumoperations_research.MPSosConstraint.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SOS1_DEFAULTAt most one variable in `var_index` must be non-zero.SOS2At most two consecutive variables from `var_index` can be non-zero (i.e.
-
Field Summary
Fields Modifier and Type Field Description static intSOS1_DEFAULT_VALUEAt most one variable in `var_index` must be non-zero.static intSOS2_VALUEAt most two consecutive variables from `var_index` can be non-zero (i.e.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MPSosConstraint.TypeforNumber(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<MPSosConstraint.Type>internalGetValueMap()static MPSosConstraint.TypevalueOf(int value)Deprecated.static MPSosConstraint.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static MPSosConstraint.TypevalueOf(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.
-
-
-
Enum Constant Detail
-
SOS1_DEFAULT
public static final MPSosConstraint.Type SOS1_DEFAULT
At most one variable in `var_index` must be non-zero.
SOS1_DEFAULT = 0;
-
SOS2
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;
-
-
Field Detail
-
SOS1_DEFAULT_VALUE
public static final int SOS1_DEFAULT_VALUE
At most one variable in `var_index` must be non-zero.
SOS1_DEFAULT = 0;- See Also:
- Constant Field Values
-
SOS2_VALUE
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;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static MPSosConstraint.Type[] 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 (MPSosConstraint.Type c : MPSosConstraint.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MPSosConstraint.Type 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 MPSosConstraint.Type 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 MPSosConstraint.Type 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<MPSosConstraint.Type> 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 MPSosConstraint.Type 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
-
-