OPTIMIZATION OF COST FUNCTION WEIGHTS FOR UNIT