  We investigate how to control optimally a traffic flow through a junction on
the line by acting only on speed reduction or traffic light at the junction. We
show the existence of an optimal control and, under structure assumptions,
provide optimality conditions. We use this analysis to investigate thoroughly
the maximization of the flux on a space-time subset and show the existence of
an optimal control which is bang-bang.
