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

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

livia_narda
Not applicable
41 Views
7 Replies
Message 1 of 8

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

livia_narda
Not applicable

[ FlexSim 7.5.4 ]

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

0 Likes
Accepted solutions (1)
42 Views
7 Replies
Replies (7)
Message 2 of 8

sam_stubbsYXX86
Community Manager
Community Manager
Accepted solution

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.

Message 3 of 8

livia_narda
Not applicable

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
Message 4 of 8

livia_narda1
Not applicable

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
Message 5 of 8

livia_narda1
Not applicable

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
Message 6 of 8

joerg_vogel_HsH
Mentor
Mentor

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
Message 7 of 8

livia_narda1
Not applicable

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
Message 8 of 8

sam_stubbsYXX86
Community Manager
Community Manager

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

0 Likes