Algorithm: Repeated simulation of the model.

Algorithm: Repeated simulation of the model.

joe_l6
Not applicable
19 Views
3 Replies
Message 1 of 4

Algorithm: Repeated simulation of the model.

joe_l6
Not applicable

[ FlexSim 16.1.2 ]

Hi team,

I hope to achieve the following scenario where the model will perform 3 rounds, and in each round, the model will execute 5 tries. Between each simulation, the model will first stop, then reset, and then run again. In other words, the model will run 15 times repeatedly.

At the beginning, I set Round = 1 and Try = 1 in the table, and start the simulation. Before the simulation ends, the next Round and Try values will be written in the table. Afterwards, the model will stop, reset, and run again.

The values of (Round, Try) are in sequence: (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (3, 1), (3, 2), (3, 3), (3, 4), (3, 5).

My model takes 2 seconds to simulate each time. I have written the following program, but I feel like the model does not spend any time simulating after the first simulation (less than 2 seconds of simulation time). After that, the numbers just keep jumping until the (Round, Try) values are (1, 4).code.png

May I know if my program is written incorrectly? Thank you.Round Try.fsm

0 Likes
Accepted solutions (1)
20 Views
3 Replies
Replies (3)
Message 2 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You should use the experimenter for this type of thing (but presumably more elaborate)

Message 3 of 4

joe_l6
Not applicable
Thanks for your suggestion, I'll work on it!
0 Likes
Message 4 of 4

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Joe L6, was Jason Lightfoot'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 unaccept and comment back to reopen your question.

0 Likes