Solving constrained path problem based on improved recurrent neural network