[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCumulativeEnergyConstraint\u003c/code\u003e class in C++ is used to implement the \u003ccode\u003eAddCumulativeOverloadChecker()\u003c/code\u003e functionality within the OR-Tools library.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides methods like \u003ccode\u003ePropagate\u003c/code\u003e for constraint propagation and \u003ccode\u003eRegisterWith\u003c/code\u003e for registering with a literal watcher.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor of \u003ccode\u003eCumulativeEnergyConstraint\u003c/code\u003e takes an affine expression for capacity, scheduling constraint and demand helpers, and the model as arguments.\u003c/p\u003e\n"]]],["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,["# CumulativeEnergyConstraint\n\nC++ Reference: class CumulativeEnergyConstraint\n===============================================\n\n\nNote: This documentation is automatically generated.\nImplementation of AddCumulativeOverloadChecker().\n\n| Method ||\n|------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [`CumulativeEnergyConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cumulative_energy.h#L50) | \u003cbr /\u003e Arguments: `AffineExpression capacity, SchedulingConstraintHelper* helper, SchedulingDemandHelper* demands, Model* model` \u003cbr /\u003e |\n| [`Propagate`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cumulative_energy.h#L54) | Return type: `bool ` \u003cbr /\u003e |\n| [`RegisterWith`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cumulative_energy.h#L55) | Return type: `void ` Arguments: `GenericLiteralWatcher* watcher` \u003cbr /\u003e |"]]