How can I speed up simulation of my Simulink model?

1 次查看(过去 30 天)
Hello sir, I have made a model in simulink and it is running from 2 days and now it reaches to 2 Percent only. So please help me in this regard.
  1 个评论
Alok Jain
Alok Jain 2016-12-28
I am using Solver Ode15s as other solver giving some error. I also used Accelerator mode but it doesnt increase the speed

请先登录,再进行评论。

回答(1 个)

Yair Altman
Yair Altman 2016-12-28
  2 个评论
Alok Jain
Alok Jain 2016-12-29
showing this after using Accelerator mode
### Building the Accelerator target for model: alok ### Generating code into build folder: C:\Users\ALOK\Desktop\51_houses\slprj\accel\alok N_PWORKS = 17 numParams = 10 nStates = 62 nInputs = 390 nOutputs = 501 nSwitch = 285 NPARAMS_TOTAL = 10 ### Invoking Target Language Compiler on alok.rtw ### Using System Target File: C:\Program Files\MATLAB\R2013b\rtw\c\accel\accel.tlc ### Loading TLC function libraries ..... ### Initial pass through model to cache user defined code ............................................................................... ............................................................................... ............................................................................... ............................................................................... ........................................................... ### Caching model source code ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ............................................. ### Writing header file alok_acc.h ### Writing header file alok_acc_types.h . ### Writing header file rtwtypes.h ### Writing header file multiword_types.h ### Writing header file rt_look1d.h . ### Writing source file rt_look1d.c ### Writing header file rt_look.h ### Writing source file rt_look.c . ### Writing source file alok_acc.c ### Writing header file alok_acc_private.h . ### Writing source file alok_acc_data.c ### Writing header file rt_nonfinite.h ### Writing source file rt_nonfinite.c . ### Writing header file rt_defines.h ### Writing header file rtGetInf.h . ### Writing source file rtGetInf.c ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.c . ### TLC code generation complete. . ### Processing Template Makefile: C:\Program Files\MATLAB\R2013b\rtw\c\accel\accel_lcc64.tmf ### Creating alok.mk from C:\Program Files\MATLAB\R2013b\rtw\c\accel\accel_lcc64.tmf ### Building alok: .\alok.bat
C:\Users\ALOK\Desktop\51_houses\slprj\accel\alok>set MATLAB=C:\Program Files\MATLAB\R2013b
C:\Users\ALOK\Desktop\51_houses\slprj\accel\alok>"C:\Program Files\MATLAB\R2013b\bin\win64\gmake" -f alok.mk C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\bin\lcc64 -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -DMX_COMPAT_32 -nodeclspec OPTIMFLAGS="-DNDEBUG" -I. -I../../.. -IC:/PROGRA~1/MATLAB/R2013b\simulink\include -IC:/PROGRA~1/MATLAB/R2013b\extern\include -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\custom -IC:/Users/ALOK/Desktop/51_houses/slprj/accel/alok -IC:/Users/ALOK/Desktop/51_houses -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\include64 C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64/mex/lccstub.c -o ./lccstub.obj C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\bin\lcc64 -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -DMX_COMPAT_32 -nodeclspec OPTIMFLAGS="-DNDEBUG" -I. -I../../.. -IC:/PROGRA~1/MATLAB/R2013b\simulink\include -IC:/PROGRA~1/MATLAB/R2013b\extern\include -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\custom -IC:/Users/ALOK/Desktop/51_houses/slprj/accel/alok -IC:/Users/ALOK/Desktop/51_houses -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\include64 -Foalok_acc.obj alok_acc.c C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\bin\lcc64 -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -DMX_COMPAT_32 -nodeclspec OPTIMFLAGS="-DNDEBUG" -I. -I../../.. -IC:/PROGRA~1/MATLAB/R2013b\simulink\include -IC:/PROGRA~1/MATLAB/R2013b\extern\include -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\custom -IC:/Users/ALOK/Desktop/51_houses/slprj/accel/alok -IC:/Users/ALOK/Desktop/51_houses -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\include64 -Foalok_acc_data.obj alok_acc_data.c C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\bin\lcc64 -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -DMX_COMPAT_32 -nodeclspec OPTIMFLAGS="-DNDEBUG" -I. -I../../.. -IC:/PROGRA~1/MATLAB/R2013b\simulink\include -IC:/PROGRA~1/MATLAB/R2013b\extern\include -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\custom -IC:/Users/ALOK/Desktop/51_houses/slprj/accel/alok -IC:/Users/ALOK/Desktop/51_houses -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\include64 -FortGetInf.obj rtGetInf.c C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\bin\lcc64 -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -DMX_COMPAT_32 -nodeclspec OPTIMFLAGS="-DNDEBUG" -I. -I../../.. -IC:/PROGRA~1/MATLAB/R2013b\simulink\include -IC:/PROGRA~1/MATLAB/R2013b\extern\include -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\custom -IC:/Users/ALOK/Desktop/51_houses/slprj/accel/alok -IC:/Users/ALOK/Desktop/51_houses -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\include64 -FortGetNaN.obj rtGetNaN.c C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\bin\lcc64 -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -DMX_COMPAT_32 -nodeclspec OPTIMFLAGS="-DNDEBUG" -I. -I../../.. -IC:/PROGRA~1/MATLAB/R2013b\simulink\include -IC:/PROGRA~1/MATLAB/R2013b\extern\include -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\custom -IC:/Users/ALOK/Desktop/51_houses/slprj/accel/alok -IC:/Users/ALOK/Desktop/51_houses -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\include64 -Fort_look.obj rt_look.c C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\bin\lcc64 -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -DMX_COMPAT_32 -nodeclspec OPTIMFLAGS="-DNDEBUG" -I. -I../../.. -IC:/PROGRA~1/MATLAB/R2013b\simulink\include -IC:/PROGRA~1/MATLAB/R2013b\extern\include -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\custom -IC:/Users/ALOK/Desktop/51_houses/slprj/accel/alok -IC:/Users/ALOK/Desktop/51_houses -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\include64 -Fort_look1d.obj rt_look1d.c C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\bin\lcc64 -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -DMX_COMPAT_32 -nodeclspec OPTIMFLAGS="-DNDEBUG" -I. -I../../.. -IC:/PROGRA~1/MATLAB/R2013b\simulink\include -IC:/PROGRA~1/MATLAB/R2013b\extern\include -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2013b\rtw\c\src\ext_mode\custom -IC:/Users/ALOK/Desktop/51_houses/slprj/accel/alok -IC:/Users/ALOK/Desktop/51_houses -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2013b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\include64 -Fort_nonfinite.obj rt_nonfinite.c ### Linking ... C:/PROGRA~1/MATLAB/R2013b\sys\lcc64\lcc64\bin\lcclnk64 -s -dll -o ../../../alok_acc.mexw64 -L"C:\Program Files\MATLAB\R2013b/sys/lcc64/lcc64/lib64" -entry LibMain alok_acc.def lccstub.obj alok_acc.obj alok_acc_data.obj rtGetInf.obj rtGetNaN.obj rt_look.obj rt_look1d.obj rt_nonfinite.obj C:/PROGRA~1/MATLAB/R2013b\extern\lib\win64\microsoft\libut.lib C:/PROGRA~1/MATLAB/R2013b\extern\lib\win64\microsoft\libmwmathutil.lib C:/PROGRA~1/MATLAB/R2013b\extern\lib\win64\microsoft\libmwsl_fileio.lib C:/PROGRA~1/MATLAB/R2013b\extern\lib\win64\microsoft\libmx.lib C:/PROGRA~1/MATLAB/R2013b\extern\lib\win64\microsoft\libmex.lib -map sfun.map ### Created mex file: alok_acc.mexw64 ### Successfully built the Accelerator target for model: alok >>
Kh zaa
Kh zaa 2018-7-6
I modeled a large power system in simulink (phasor mode) but it very slow. i am wondering if matlab can handle such of these system and if i can speed up my simulink simulation

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Embedded Coder 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by