How does the company determine the rates of production which are the most efficient and the least cost? What method(s) do they use?

How does the company determine the rates of production which are the most efficient and the least cost? What method(s) do they use?