Hi there,
I am trying to generate these charge, outage and spillover variables.
I have a battery with size 50 and it starts off fully charged. When net demand is negative it is charging the battery although it can't be charged over 50. When net demand is positive it discharges but can't go below 0. I can't seem to generate a charge variable that is the previous value less net demand constrained within 50>charge>0 let alone have it prompt an outage or spillover record. I have some example values below, thanks in advance!
I am trying to generate these charge, outage and spillover variables.
I have a battery with size 50 and it starts off fully charged. When net demand is negative it is charging the battery although it can't be charged over 50. When net demand is positive it discharges but can't go below 0. I can't seem to generate a charge variable that is the previous value less net demand constrained within 50>charge>0 let alone have it prompt an outage or spillover record. I have some example values below, thanks in advance!
Net Demand | Charge | Outage | Spillover |
-12 | 50 | 12 | |
-8 | 50 | 8 | |
12 | 38 | ||
24 | 14 | ||
15 | 0 | -1 | |
-10 | 10 | ||
-22 | 32 | ||
-20 | 50 | 2 |
Comment