The optimal production strategy of multi-plant firms via nonlinear programming