Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.Sat.SparsePermutationProto Class Referencesealed

A permutation of integers encoded as a list of cycles, hence the "sparse" format. The image of an element cycle[i] is cycle[(i + 1) % cycle_length]. More...

Detailed Description

A permutation of integers encoded as a list of cycles, hence the "sparse" format. The image of an element cycle[i] is cycle[(i + 1) % cycle_length].

Definition at line 8345 of file CpModel.pb.cs.

Inheritance diagram for Google.OrTools.Sat.SparsePermutationProto:

Public Member Functions

 SparsePermutationProto ()
 SparsePermutationProto (SparsePermutationProto other)
SparsePermutationProto Clone ()
override bool Equals (object other)
bool Equals (SparsePermutationProto other)
override int GetHashCode ()
override string ToString ()
void WriteTo (pb::CodedOutputStream output)
int CalculateSize ()
void MergeFrom (SparsePermutationProto other)
void MergeFrom (pb::CodedInputStream input)

Static Public Attributes

const int SupportFieldNumber = 1
 Field number for the "support" field.
const int CycleSizesFieldNumber = 2
 Field number for the "cycle_sizes" field.

Properties

static pb::MessageParser< SparsePermutationProtoParser [get]
static pbr::MessageDescriptor Descriptor [get]
pbc::RepeatedField< int > Support [get]
 Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.
pbc::RepeatedField< int > CycleSizes [get]

Constructor & Destructor Documentation

◆ SparsePermutationProto() [1/2]

Google.OrTools.Sat.SparsePermutationProto.SparsePermutationProto ( )
inline

Definition at line 8370 of file CpModel.pb.cs.

◆ SparsePermutationProto() [2/2]

Google.OrTools.Sat.SparsePermutationProto.SparsePermutationProto ( SparsePermutationProto other)
inline

Definition at line 8378 of file CpModel.pb.cs.

Member Function Documentation

◆ CalculateSize()

int Google.OrTools.Sat.SparsePermutationProto.CalculateSize ( )
inline

Definition at line 8482 of file CpModel.pb.cs.

◆ Clone()

SparsePermutationProto Google.OrTools.Sat.SparsePermutationProto.Clone ( )
inline

Definition at line 8386 of file CpModel.pb.cs.

◆ Equals() [1/2]

override bool Google.OrTools.Sat.SparsePermutationProto.Equals ( object other)
inline

Definition at line 8418 of file CpModel.pb.cs.

◆ Equals() [2/2]

bool Google.OrTools.Sat.SparsePermutationProto.Equals ( SparsePermutationProto other)
inline

Definition at line 8424 of file CpModel.pb.cs.

◆ GetHashCode()

override int Google.OrTools.Sat.SparsePermutationProto.GetHashCode ( )
inline

Definition at line 8438 of file CpModel.pb.cs.

◆ MergeFrom() [1/2]

void Google.OrTools.Sat.SparsePermutationProto.MergeFrom ( pb.CodedInputStream input)
inline

Definition at line 8505 of file CpModel.pb.cs.

◆ MergeFrom() [2/2]

void Google.OrTools.Sat.SparsePermutationProto.MergeFrom ( SparsePermutationProto other)
inline

Definition at line 8494 of file CpModel.pb.cs.

◆ ToString()

override string Google.OrTools.Sat.SparsePermutationProto.ToString ( )
inline

Definition at line 8450 of file CpModel.pb.cs.

◆ WriteTo()

void Google.OrTools.Sat.SparsePermutationProto.WriteTo ( pb.CodedOutputStream output)
inline

Definition at line 8456 of file CpModel.pb.cs.

Member Data Documentation

◆ CycleSizesFieldNumber

const int Google.OrTools.Sat.SparsePermutationProto.CycleSizesFieldNumber = 2
static

Field number for the "cycle_sizes" field.

Definition at line 8406 of file CpModel.pb.cs.

◆ SupportFieldNumber

const int Google.OrTools.Sat.SparsePermutationProto.SupportFieldNumber = 1
static

Field number for the "support" field.

Definition at line 8391 of file CpModel.pb.cs.

Property Documentation

◆ CycleSizes

pbc.RepeatedField<int> Google.OrTools.Sat.SparsePermutationProto.CycleSizes
get

Definition at line 8412 of file CpModel.pb.cs.

◆ Descriptor

pbr.MessageDescriptor Google.OrTools.Sat.SparsePermutationProto.Descriptor
staticget

Definition at line 8358 of file CpModel.pb.cs.

◆ Parser

pb.MessageParser<SparsePermutationProto> Google.OrTools.Sat.SparsePermutationProto.Parser
staticget

Definition at line 8354 of file CpModel.pb.cs.

◆ Support

pbc.RepeatedField<int> Google.OrTools.Sat.SparsePermutationProto.Support
get

Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.

Definition at line 8401 of file CpModel.pb.cs.


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