HOMER Knowledge Base
MATLAB Dispatch: AC Generator, AC Load, Battery and Flywheel
This dispatch sets the battery to serve both the load and flywheel parasitic load. The generator is committed in case of shortage.
https://homerenergy.com/static/documents/AC_Load_AC_Gen_Battery_FW.zip
https://homerenergy.com/static/documents/AC_Load_AC_Gen_Battery_FW.zip