question

Trevor Manzanares avatar image
0 Likes"
Trevor Manzanares asked Trevor Manzanares commented

Defining Global Variable for Source Arrival Time

I'd like to define a global variable for the arrival time in a source to be decided by OptQuest. However, after having defined a global variable, I cannot input that variable name into the ArrivalTime field of my source (arrival style = arrival schedule) even after trying the "assign string data" option in the field. It seems to only accept numbers.

FlexSim 16.2.1
optquestglobal variablesstart schedule
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Adrian Haws avatar image
1 Like"
Adrian Haws answered Trevor Manzanares commented

The Source arrival schedule is simply a table of numbers and can't evaluate anything else. If you need to use a global variable, you can either set it in an Inter-Arrival Source or use the Schedule Source activity in Process Flow to control when objects are created.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Trevor Manzanares avatar image Trevor Manzanares commented ·

I created a very simple model and it appears to be working as I hoped. I defined a global variable with an arbitrary value (which OptQuest then manipulates). Then in the source, I set the inter-arrival time to the batch processing option. Now at each increment of time (defined by the global variable value), the correct batch size appears. Thanks @Adrian Haws

1 Like 1 ·
Trevor Manzanares avatar image Trevor Manzanares commented ·

Ok, I see an option under the Inter-Arrival source for "Batch Processing" where it allows me to set a batch size. Do I link to my global variable in the Cycle Time field or is there some other option? I guess I'm not sure how else to set it. Thanks for your help!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.