Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPSosConstraint.Type Enum Reference
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 Type valueOf (int value)
 
static Type forNumber (int value)
 
static com.google.protobuf.Internal.EnumLiteMap< TypeinternalGetValueMap ()
 
static final 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
 

Detailed Description

Protobuf enum operations_research.MPSosConstraint.Type

Definition at line 54 of file MPSosConstraint.java.

Member Function Documentation

◆ forNumber()

static 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 114 of file MPSosConstraint.java.

◆ getDescriptor()

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

Definition at line 143 of file MPSosConstraint.java.

◆ getDescriptorForType()

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

Definition at line 139 of file MPSosConstraint.java.

◆ getNumber()

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

Definition at line 96 of file MPSosConstraint.java.

◆ getValueDescriptor()

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

Definition at line 135 of file MPSosConstraint.java.

◆ internalGetValueMap()

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

Definition at line 123 of file MPSosConstraint.java.

◆ valueOf() [1/2]

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

Definition at line 149 of file MPSosConstraint.java.

◆ valueOf() [2/2]

static 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 106 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 63 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 83 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 73 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 93 of file MPSosConstraint.java.


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