Fast Accelerator

RapidAcceleratorUpToDateCheck = off
To assist with that, Fast Accelerator has an choice to skip this examine and immediately use the already current executable, if one already exists.

Let’s outline a vector of coefficients we need to simulate for:
k_values = [-0.9:0.1:-0.1];
- Simulate the mannequin in Fast Accelerator mode
- Skip the up-to-date examine
- Run one simulation per coefficient of restitution worth
in(1:size(k_values)) = Simulink.SimulationInput(mdl);
for i = 1:size(k_values)
in(i) = in(i).setModelParameter(‘SimulationMode’,‘Fast’);
in(i) = in(i).setModelParameter(‘RapidAcceleratorUpToDateCheck’,‘off’);
in(i) = in(i).setVariable(‘ok’,k_values(i));
And that is it, we are able to simulate the mannequin for all these values:
out = sim(in,‘ShowProgress’,‘off’);
plot(out(i).logsout.get(‘Place’).Values)
finish
What if I modified the mannequin?
Simulink.BlockDiagram.buildRapidAcceleratorTarget(mdl);
Now it is your flip
Give {that a} attempt to tell us what you assume by leaving a remark under.