Steady-state traffic flow on a ring road with up- and down-slopes