I'd like to be able to solve the following type of problem:
given observed data x(1)....x(n) and a known fixed 'target' b, solve for parameters a0, a1, & a2, which minimise:
b-[a0+a1*x(i)+a1*x(i)^2]*x(i), i=1 to n.
with the restriction that the sum of the [a0+a1*x(i)+a1*x(i)^2] terms equals n, i.e. the mean of [a0+a1*x(i)+a1*x(i)^2] equals 1
I've tried PROC MODEL and PROC NLIN in SAS v9.4 but with no luck. Those modules allow for restrictions on individual parameters, but that is not needed here (a0, a1 & a2 can take any values). Perhaps PROC IML can solve this sort of constrained problem....?
Any help gratefully received!