The Use of Penalty Functions in Logistics