An application of nonlinear programming to the optimum production strategy of multi-plant firms