An algorithm based on evolutionary algorithms is developed and further developed for staff scheduling, given a list of tasks and a set of constraints describing work rules (applied in the airport sphere). During the creation of the schedule, employee shifts are formed dynamically depending on the set of tasks, maintaining the relationship between the convenience of the work schedule for employees and the optimization of working time.