![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
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. More...
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.
All demands must not contain any negative value in their domains. This is checked at validation. Even if there are no intervals, this constraint implicit enforces capacity >= 0. In other words, a negative capacity is considered valid but always infeasible.
Definition at line 2812 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. | |
| const int | IntervalsFieldNumber = 2 |
| Field number for the "intervals" field. | |
| const int | DemandsFieldNumber = 3 |
| Field number for the "demands" field. | |
Properties | |
| static pb::MessageParser< CumulativeConstraintProto > | Parser [get] |
| static pbr::MessageDescriptor | Descriptor [get] |
| global::Google.OrTools.Sat.LinearExpressionProto | Capacity [get, set] |
| pbc::RepeatedField< int > | Intervals [get] |
| pbc::RepeatedField< global::Google.OrTools.Sat.LinearExpressionProto > | Demands [get] |
| Same size as intervals. | |
|
inline |
Definition at line 2837 of file CpModel.pb.cs.
|
inline |
Definition at line 2845 of file CpModel.pb.cs.
|
inline |
Definition at line 2971 of file CpModel.pb.cs.
|
inline |
Definition at line 2854 of file CpModel.pb.cs.
|
inline |
Definition at line 2903 of file CpModel.pb.cs.
|
inline |
Definition at line 2897 of file CpModel.pb.cs.
|
inline |
Definition at line 2918 of file CpModel.pb.cs.
|
inline |
Definition at line 2986 of file CpModel.pb.cs.
|
inline |
Definition at line 3003 of file CpModel.pb.cs.
|
inline |
Definition at line 2931 of file CpModel.pb.cs.
|
inline |
Definition at line 2937 of file CpModel.pb.cs.
|
static |
Field number for the "capacity" field.
Definition at line 2859 of file CpModel.pb.cs.
|
static |
Field number for the "demands" field.
Definition at line 2882 of file CpModel.pb.cs.
|
static |
Field number for the "intervals" field.
Definition at line 2871 of file CpModel.pb.cs.
|
getset |
Definition at line 2863 of file CpModel.pb.cs.
|
get |
Same size as intervals.
Definition at line 2891 of file CpModel.pb.cs.
|
staticget |
Definition at line 2825 of file CpModel.pb.cs.
|
get |
Definition at line 2877 of file CpModel.pb.cs.
|
staticget |
Definition at line 2821 of file CpModel.pb.cs.