constrained fitting provides fit which does indeed integrate to the desired value, but the resulting coefficients are still somehow garbage