--
You received this message because you are subscribed to the Google Groups "Jaamsim Users Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jaamsim-users/996df58c-21e9-497d-b6f7-f0f9ddbb87fbn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jaamsim-users/934b9862-e4d0-48cb-bf90-2756bb43cf07n%40googlegroups.com.
One final point. In the model, if you limit the total number of cars in the simulation run to 1200, (otherwise 1209 are produced) then you can ensure that all cars have been through the queue and the server and left the simulation. (Otherwise I saw one car still in the server at end of run and that very slightly changes the averages.) Anyhow, when I limited the number of cars to 1200 then the two results are near enough identical:
59.92485 from the output report59.9248 from the output window showing AverageQueueTime
I suspect any apparent difference is due to rounding or resolution, etc - but that's good enough for me!
As for collaboration, etc - I can't take any credit. I'm just a user! That said, like you, I think it is great. The software is developed by Harry King and Harvey Harrison so write to them - I have included their email addresses.
Regards,
John
From: Cristiano Silva <cristi...@gmail.com>
Sent: 10 April 2021 12:20
To: John Beasley <John.B...@arup.com>
Subject: Re: [External] Re: [jaamsim-users] Re: How do I collect a list with data from each entity?Great John.
Now I understood perfectly.
Thank you very much...
Congratulations on participating in such an important initiative.
I want to collaborate with your project.
Atenciosamente,Cristiano Luís Turbino de França e Silva
==============================
GNU / Linux
, , / .-.
/ \ / (e e)
((__-^^-,-^^-__)) / _.`V'._
`-_---' `---_-' / //~~W~~\\
<__|o ` 'o|__> / //, ,\\
\ ` / / // | | \\
): :( / \) | | (/
:o_o: / \ /
"-" / `w - w'
On Sat, Apr 10, 2021 at 8:14 AM John Beasley <John.B...@arup.com> wrote:
Hi there,
You have set the State of the object to "TimeInCarsQueue" as the object enters CarsQueue. This line in your .cfg file:
CarsQueue StateAssignment { TimeInCarsQueue }
That's perfectly correct.
However, the State of the object will remain "TimeInCarsQueue" until it is changed to something else. In you model this doesn't happen anywhere so the time in this state that you get in the output file includes time in the queue AS WELL AS time in the server. That's why you get the "wrong" answer.
To fix it so that you are just measuring times in the queue, give the object a New State as it enters the Server.
I attached a fixed version of your model. I gave the object a new State of "TimeInToll" when it entered the server - this is the line in the .cfg file:
Toll StateAssignment { TimeInToll }
Now if you run this you'll see that some of cars don't wait (as expected) and if you calculate the average time in the queue from the report file it is 59.54748445 seconds. If you look at the Output Window for the Queue object in your model, you will see AverageQueueTime is 59.4982 s - essentially the same as the report result.
From: Cristiano Silva <cristi...@gmail.com>
Sent: 09 April 2021 23:41
To: John Beasley <John.B...@arup.com>
Subject: Re: [External] Re: [jaamsim-users] Re: How do I collect a list with data from each entity?Good night sir John.
Please, could you check my model ( attached shipping. ).
The first line of the file: 002_model_toll-Report.log
The value is returning: 6.335083999999999 [s]
This first value had to return zero, since the first car does not wait any time in the queue.
The average of the values in the 002_model_toll-Report.log file returned: 79.5862186200332
The average in AverageQueueTime returned: 59.4982
These values should be the same, that is, the value of the file, after I made the average, it should also be 59.4982, but it was different, it was 79.5862186200332.
In the example you sent, it worked, these average values of the file and the Output Viewer were the same.
Thank you very much!
Atenciosamente,Cristiano Luís Turbino de França e Silva
==============================
GNU / Linux
, , / .-.
/ \ / (e e)
((__-^^-,-^^-__)) / _.`V'._
`-_---' `---_-' / //~~W~~\\
<__|o ` 'o|__> / //, ,\\
\ ` / / // | | \\
): :( / \) | | (/
:o_o: / \ /
"-" / `w - w'
On Fri, Apr 9, 2021 at 2:57 PM John Beasley <John.B...@arup.com> wrote:
Looks almost right. Example attached. Also you can change the units used for time across the whole simulation. Look at the menu "Units" and select time in seconds and then all reports, etc will be in seconds. The EntityLogger file (in the latest version) at least gives you just a number - the units set as above. I attach the output file too.
From: Cristiano Silva <cristi...@gmail.com>
Sent: 09 April 2021 17:10
To: John Beasley <John.B...@arup.com>
Cc: Jaamsim Users Discussion Group <jaamsi...@googlegroups.com>
Subject: [External] Re: [jaamsim-users] Re: How do I collect a list with data from each entity?
____________________________________________________________
Electronic mail messages entering and leaving Arup business systems are scanned for viruses and acceptability of content.