Stay organized with collections
Save and categorize content based on your preferences.
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.
Method |
Propagate | Return type: bool |
ReservoirTimeTabling | Arguments: const std::vector<AffineExpression>& times,
const std::vector<IntegerValue>& deltas,
const std::vector<Literal>& presences,
IntegerValue capacity, Model* model |
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 `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"],null,[]]