question

Ryan_Wei avatar image
0 Likes"
Ryan_Wei asked Felix Möhlmann answered

Parameters cannot be linked with GlobalTable

In my current understanding, we can use On Observation in Reinforcement Learning Tools to allow my Agent to observe the current system status.

The official example is as follows:

1708756744549.png

I now want to observe the values in the GlobalTable through On Observation as the States for my current reinforcement learning, but I don’t know why my code cannot make the values of Parameters change together with the values in my GlobalTable. I want to know how to use FlexSim Does China allow such an operation?

Here is my example:1708757108222.png

FlexSim Problem2024224.fsm

FlexSim 23.0.0
reinforcement learningparametersglobaltable
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

Your code is correct but you have not defined any decision events, so the On Observation code is never run.

1708767393933.png

Also, you do not have to use the On Observation trigger for this. You could change the parameter at the same time as the table entry.

1708767442013.png


1708767393933.png (4.7 KiB)
1708767442013.png (4.8 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.