Simio
  • Data structure suggestion. Urgent help!

  • 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.
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.
 #5565  by antonio6vieira
 Fri Jun 06, 2014 12:53 pm
Hi everybody!

Here is my problem:

I have several types of products of the type string (e.g. ref123g).

I need to build some kind of data structure that enables me to have on 1 column these types of product (string) and, on a second columnon, a number that could be changed over time.

If anyone could give me a suggestion as how to do this I would be much appreciated.
 #5567  by dsturrock
 Fri Jun 06, 2014 9:54 pm
1) If you are using Enterprise Edition, you can have outputs (states) in tables. Otherwise tables are limited to containing properties.

2) It is possible to create a number of states and reference that state in the table property. But this would probably be tedious and I don't recommend this approach.

3) I think what you probably need is a state array. If you parallel your table (e.g. table row 5 corresponds to array index 5) then it should be easy to use. You can even reference the table for initial values and automatically scale the array to match the table if you want. This sounds like your best approach if you are not using Enterprise Edition.
 #5570  by antonio6vieira
 Sat Jun 07, 2014 10:03 am
Thanks for the reply!

I thought about solution 3, but the rows of the data table are imported from excel (the number of rows is indetermined), so I can´t set the number of rows of the array.

Is there any way to set the number of rows of the array while running or do I need to think of another solution?