Constrained Curve Fitting