Iteration control by User Events

Iteration control by User Events

ting_wei_h
Not applicable
102 Views
4 Replies
Message 1 of 5

Iteration control by User Events

ting_wei_h
Not applicable

[ FlexSim 23.0.0 ]

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

0 Likes
Accepted solutions (1)
103 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Advocate
Advocate
Accepted solution

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.

0 Likes
Message 3 of 5

ting_wei_h
Not applicable

I tried this method but nothing happens with the parameters

0 Likes
Message 4 of 5

moehlmann_fe
Advocate
Advocate

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

1709558708263.png

This user event works for me.

0 Likes
Message 5 of 5

ting_wei_h
Not applicable

Sorry I forgot it...

Really appreciate your help !

0 Likes