Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class ReservoirTimeTabling
Note: This documentation is automatically generated.
The piecewise constant function must be below the given capacity. The initial
function value is zero. Note that a negative capacity will thus be trivially
infeasible.
Note that we take for the definition of the function at time t to be the sum
of all delta with time <= t. But because we check for the capacity over the
full horizon, we could have taken < t with no behavior change.
[[["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."],[[["The `ReservoirTimeTabling` constraint enforces that a piecewise constant function, defined by intervals, deltas, and presences, remains below a given capacity."],["The function's value at any time is the cumulative sum of deltas for intervals ending before or at that time, starting from an initial value of zero."],["Negative capacity values automatically render the constraint infeasible."],["The `Propagate` method is used for constraint propagation and returns a boolean value."],["The constraint is initialized with interval start times, delta values for each interval, presence literals for intervals, the capacity limit, and a pointer to the optimization model."]]],["The `ReservoirTimeTabling` class in C++ defines a piecewise constant function that must stay below a given capacity. The function's value at any time is the sum of all deltas up to that time, with an initial value of zero. Key actions include defining the function using times, deltas, presences, and a capacity. The `Propagate` method, with a `bool` return type, and the `ReservoirTimeTabling` method itself are provided. A negative capacity is considered trivially infeasible.\n"]]