Executing a headway offset optimization
Headway offset optimization uses local optimization methods, random timetable changes, and optionally a genetic algorithm to optimize the headway offset between lines. You have two options for optimizing the headway offset (Fundamentals: Headway offset optimization).
Video: How To Optimize Transit Headway Offsets