How to speed up the simulation for a MPPT simulink model.

조회 수: 1 (최근 30일)
Sowmya
Sowmya 2025년 4월 11일
답변: Manikanta Aditya 2025년 4월 11일
I have a simulink and a matlab editor block inside it for MPPT model. This simulink model takes a lot of time to run. I have tried different solvers also. Need help so that the time is reduced for simulation.

답변 (1개)

Manikanta Aditya
Manikanta Aditya 2025년 4월 11일
Optimizing your Simulink model and MATLAB editor block for faster simulation can be challenging, but there are several strategies you can try:
  • Interpreted MATLAB Function blocks call the MATLAB execution engine at each time step, which can drastically slow down the simulation, so replace with MATLAB Function blocks.
  • Convert MATLAB file S-functions to subsystems or C-MEX file S-functions.
  • For physical models, implicit solvers like ode23t or ode15s can be more efficient. Ensure the maximum step size is set to auto unless specific requirements dictate otherwise.
  • Identify which blocks and components are contributing to the highest solver resets and zero crossings.
Refer to the following documentations:
I hope this helps you.

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by