question

katerina-fratczak avatar image
0 Likes"
katerina-fratczak asked katerina-fratczak commented

Reinforcement learning - Error by more decision events

Hello,

I have created my own model with two decision events in queues and push logic. Both events are in one RL window. Observation, action space I have set Multidiscrete. But when trying to run the flexsim_training.py there is an error in python and FlexSim freezes. Could you please tell me if there is anything wrongly defined in FlexSim or if it is necessary to adjust any of the python scripts?

Thank you

1719916027919.png

1719916841971.png

15_our_3_model_push.fsm

reinforcement learning
1719916027919.png (187.9 KiB)
1719916841971.png (70.1 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered katerina-fratczak commented

The relevant part of the error message is right at the bottom:
"Expected: int64, actual dtype: float32"

Try specifying the data type in the flexsim_env file.

1719920100052.png

See also this question:

https://answers.flexsim.com/questions/140869/issue-with-observation-space-in-reinforcement-lear.html


1719920100052.png (43.8 KiB)
· 5
5 |100000

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