Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class CumulativeEnergyConstraint
Note: This documentation is automatically generated.
Implementation of AddCumulativeOverloadChecker().
Method |
CumulativeEnergyConstraint | Arguments: AffineExpression capacity,
SchedulingConstraintHelper* helper,
SchedulingDemandHelper* demands, Model* model |
Propagate | Return type: bool |
RegisterWith | Return type: void Arguments: GenericLiteralWatcher* watcher |
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 `CumulativeEnergyConstraint` class in C++ implements an overload checker (`AddCumulativeOverloadChecker`). It provides three core methods: `CumulativeEnergyConstraint`, the class constructor, takes `capacity`, `helper`, `demands`, and `model` as arguments. `Propagate` returns a boolean, and `RegisterWith` takes a `GenericLiteralWatcher` as an argument and returns void. These functions manage and interact with scheduling constraints, demand helpers, and a model, respectively, within the `or-tools` library.\n"],null,[]]