How to control power source base on load condition in Matlab/simulink

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 4K views
arabianights
Messages
68
Reaction score
8
hi

i'm using Matlab/simulink to create a microgrid model which simulate dynamic control of power based on the loads. the loads are changing based on the realtime. I use several voltage sources to power the loads. I would like to be able to turn on/off the generator based on the loads. for example, when there's more power needed, an extra power source will be brought online.
if the loads need less power, a power source will be taken offline.

any suggestion on how to control the power source based on the loads?

thanks
 
Physics news on Phys.org
You could try using an 'If Block' in simulink and have your output going into an 'If action'. Then the output of these if action blocks could be represented by a number and you then merge all of the if actions to get a continuous variable. You could then link the output of the merge into the part of your model which controls power or what not.

I'm not an expert but with some playing around I'm sure you could get this to work.