Compute cost which need to be minimized