Multi-agent model predictive control for transportation networks with continuous and discrete elements