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

The constraint target = vars[index]. This enforces that index takes one of the value in [0, vars_size()). More...

Inheritance diagram for Google.OrTools.Sat.ElementConstraintProto:

Public Member Functions

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

Static Public Attributes

const int IndexFieldNumber = 1
 Field number for the "index" field.
 
const int TargetFieldNumber = 2
 Field number for the "target" field.
 
const int VarsFieldNumber = 3
 Field number for the "vars" field.
 

Properties

static pb::MessageParser< ElementConstraintProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
int Index [get, set]
 
int Target [get, set]
 
pbc::RepeatedField< int > Vars [get]
 

Detailed Description

The constraint target = vars[index]. This enforces that index takes one of the value in [0, vars_size()).

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

Constructor & Destructor Documentation

◆ ElementConstraintProto() [1/2]

Google.OrTools.Sat.ElementConstraintProto.ElementConstraintProto ( )
inline

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

◆ ElementConstraintProto() [2/2]

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

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

Member Function Documentation

◆ CalculateSize()

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

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

◆ Clone()

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

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

◆ Equals() [1/2]

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

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

◆ Equals() [2/2]

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

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

◆ GetHashCode()

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

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

◆ MergeFrom() [1/2]

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

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

◆ MergeFrom() [2/2]

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

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

◆ ToString()

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

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

◆ WriteTo()

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

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

Member Data Documentation

◆ IndexFieldNumber

const int Google.OrTools.Sat.ElementConstraintProto.IndexFieldNumber = 1
static

Field number for the "index" field.

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

◆ TargetFieldNumber

const int Google.OrTools.Sat.ElementConstraintProto.TargetFieldNumber = 2
static

Field number for the "target" field.

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

◆ VarsFieldNumber

const int Google.OrTools.Sat.ElementConstraintProto.VarsFieldNumber = 3
static

Field number for the "vars" field.

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

Property Documentation

◆ Descriptor

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

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

◆ Index

int Google.OrTools.Sat.ElementConstraintProto.Index
getset

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

◆ Parser

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

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

◆ Target

int Google.OrTools.Sat.ElementConstraintProto.Target
getset

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

◆ Vars

pbc.RepeatedField<int> Google.OrTools.Sat.ElementConstraintProto.Vars
get

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


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