c replaced by LPweight in formulas