結果 : maximize profit function