question

shanice.c avatar image
0 Likes"
shanice.c asked shanice.c commented

Reinforcement learning example

Hello, recently I'm following this tutorial https://docs.flexsim.com/en/22.1/ModelLogic/ReinforcementLearning/Training/Training.html to train a reinforcement learning algorithm, and now I'm up to train a reinforcement learning algorithm step. Here's my problem, it stops at Initializing FlexSim environment... here for a while. I cannot see Python from TaskManager, so I cannot tell if it's running. I thought I've installed the module named 'gym' and packages 'stable_baselines3'. Thank you for your time!

1650466110655.png


1650466326652.png

FlexSim 22.0.0
reinforcement learning
1650466110655.png (781.9 KiB)
1650466326652.png (126.2 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered shanice.c commented

Did you follow the steps in the "Testing the Environment Connection" section? Did everything work properly during that step?

Did you properly modify the paths in the flexsim_training.py script to point to your FlexSim installation and model file correctly?

Adjust the verbose variable to True in the flexsim_training.py script and run it again so that it logs more information in the output.

Additionally, you can also adjust the visible variable to True in that script and run it to make the FlexSim process visible, which may also be helpful in debugging what is going wrong if something within the model is having issues.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

shanice.c avatar image shanice.c commented ·
@Phil BoBo Thank you! I went through the manual again, and now success with this example.
0 Likes 0 ·