Function that returns the capacity of the battery, equivalent to 3 to 5 hours of mean load.
(self, load)
| 386 | |
| 387 | |
| 388 | def _size_battery(self, load): |
| 389 | """ Function that returns the capacity of the battery, equivalent to 3 to 5 hours of mean load. """ |
| 390 | #energy duration |
| 391 | battery = int(np.ceil(np.random.randint(low=3,high=6)*np.mean(load, axis=0).item())) |
| 392 | return battery |
| 393 | |
| 394 | |
| 395 | ########################################### |