Question: Minimization problem and variable parameter

Dear All

I need to minimize a quadratic function with constraints, but i get

Error, (in Optimization:-QPSolve) unexpected parameters


restart;
with(Optimization);
with(plots);

obj := (c0-x)^2+(c1-(2/3)*x-(1/3)*y)^2+(c2-(1/3)*x-(2/3)*y)^2+(c3-y)^2;
cnsts := 32*x+19*y = 15*c0+18*c1+15*c2+3*c3;
          Minimize(obj, cnsts);

I would like to obtain the optimal parameter ( x,Y) that satisfies the minimization problem with constraints , and the results must depend on c0,c1,c2 and c3. 

Many thanks for your help

 

 

 

Please Wait...