필터 지우기
필터 지우기

Simulink simulation initiation time

조회 수: 1 (최근 30일)
Max
Max 2015년 10월 20일
I am trying to speed up a simulation. When I query the simulation meta data using the following commands:
SimOut = sim(mdl,solverOpts); SimMetaData = SimOut.getSimulationMetadata();
I learn that most of the simulation time is spent in the initiation phase, rather than the execution phase of the simulation:
tI = SimMetaData.TimingInfo.InitializationElapsedWallTime; tE = SimMetaData.TimingInfo.ExecutionElapsedWallTime;
tI is about 7 times larger than tE. tE appears to be the time for actual integration as it is affected by the solver tolerance, step size, etc, whereas tI is not. Does anyone know how I can reduce initialization time? I suspect that this might also be the Update Diagram time, so reducing that might also help. Thank you.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by