Get the start time and corresponding availability for a renewable resource on a given breakpoint.
The breakpoints define start dates where the resource availability changes as set in the P2Resource:add_breakpoint_to_availability function. The number of breakpoints that have been set can be found by the P2Resource:get_number_of_availability_breakpoints function. The ID of the breakpoint is an input argument of the function and ranges from zero to the number of breakpoints - 1.
I/O | Type | Name | Description |
---|---|---|---|
input | integer | ID | resource ID |
input | integer | breakpoint ID | ID of breakpoint start date |
output | integer | start time | time at which the availability starts |
output | float | availability | resource availability |
Step inside PMKC.