C++ Reference: cumulative
Note: This documentation is automatically generated.
Function |
Type |
Arguments |
Comments |
Cumulative | Return type: std::function<void(Model*)> Arguments: const std::vector<IntervalVariable>& vars, const std::vector<AffineExpression>& demands, AffineExpression capacity, SchedulingConstraintHelper* helper = nullptr |
CumulativeTimeDecomposition | Return type: std::function<void(Model*)> Arguments: const std::vector<IntervalVariable>& vars, const std::vector<AffineExpression>& demands, AffineExpression capacity, SchedulingConstraintHelper* helper = nullptr |
CumulativeUsingReservoir | Return type: std::function<void(Model*)> Arguments: const std::vector<IntervalVariable>& vars, const std::vector<AffineExpression>& demands, AffineExpression capacity, SchedulingConstraintHelper* helper = nullptr |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["The C++ reference for 'cumulative' focuses on scheduling constraints related to resource capacity and demand."],["Three primary functions are outlined: `Cumulative`, `CumulativeTimeDecomposition`, and `CumulativeUsingReservoir`, each accepting interval variables, demands, and capacity as arguments."],["These functions assist in modeling and solving scheduling problems where tasks compete for a limited resource over time."]]],["The C++ code defines three functions related to cumulative scheduling constraints: `Cumulative`, `CumulativeTimeDecomposition`, and `CumulativeUsingReservoir`. Each function takes a vector of `IntervalVariable`s, a vector of `AffineExpression`s representing demands, and an `AffineExpression` for capacity. An optional `SchedulingConstraintHelper` pointer is also accepted. These functions return a `std::function\u003cvoid(Model*)\u003e`, designed to be used to build constraint within a scheduling `Model`.\n"]]