eval_cost_summary function

Evaluate cost of solution