question

Ryan_Wei avatar image
0 Likes"
Ryan_Wei asked Ryan_Wei commented

Iteration control by User Events

As far as I know, User Events is not affected by the Discrete Event Simulation system and can trigger an event at the time I set. Therefore, I want it to change its action every 43200 seconds. How should I add User Events control to the following code?

1709451716728.png

iterationcontrolproblem.fsm

FlexSim 23.0.0
user events
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 Ryan_Wei commented

If I understand your goal correctly (generate a new random action parameter every 12 hours), then you would do this the other way around:
Paste the code in your screenshot into the user event and not do anything in the On Request Action trigger at all.

· 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.

Ryan_Wei avatar image Ryan_Wei commented ·

I tried this method but nothing happens with the parameters

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Ryan_Wei commented ·

Did you set the current variable to the correct value (the RL object)?

1709558708263.png

This user event works for me.

0 Likes 0 ·
1709558708263.png (22.8 KiB)
Ryan_Wei avatar image Ryan_Wei Felix Möhlmann commented ·

Sorry I forgot it...

Really appreciate your help !

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.