Can I run a parameter sweep for Load-Flow Analysis programmatically when using a powergui block?

Can I run a parameter sweep for Load-Flow Analysis programmatically when using a powergui block?

 Accepted Answer

Load-Flow Analysis can be performed programmatically using the “power_loadflow” function. Please refer to the following link for further information:
For the case in which you would like to run a parameter sweep with subsequent Load-Flow Analysis programmatically, you can either add this line to the for loop that simulates the model or in the callbacks of the model. Please refer to the following links for more information on model callbacks:
Depending on whether you would like to run the Load-Flow Analysis before or after each simulation, you can choose to add the command for Load-Flow Analysis in the “StartFcn” or “StopFcn” model callback.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!