Simio
  • Arrival Table and property assignment

  • 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.
 #7534  by msalemip
 Tue Jun 07, 2016 6:33 pm
I am using arrival table to create my entities inside my simulation. So I am importing a column indicating the arrival time of all my entities; inside my data I also have property associated with each entity (exam type in an ultrasound clinic). I want to use that column as well and attache the associated property to each entity created. I am not sure how to do that.
Also I want to use that property in another table and assign processing time distributions for each property (maybe defining the column as a key might help but I am not sure ).

I appreciate any help.
 #7536  by ptkolodziejczyk
 Wed Jun 08, 2016 4:26 am
Defining table relations with primary and foreign keys is the easiest way to do that. Once a table row is set to one of the tables, Simio automatically uses related rows from other tables and you can reference them just by tablename.columnname. Have a look at SimBit: Using Relational Tables.

As for creating entities, you need to set a row in a table before creating an entity, and then use associated fields from that table. For a property associated individually with each entity it is easiest to define a state for the entity and assign in after creation. Why don't you have a look at Appointment Arrivals SimBit, add the property column and go from there?
 #7554  by msalemip
 Tue Jun 14, 2016 10:53 pm
I am using a table with two columns, first is the arrival time of the entity and the second is the property. The first column is used as the arrival times (one entity per row). In other words I should set the row for each entity which indicated the arrival time and the property. But I could not find a way to do that. I can use the first column to create the entities using "Arrival table" in the source. But then I can not make sure the specific row which was used to create that entity is assigned to it. If I know how to do that, then I know how to set the property using state definition.

Thanks
 #7555  by ptkolodziejczyk
 Wed Jun 15, 2016 3:55 am
A SimBit is a small sample model, explaining a concept. You can find them in the Support tab, first from the left "Sample SimBit Solutions" and then search there.