question

vincenzodm avatar image
0 Likes"
vincenzodm asked tannerp commented

Use of the experimenter in the model

modello-warehouse.fsm

Hello everyone, reading the tutorial on how the Experiment works, I came across a problem. I would like to analyze the use of all the transporter present in the model, and the total time used for the entire model simulation. Of this I would like to launch a number of replicas defined by me and analyze the results to know the average of the total simulation time of the model, and the percentage of utilization of the transporter 1,2,3,4. Does anyone have any idea how to do it? Thank you!

Flexsim 16.0.1

Other (please specify)
Other
experimenter statistics
modello-warehouse.fsm (295.5 KiB)
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

Joshua S avatar image
2 Likes"
Joshua S answered vincenzodm commented

You need something that will trigger the end of the simulation. Also say you set the runtime to 100000, but it stops at 1000, you can use the command below to end the replication then and allocate memory to run other replications.

endreplication(1);

This code with a parameter 1 in it only ends it if it is in experimenter mode. before you end the simulation, you would need to write the time to a label on an object that will be displayed in your experimenter as a performance measure. You can get the time by using time().

For the percentage of utilization, the picture below will show you what to do. If it is grabbing the state of the group as a whole, then do it by individual object.


pic1.png (23.2 KiB)
5 |100000

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