Effacer les filtres
Effacer les filtres

Reinforcement Learning Agents generating zero episode

1 vue (au cours des 30 derniers jours)
Hamid Fazeli
Hamid Fazeli le 1 Oct 2022
Hello Matlab community,
I faced an issue for training a multiple agent problem in Matlab/Simulink. I tried to solve a very simple problem; however, training stops at episode 1.
Suppose that we have three discrete variables A=[1 2 3], B=[1 2 3], C=[1 2 3].
Reward function = A*B*C;
Observation= A+B+C;
I tried different parameters but it didn’t work. I attached the sample file for the reference. Very appreciate it if you can suggest potential solution to solve convergence issue.
Thanks for your time 😊

Réponse acceptée

Ari Biswas
Ari Biswas le 4 Oct 2022
There is an issue with the way you specified the reset function. Your function resetRobots should return a Simulink.SimulationInput object, which is also an input argument to the function. So for e.g. the correct function signature should be:
function in = resetRobots(in, var1, var2, var3)
% write reset code
end
See this example to see how reset functions can be defined.
  1 commentaire
Hamid Fazeli
Hamid Fazeli le 19 Oct 2022
Hi Ari,
Thank you so much for the suggestion. The problem was reset function. It was fixed :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Training and Simulation dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by