In Simulink unable to change the simulation time
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Roy Nordstrom
am 2 Feb. 2023
Beantwortet: Emmanouil Tzorakoleftherakis
am 3 Feb. 2023
I have the example project "Train DDPG Agent to swing up and balance pendulum" working OK.
However, I have been unsuccessful in changing the simulation time.
There is a variable in the workspace called Tf, but modfying it does not seem to have any effect on the duration of the simulation.
What am I missing here ?
0 Kommentare
Akzeptierte Antwort
Emmanouil Tzorakoleftherakis
am 3 Feb. 2023
During training, each episode/simulation will last for Tf seconds at most. It may end sooner depending on the value of MaxStepsPerEpisode option in training options. It could also end sooner if the IsDone flag that is defined inside the Simulink model becomes 1.
If you are not training and running regular simulations with the "Play" button, the simulation will last for whatever value is specified next to the Play button.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!