Please i need idea how to simulate a microcontroller that can monitor and coordinate output power of hybrid microgrid (pv, wind, battery and microturbine as a back-up). the work of the microcontroller is to check the available energy of each sources and select or combine the sources for the load demand. if a load demand is 150kw and pv is generating 50kw and windturbine is generating 110kw, it should select pv and windturbine at that moment and if the energy demand is higher than energy generaing it should select microturbine.
what are the parameter i need to consider and how do i go about it, and can it be simulated with simulink? thank you