The correct response is:
to ensure a complex business ran smoothly
This answer aligns with the passage’s explanation of how rail companies managed their operations effectively, employing expert managers and establishing chains of command to handle the complexities of their business.