Partial implementation of I and II timetable optimization