question

Pranav Purohit avatar image
0 Likes"
Pranav Purohit asked Pranav Purohit commented

Is it possible to run simulation partially for a part of model?

Hello,

I have a general question about discrete event simulations.

I understand to start a simulation, entities/ flow items need to be created at source. But I have project specific requirement that needs to run a simulation for a part of the model. Is it possible to run the simulation from any random point of the model? Like say, total run time for model is 30 days from March 1st to March 30th. Is it possible to start simulation from 15th day that is, March 15th to March 30th? I hope example explains my query well. Thanks.

FlexSim 16.2.2
simulation time
· 6
5 |100000

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

Sam Stubbs avatar image Sam Stubbs ♦ Pranav Purohit commented ·

As we talked about on the phone, here is a link with some advice on how to trim down / speed up a model to make it run more smoothly.

https://answers.flexsim.com/questions/25025/speeding-up-a-simulation-model.html

Unfortunately there's not really a way to just start from any point in the model. The model needs to go through the logic/ make all the calculations to get from point A to point B to know how it's supposed to behave. So the later parts of a simulation are reliant upon the information from the earlier parts of the model. But using some of the tips above, should help speed up the model a bit.

0 Likes 0 ·
Pranav Purohit avatar image Pranav Purohit Sam Stubbs ♦ commented ·

Thanks for the link Sam. I understand the model runs lots of logics/ calculations on the back. But I was trying to reduce the simulation time. However more simplifying / trimming the model down might help a little here. Thanks a lot for providing me with the information.

0 Likes 0 ·
Kari Payton avatar image Kari Payton commented ·

When you start a new model there's an option to enter start time as a date. Or are you trying to have it run for 2 weeks then collect data after that point? @Pranav Purohit

0 Likes 0 ·
Pranav Purohit avatar image Pranav Purohit Kari Payton commented ·

Considering first two weeks are running fine, I am trying to start running model from third week. I could choose the start date and time as you said earlier but couldn't find any option to start at any point after the start date and time.

0 Likes 0 ·
Kari Payton avatar image Kari Payton Pranav Purohit commented ·

Yeah once you set the parameters at the start you can't go back and change it.

0 Likes 0 ·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Pranav Purohit commented

Whenever you run the model, it will run the entire model so as to get any calculations needed before moving on to another time of the model. However, using the experimenter and the dashboard widgets you can certainly gather statistics on certain sections of time within the model. If you look in the User Manual under both the Experimenter and Dashboard sections it gives more information about this.

· 1
5 |100000

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

Pranav Purohit avatar image Pranav Purohit commented ·

Thank you very much for replying to my query Sam. I am trying to put logic in experimenter for partial data collection. But I am new to the FlexSim and my project demands partial data gathering. So I was curious if such flexibility is available in the simulation software.

0 Likes 0 ·
Kari Payton avatar image
2 Likes"
Kari Payton answered Pranav Purohit commented

@Pranav Purohit If this helps, you can set a user event (toolbox - add - modeling logic - user event) and use the command resetstats() at t=15 days. This will reset all statistics at that time without resetting the whole model.

· 1
5 |100000

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

Pranav Purohit avatar image Pranav Purohit commented ·

Thank you very much for the tip. I will try this and will see if this logic works for me

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.