結果 : maximize cost function