mbyham8 Posted July 19, 2017 Share Posted July 19, 2017 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 More sharing options...
CWatson Posted July 28, 2017 Share Posted July 28, 2017 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 More sharing options...
Abdullah Omair Posted April 9, 2019 Share Posted April 9, 2019 Thanks, @CWatson that was helpful, can you provide me with "reference state var. in data table" material or how to do it. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts