Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPSosConstraint.Type Enum Reference

Detailed Description

Protobuf enum operations_research.MPSosConstraint.Type

Definition at line 58 of file MPSosConstraint.java.

Inheritance diagram for com.google.ortools.linearsolver.MPSosConstraint.Type:

Public Member Functions

final int getNumber ()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor ()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType ()

Static Public Member Functions

 [static initializer]
static Type valueOf (int value)
static Type forNumber (int value)
static com.google.protobuf.Internal.EnumLiteMap< Type > internalGetValueMap ()
static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor ()
static Type valueOf (com.google.protobuf.Descriptors.EnumValueDescriptor desc)

Public Attributes

 SOS1_DEFAULT =(0)
 SOS2 =(1)

Static Public Attributes

static final int SOS1_DEFAULT_VALUE = 0
static final int SOS2_VALUE = 1

Member Function Documentation

◆ [static initializer]()

com.google.ortools.linearsolver.MPSosConstraint.Type.[static initializer]
static

◆ forNumber()

Type com.google.ortools.linearsolver.MPSosConstraint.Type.forNumber ( int value)
static
Parameters
valueThe numeric wire value of the corresponding enum entry.
Returns
The enum associated with the given numeric wire value.

Definition at line 127 of file MPSosConstraint.java.

◆ getDescriptor()

com.google.protobuf.Descriptors.EnumDescriptor com.google.ortools.linearsolver.MPSosConstraint.Type.getDescriptor ( )
static

Definition at line 156 of file MPSosConstraint.java.

◆ getDescriptorForType()

final com.google.protobuf.Descriptors.EnumDescriptor com.google.ortools.linearsolver.MPSosConstraint.Type.getDescriptorForType ( )

Definition at line 152 of file MPSosConstraint.java.

◆ getNumber()

final int com.google.ortools.linearsolver.MPSosConstraint.Type.getNumber ( )

Definition at line 109 of file MPSosConstraint.java.

◆ getValueDescriptor()

final com.google.protobuf.Descriptors.EnumValueDescriptor com.google.ortools.linearsolver.MPSosConstraint.Type.getValueDescriptor ( )

Definition at line 148 of file MPSosConstraint.java.

◆ internalGetValueMap()

com.google.protobuf.Internal.EnumLiteMap< Type > com.google.ortools.linearsolver.MPSosConstraint.Type.internalGetValueMap ( )
static

Definition at line 136 of file MPSosConstraint.java.

◆ valueOf() [1/2]

Type com.google.ortools.linearsolver.MPSosConstraint.Type.valueOf ( com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static

Definition at line 162 of file MPSosConstraint.java.

◆ valueOf() [2/2]

Type com.google.ortools.linearsolver.MPSosConstraint.Type.valueOf ( int value)
static
Parameters
valueThe numeric wire value of the corresponding enum entry.
Returns
The enum associated with the given numeric wire value.
Deprecated
Use forNumber(int) instead.

Definition at line 119 of file MPSosConstraint.java.

Member Data Documentation

◆ SOS1_DEFAULT

com.google.ortools.linearsolver.MPSosConstraint.Type.SOS1_DEFAULT =(0)
At most one variable in `var_index` must be non-zero.

SOS1_DEFAULT = 0;

Definition at line 67 of file MPSosConstraint.java.

◆ SOS1_DEFAULT_VALUE

final int com.google.ortools.linearsolver.MPSosConstraint.Type.SOS1_DEFAULT_VALUE = 0
static
At most one variable in `var_index` must be non-zero.

SOS1_DEFAULT = 0;

Definition at line 96 of file MPSosConstraint.java.

◆ SOS2

com.google.ortools.linearsolver.MPSosConstraint.Type.SOS2 =(1)
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;

Definition at line 77 of file MPSosConstraint.java.

◆ SOS2_VALUE

final int com.google.ortools.linearsolver.MPSosConstraint.Type.SOS2_VALUE = 1
static
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;

Definition at line 106 of file MPSosConstraint.java.


The documentation for this enum was generated from the following file: