Railway traffic flow optimisation with differing control systems