DotNet Reference

DotNet Reference

CumulativeConstraintProto

Detailed Description

The sum of the demands of the intervals at each interval point cannot exceed a capacity.

Note that intervals are interpreted as [start, end) and as such intervals like [2,3) and [3,4) do not overlap for the point of view of this constraint. Moreover, intervals of size zero are ignored.

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

Public Member Functions

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

Static Public Attributes

const int CapacityFieldNumber = 1
 Field number for the "capacity" field. More...
 
const int IntervalsFieldNumber = 2
 Field number for the "intervals" field. More...
 
const int DemandsFieldNumber = 3
 Field number for the "demands" field. More...
 

Properties

static pb::MessageParser< CumulativeConstraintProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
int Capacity [get, set]
 
pbc::RepeatedField< int > Intervals [get]
 
pbc::RepeatedField< int > Demands [get]
 Same size as intervals. More...
 

Constructor & Destructor Documentation

◆ CumulativeConstraintProto() [1/2]

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

◆ CumulativeConstraintProto() [2/2]

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

Member Function Documentation

◆ CalculateSize()

int CalculateSize ( )
inline

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

◆ Clone()

CumulativeConstraintProto Clone ( )
inline

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

◆ Equals() [1/2]

bool Equals ( CumulativeConstraintProto  other)
inline

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

◆ Equals() [2/2]

override bool Equals ( object  other)
inline

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

◆ GetHashCode()

override int GetHashCode ( )
inline

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

◆ MergeFrom() [1/2]

void MergeFrom ( CumulativeConstraintProto  other)
inline

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

◆ MergeFrom() [2/2]

void MergeFrom ( pb::CodedInputStream  input)
inline

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

◆ ToString()

override string ToString ( )
inline

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

◆ WriteTo()

void WriteTo ( pb::CodedOutputStream  output)
inline

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

Member Data Documentation

◆ CapacityFieldNumber

const int CapacityFieldNumber = 1
static

Field number for the "capacity" field.

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

◆ DemandsFieldNumber

const int DemandsFieldNumber = 3
static

Field number for the "demands" field.

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

◆ IntervalsFieldNumber

const int IntervalsFieldNumber = 2
static

Field number for the "intervals" field.

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

Property Documentation

◆ Capacity

int Capacity
getset

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

◆ Demands

pbc.RepeatedField<int> Demands
get

Same size as intervals.

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

◆ Descriptor

pbr.MessageDescriptor Descriptor
staticget

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

◆ Intervals

pbc.RepeatedField<int> Intervals
get

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

◆ Parser

pb.MessageParser<CumulativeConstraintProto> Parser
staticget

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


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