Complete ForwardFeeding cost function