question

sharan-nitin avatar image
0 Likes"
sharan-nitin asked Jeanette F commented

how is the value of observation updating in RL Module?

1712741434544.png

FlexSim 23.0.15
reinforcement learningobservation space
1712741434544.png (19.4 KiB)
· 3
5 |100000

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

sharan-nitin avatar image sharan-nitin commented ·
0 Likes 0 ·
sharan-nitin avatar image sharan-nitin commented ·

1712745787516.png

need to know how this code works?

0 Likes 0 ·
1712745787516.png (125.6 KiB)
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @sharan-nitin, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

The user is responsible to set the value of the observation so that it is up-to-date when requestdecision() is called. You can set parameter values with code like this:

Model.parameters.MyParam = 5;

You can either set it as part of your model logic (in Process Flow or object triggers, etc.) or you can write code in the On Observation trigger in the RL tool.

5 |100000

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