Nonlinear approximators for dynamic routing