Optimization Function Point Fitting Update

untested full version