Randomly visit every node only once

General Simio discussions. THIS IS *NOT* A GOOD PLACE FOR SUPPORT QUESTIONS.
To limit spam this and all Public Forums have very limited ability to attach files. We recommend that support issues and more technical topics be initiated inside one of the Simio Insider (SI) forums below where you can attach your model and see example solutions. See above Welcome forum to join Simio Insiders.
Post Reply
jpkapinha
Posts: 4
Joined: Mon May 26, 2014 2:05 pm

Randomly visit every node only once

Post by jpkapinha » Wed Nov 05, 2014 6:02 am

Hi

I want to randomly send one entity to 3 diferent nodes, but each entity can only visit each node once.
I.e., Entity 1 will travel 'Source -> NodeA -> NodeB ->NodeC -> Sink' and entity 2 will travel 'Source -> NodeB -> NodeA ->NodeC -> Sink' and so on.
Right now I'm using Routing by sequence, but it only verifies the rule to visit every node but not randomly... So the last nodes from the list are becoming the bottleneck when they are not.

I could also create individual sequence tables for each possibility, but in my model I Need around 1000 diferent routes so that's not a good Option.
Any idea?

Thanks!

dsturrock
Simio Team Member
Posts: 1452
Joined: Thu Mar 13, 2008 12:35 pm
Location: Sewickley, PA USA
Contact:

Re: Randomly visit every node only once

Post by dsturrock » Wed Nov 05, 2014 10:41 am

Perhaps try the SimBit: VisitAllServersInAnyOrder
Dave Sturrock
VP Operations, Simio LLC

jpkapinha
Posts: 4
Joined: Mon May 26, 2014 2:05 pm

Re: Randomly visit every node only once

Post by jpkapinha » Thu Nov 06, 2014 8:31 am

This example works really fine but one Detail is missing. I'm working with free space and I can't send the entities to the sink.
They will just stay at the last Server Output buffer waiting.

So I created a process that runs 'on exited' in each Server. A decide step checks if 'ModelEntity.Server1Processed + ModelEntity.Server2Processed + ModelEntity.Server3Processed' == 3' and if it is true, should send the entity to the Input node of the sink.

The Problem is that the entity still stays in the last Server Output. If on the decide step I define '... == 2' it goes directly from the second processed Server to the sink.

Any idea?

dsturrock
Simio Team Member
Posts: 1452
Joined: Thu Mar 13, 2008 12:35 pm
Location: Sewickley, PA USA
Contact:

Re: Randomly visit every node only once

Post by dsturrock » Thu Nov 06, 2014 9:57 am

Because of spammers, we don't allow files to be posted to this public forum. You should really move this discussion to the Simio Insiders part of the forum.
I have the same SimBit redone using a FreeSpace approach - I'll try to email it to you.
Dave Sturrock
VP Operations, Simio LLC

jpkapinha
Posts: 4
Joined: Mon May 26, 2014 2:05 pm

Re: Randomly visit every node only once

Post by jpkapinha » Fri Nov 07, 2014 2:43 am

Ok. It works the way I need. Thanks a lot!

Post Reply