Simulation with an RL Agent does not save simulation data
I have a reinforcement learning simulink model environment I am training in MATLAB 2023a, which I started porting to MATLAB 2024a. The model runs well in 2023a and saves the simulations done using the sim function. The environment has some signals that I want to save.
For the 2023a they got saved in the SimulationInfo object but that doesnt happen with 2024a. Do I have to activate something additionally in 2024a or is it a bug?
The images below detail the difference between the two versions. The env is a simulink envrionment
simEpisodes = 1;
simOpts = rlSimulationOptions("MaxSteps",1250,…
"NumSimulations", simEpisodes);
experience = sim(env,agent,simOpts);
save(strcat(results_dir,’/Experience.mat’),"experience")I have a reinforcement learning simulink model environment I am training in MATLAB 2023a, which I started porting to MATLAB 2024a. The model runs well in 2023a and saves the simulations done using the sim function. The environment has some signals that I want to save.
For the 2023a they got saved in the SimulationInfo object but that doesnt happen with 2024a. Do I have to activate something additionally in 2024a or is it a bug?
The images below detail the difference between the two versions. The env is a simulink envrionment
simEpisodes = 1;
simOpts = rlSimulationOptions("MaxSteps",1250,…
"NumSimulations", simEpisodes);
experience = sim(env,agent,simOpts);
save(strcat(results_dir,’/Experience.mat’),"experience") I have a reinforcement learning simulink model environment I am training in MATLAB 2023a, which I started porting to MATLAB 2024a. The model runs well in 2023a and saves the simulations done using the sim function. The environment has some signals that I want to save.
For the 2023a they got saved in the SimulationInfo object but that doesnt happen with 2024a. Do I have to activate something additionally in 2024a or is it a bug?
The images below detail the difference between the two versions. The env is a simulink envrionment
simEpisodes = 1;
simOpts = rlSimulationOptions("MaxSteps",1250,…
"NumSimulations", simEpisodes);
experience = sim(env,agent,simOpts);
save(strcat(results_dir,’/Experience.mat’),"experience") machine learning, deep learning, artificial intelligence, bug, reinforcement learning MATLAB Answers — New Questions