結果 : maximize function of three variables