question

Livia Narda avatar image
0 Likes"
Livia Narda asked Sam Stubbs commented

how can i generate a statistic report only from certain times?

Hi, currently i am doing my thesis with the main topic is simulation. Therefore, i am using flexsim as my simulation software. But i have had a little bit problem here.

In my model, the system production needs to do a setup so it will start at 0 sec to 3600 sec. Later, after the setup times, then the system can run normally start from 3600 to 7200 sec. The problem is, how can i generate a statistic report only from 3600 sec - 7200 sec.

There are two statistic report that i want to generate. First, from "A-current-system-newest.fsm" and second from "b1-final-proposed-system"

a-current-system-newest.fsmb1-final-proposed-system.fsm

Regards,

Livia Narda

FlexSim 7.5.4
statistic reportfor my thesisfor thesissystem
· 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.

Livia Narda avatar image Livia Narda commented ·

Hi sam, thanks for answering my question. From your two option, I choosed the second option and it works. Thanks a lot sam! @samstubbs

Regards,

Livia Narda

0 Likes 0 ·

1 Answer

Sam Stubbs avatar image
4 Likes"
Sam Stubbs answered Sam Stubbs commented

There are two option for you. You can either try using the experimenter to generate your reports and statistics. If you use this method, there's a a "Warmup" field in which you can enter the time you want the model to not take into account. (In your case this would be 3600) Then you can just use the experimenter to grab whichever variables and statistics you want to examine.

The other way, is to create a User Event. (On your Toolbox tab, click the green "+" sign and select Modeling Logic > User Event.) Set the time of the event to fire at 3600, and then as the event select "Code Snippet." In your Snippet simply call the command: resetstats()

This should reset all the stats at the specified time, so that you can use that as a setup time.

· 5
5 |100000

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

Livia Narda avatar image Livia Narda commented ·

Hi @samstubbs ,

Sorry for troubling you again but, there is something i want to ask to you about the second option. A few days ago, i was using the second option and yes, it works on day 1. On the other hand, it was not working well on day 2 as i expected on day 1. For example, i had created a statistic report on day 1 without using the user event and here is the detail calculation. 0-3600s = 90 pcs (output) 0-36000s = 1192 pcs (output) Therefore, 3600s-36000s = 1102 pcs (output) And if i was using the "user event" in day 1, it would gave me the same result. But the problem would be on the day 2. I created a statistic report in day 2 without using the user event and here is the calculation result. 0-68400s = 2304 pcs (output) 36000-68400s = 2304 - 1192 pcs = 1112 pcs (output) And if i was using the user event, it gave me a different result and below is the detail calculation because 3600s-36000s = 1102 pcs (output) then, 36000s-68400s = 1101 pcs (output) Based on those two calculation above on day 2, we can see there are 10 differences output by using an user event and without user event. The problem is: 1. Why there is an output difference by using an user event and without user event? 2. Which one is true? By using an user event or without user event? 3. Is there any way for me to use the user event so that the system will give me the same result (as without user event) on day 2 and so forth? (For your information, i need the do the simulation until day 9 and it always showed the different result)

Regards,

Livia Narda

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Livia Narda commented ·

how many times have you run your model without active Repeat Random Streams?

Does the difference exists even if you activate Repeat Random Streams under Statistics main menu? Then you have to run the model only once in each testing setup to compare the different approaches.

0 Likes 0 ·
Livia Narda avatar image Livia Narda Joerg Vogel commented ·

Hi Jorg, thanks for your response

I would like to reply and ask you about several things

1. What is repeat random streams?? Is that a button? If what you mean is repeat event on user event tab, yes i activated it but the result still same (there's a diff of 10 output). Even if i checked the repeat event box, the result still same (there's a diff of 10 output).

2. I want to simulate a five days production day from 3600-36000s and from 36000-648000s. Therefore, is 5 days is the repeat random streams? I want the production simulation run 5 times with 32400 per each times.

3. Why there is an output difference by using an user event and without user event? Which one is true and how can i get the same result?

0 Likes 0 ·
Livia Narda avatar image Livia Narda commented ·

Sorry for troubling you again sam but, there is something i want to ask to you about the second option.

A few days ago, i was using the second option and yes, it works on day 1. On the other hand, it was not working well on day 2 as i expected on day 1. For example, i had created a statistic report on day 1 without using the user event and here is the detail calculation.

0-3600s = 90 pcs (output)

0-36000s = 1192 pcs (output)

Therefore, 3600s-36000s = 1102 pcs (output)

And if i was using the "user event" in day 1, it would gave me the same result. But the problem would be on the day 2. I created a statistic report in day 2 without using the user event and here is the calculation result.

0-68400s = 2304 pcs (output)

36000-68400s = 2304 - 1192 pcs = 1112 pcs (output)

And if i was using the user event, it gave me a different result and below is the detail calculation

because 3600s-36000s = 1102 pcs (output)

then, 36000s-68400s = 1101 pcs (output)

Based on those two calculation above on day 2, we can see there are 10 differences output by using an user event and without user event. The problem is:

1. Why there is an output difference by using an user event and without user event?

2. Which one is true? By using an user event or without user event?

3. Is there any way for me to use the user event so that the system will give me the same result (as without user event) on day 2 and so forth?

(For your information, i need the do the simulation until day 9 and it always showed the different result)

Regards,

Livia Narda

0 Likes 0 ·
Sam Stubbs avatar image Sam Stubbs ♦ Livia Narda commented ·

You posted this as a separate question it looks like. For reference the updated question is here.

0 Likes 0 ·