question

Jose_andres Ca avatar image
1 Like"
Jose_andres Ca asked Felix Möhlmann answered

Experimenter TIme Tables

I have 4 different time tables and some of them are staggered. Each time table has a different number of staff and different types of staff. How am I able to use the experimenter and in different scenarios add or remove a specific type of staff on a specific schedule. For example, add one physician on a time table and add a nurse on a different time table. I each staff in a group for the time table they are assigned to.

FlexSim 21.2.4
experimentertime tables
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The commands "memberadd()" and "memberremove()" can be used to assign and unassign objects to /from time tables. In the attached example I use one parameter to determine the name of the time table they should adhere to. In the model reset trigger (Toolbox -> Modeling Logic -> Model Trigger -> On Reset) I iterate over all staff members, remove them from any time tables and then add them to the one defined by the respective parameter.

Instead of having one parameter per staff member, you could of course also use one per sub group and loop through all group members, assigning them to the same table.

TimeTableAsParameter.fsm


5 |100000

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