cost

Sets the cost function for the goal.