using rlSimulinkEnv reset function: how to access and modify variables in the matlab workspace
Mostra commenti meno recenti
I am training (or at least trying to) a DQN agent to act on a simulink model to react in some way to an input time series. I would like to train the model on a different random time series generated at the beginning of each training episode.
The time series is read from a Matlab workspace matrix with time column and value column as required and I have the matlab script that generates a random series.
The problem is that if I put my function in the initFcn callback for the system it seems that it is called only once at the beginning of the training process (so that I get always the same time series for each training episode), if I try to put the same function in the localResetFunction I defined for my rlSimulinkEnv, it does not seem to have access to the Matlab workspace.
Is there some way to do this ? I essentially need to call a script that modifies a Matlab workspace variable at the begining of each training episode.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Reinforcement Learning Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!