Adding penalty calculation for fuzzy membership degree.