MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / _size_genset

Method _size_genset

src/pymgrid/MicrogridGenerator.py:378–385  ·  view source on GitHub ↗

Function that returns the maximum power a genset.

(self, load, max_operating_loading = 0.9)

Source from the content-addressed store, hash-verified

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):

Callers 2

_size_mgMethod · 0.95
test_size_gensetMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_size_gensetMethod · 0.64