Text this: Approximation of stepwise objective function in optimal cargo train routing problem