question

Lion avatar image
0 Likes"
Lion asked Lion commented

Reinforcement Learning Flexsim training Problem

i have tried to returning two things . But I found Error in this section1.png

I went back and looked here: stap wants to return 5 values, right?

2.png

I'm not sure how to fix it. Please Help Me

- I have a less basic python. T T The data file I'm working on.
flexsim_env.py

flexsim_inference.py

flexsim_training.py

FlexSim 23.0.0
bugreinforcement learningflexism
1.png (204.3 KiB)
2.png (43.8 KiB)
flexsim-env.py (7.6 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

·
Kavika F avatar image
0 Likes"
Kavika F answered Lion commented

@Lion, the flexsim-env.py file has step returning 5 things. That's because gymnasium requires it. So, you must receive 5 things when you call "step()". Currently, you're calling "step" in flexsim-training.py and only receiving 4 things. So, you need to add a 5th variable to receive all 5 things correctly. Like this:

observation, reward, done, truncated, info = env.step(action)
· 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.

Lion avatar image Lion commented ·

That is very clean answered. It's work

Thank you very much @Kavika F

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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