The Estimation of a Hybrid Cost Function for a Railroad Firm