How exactly do you use the switch control variable?

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
Posts: 8
Joined: Thu Aug 27, 2015 11:59 am

How exactly do you use the switch control variable?

Post by vhgreeff » Tue Feb 02, 2016 2:55 am

Good morning,

Looking at flow nodes, under the Input- and Output flow control sections, there's a slot for Switch Control Variable. I've tried to figure out exactly how this works but could not find anything in any Simio literature so far (Joines Roberts, Introduction to Simio, Simio Reference Guide and this Forum).

I'm clearly missing something.

How you would make use of this property to make switching between 5+ outbound links more intelligent?


Posts: 110
Joined: Wed Jul 03, 2013 12:07 pm

Re: How exactly do you use the switch control variable?

Post by willem » Tue Feb 09, 2016 12:26 am


Not sure where you found the property but you can use the split allocation rule. Select a rule that you want and make your link weights equal to a variable weight and you can do basically anything.

Hope this helps.

Simio Team Member
Posts: 80
Joined: Thu Mar 13, 2008 3:00 pm
Location: Panama City, Republic of Panama

Re: How exactly do you use the switch control variable?

Post by gdrake » Fri Feb 12, 2016 9:48 am

1) Add a state variable to you model that is the switch control variable. For example, add an integer state variable named 'MySwitchControlVar'.
2) Specify the variable that you created as the Switch Control Variable on the Flow Node.
3) On each of the possible outbound links that can be chosen, in the Selection Weight expression for the link enter an expression like 'MySwitchControlVar==1' which would say for that particular outbound link, send flow to that link if the switch control variable has a value of '1'.
4) Add your own state assignment logic to assign that switch control variable a new value whenever you want to 'switch over' to sending flow to a different outbound link from the flow node.

There may be a SimBit (a small example) installed with Simio that illustrates the approach. The description text of the Switch Control Variable property also provides some of the same information that I provided above.
Glenn Drake

Post Reply