Microsimulation & Risk Modelling Group

Scheduling

An early requirement was for a mechanism that allowed the modeller to control the movement of peeps. The scheduling module provides this capability.

Each peep can be given one (or, via the state system, more) schedules. These are defined as a sequence of days, each of which consists of (time, action) pairs. Each action may be a location to move to, or one or more states to transition into.

For example, a somewhat cynical representation of a stereotypical adult's working week might be:

  • 7:30 AM, change-state to awake
  • 7:45 AM, go-to kitchen
  • 7:50 AM, change-state to eating
  • 9:00 AM, go-to work
  • 9:01 AM, change-state to working
  • 4:59 PM, change-state to relaxing
  • 5:00 PM, go-to home
  • 11:00 PM, go-to bed
  • 11:30 AM, change-state to asleep

By combining cyclic schedules with state changes, fairly realistic, pseudo-random behaviour can be achieved without the need for complex AI routines.

In addition to these cyclic schedules, the module also provides one-off event schedules. Rather than being a list of events over the course of a day, it lists events that occur once at a specific date and time.