get_availability_breakpoints

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.

Parameters: 
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
Learn More: 

Step inside PMKC.

Example: 
function ()
        io.write('\n')
end
Class: 
P2Resource