Google OR-Tools v9.14
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...

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]

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 8372 of file CpModel.pb.cs.

Constructor & Destructor Documentation

◆ SparsePermutationProto() [1/2]

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

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

◆ SparsePermutationProto() [2/2]

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

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

Member Function Documentation

◆ CalculateSize()

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

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

◆ Clone()

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

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

◆ Equals() [1/2]

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

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

◆ Equals() [2/2]

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

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

◆ GetHashCode()

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

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

◆ MergeFrom() [1/2]

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

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

◆ MergeFrom() [2/2]

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

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

◆ ToString()

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

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

◆ WriteTo()

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

Definition at line 8483 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 8433 of file CpModel.pb.cs.

◆ SupportFieldNumber

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

Field number for the "support" field.

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

Property Documentation

◆ CycleSizes

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

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

◆ Descriptor

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

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

◆ Parser

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

Definition at line 8381 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 8428 of file CpModel.pb.cs.


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