Product quality optimization vs production capacity optimization: an analytical perspective