結果 : cost function formulation