Function that returns the maximum power a genset.
(self, load, max_operating_loading = 0.9)
| 376 | return size |
| 377 | |
| 378 | def _size_genset(self, load, max_operating_loading = 0.9): |
| 379 | """ Function that returns the maximum power a genset. """ |
| 380 | #random number > 3 < 20 |
| 381 | # polynomial for fuel consumption |
| 382 | |
| 383 | _size_genset = int(np.ceil(np.max(load, axis=0)/max_operating_loading)) |
| 384 | |
| 385 | return _size_genset |
| 386 | |
| 387 | |
| 388 | def _size_battery(self, load): |
no outgoing calls