Jump to content

Referencing Entity States in Data Tables


mbyham8

Recommended Posts

My simulation has one entity - patients. Each patient is assigned to a state that defines their patient class, but this state is to be updated every three hours. The probability of moving to a state in the future is dependent on the current state, so it's a classic Marcov chain. Right now I have a very complicated and error-prone process that models the state reassignment logic. It involves many conditional and probabilistic decision nodes with manually entered numbers and subsequent assignment nodes. I would like to clean this process to reduce the probability of programming error by using data tables, but cannot figure out how to do so. Is it possible to reference entity states in a data table to model the decision-making?

Link to comment
Share on other sites

  • 2 weeks later...

Yes, you can have a data table that has multiple columns. One column may contain the various values for the entity state, where another may be the new state value (or a formula for calculating the new state value). The Search step can be used to search the table, based on the current entity state matching the state value of the table column. You may wish to review SearchTableUponEnteringObject and SearchTables simbits for more information on the Search step working with table information.

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...