[[["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\u003eThis document is a C++ reference for the \u003ccode\u003eCumulativeConstraint\u003c/code\u003e class, automatically generated from the source code.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCumulativeConstraint\u003c/code\u003e class has a method called \u003ccode\u003eAddDemand\u003c/code\u003e for adding pairs of interval variables and linear expressions to the constraint.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddDemand\u003c/code\u003e method takes an \u003ccode\u003eIntervalVar\u003c/code\u003e named \u003ccode\u003einterval\u003c/code\u003e and a \u003ccode\u003eLinearExpr\u003c/code\u003e named \u003ccode\u003edemand\u003c/code\u003e as arguments, and returns void.\u003c/p\u003e\n"]]],["The `CumulativeConstraint` class in C++ offers a method called `AddDemand`. This method adds a pair of an `IntervalVar` and a `LinearExpr` (representing a demand) to the constraint. The method has a `void` return type and takes two arguments: an `IntervalVar` named `interval`, and a `LinearExpr` named `demand`. This effectively links an interval to a specific demand within the constraint.\n"],null,["# CumulativeConstraint\n\nC++ Reference: class CumulativeConstraint\n=========================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [`AddDemand`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model.h#L702) | Return type: `void ` Arguments: `IntervalVar interval, LinearExpr demand` Adds a pair (interval, demand) to the constraint. |"]]