One generator for different entity generate

71 views
Skip to first unread message

mo ui

unread,
May 22, 2024, 10:41:44 AMMay 22
to JaamSim Users Discussion Group

use One generator for different entity generate by ratios, but not working , the ratio not a fixed value , so i put a DiscreteDistribution object .1.jpg

Cristiano Silva

unread,
May 24, 2024, 4:26:48 PMMay 24
to mo ui, JaamSim Users Discussion Group
Below is the video model.

https://www.youtube.com/watch?v=skIfoJNHoUc&list=PLRvwRusArl39IYHrsQRj89onSVvFeWIIP&index=17

Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'


On Wed, May 22, 2024 at 11:41 AM mo ui <moyu...@gmail.com> wrote:

use One generator for different entity generate by ratios, but not working , the ratio not a fixed value , so i put a DiscreteDistribution object .1.jpg

--
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/645fe26b-7a67-4930-a716-d120ffdf0764n%40googlegroups.com.

KlausH

unread,
May 25, 2024, 1:45:07 PMMay 25
to JaamSim Users Discussion Group
Hello mo ui,
I looked your problem.
Please check my attached proposal for this problem.

Best Regards,
Klaus
generator creates different entities_Klaus.cfg

Cristiano Silva

unread,
May 25, 2024, 5:21:15 PMMay 25
to KlausH, JaamSim Users Discussion Group
Wow.... Amazing....Thank you very much Klaus... His proposal is really incredible... I learned a lot from you in this proposal... As I informed you Mo Ui, here on the JaamSim Forum you would find the answer. 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'

--
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.

KlausH

unread,
May 26, 2024, 4:01:31 AMMay 26
to JaamSim Users Discussion Group
Hello Cristiano,
Thanks, it was a pleasure to help.
But I have one problem with the model.
The generator creates the first entity already at 0 seconds and not after 1 second.
Than the 2nd enntity is created after 1 second simulation time. Exact at the 1st arrival time.
The 3rd entity is correct created 5 seconds after the 2nd.
Why is a entity created right at the start of the simulation?
Do you have any explanation?

Best Regards,
Klaus

Cristiano Silva

unread,
May 26, 2024, 6:38:32 AMMay 26
to KlausH, JaamSim Users Discussion Group
Hello Klaus.

Yes, I changed EntityGenerator1's FirstArrivalTime to 0s (zero seconds) and it worked fine.

Please check, thank you very much.

Best regards,
Cristiano Silva


Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'

Captura de tela de 2024-05-26 07-34-04.png

Cristiano Silva

unread,
May 26, 2024, 6:44:37 AMMay 26
to KlausH, JaamSim Users Discussion Group
If you want to reach the first entity in 1s, change EntityGenerator1's Initial Number to 0 (zero).

Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'

Captura de tela de 2024-05-26 07-43-54.png

KlausH

unread,
May 26, 2024, 11:56:41 AMMay 26
to JaamSim Users Discussion Group
Cristiano, thanks for the hint about the initial entity creation. I totaly oversaw that.
Thanks a lot,
Klaus
Reply all
Reply to author
Forward
0 new messages