Hello again,
thank you very much for your response, I tried to use a second order fit model to approximate the data points I need to use, the function looks like this, and it is convex:
Linear model Poly22:
f(x,y) = p00 + p10x + p01y + p20x^2 + p11xy + p02y^2
Coefficients (with 95% confidence bounds):*
p00 = -89.42 (-90.04, -88.79)*
p10 = -0.01323 (-0.01462, -0.01184)*
p01 = -0.004337 (-0.009499, 0.0008256)*
p20 = 9.902e-06 (8.992e-06, 1.081e-05)*
p11 = -1.442e-05 (-1.743e-05, -1.142e-05)*
p02 = 4.393e-05 (3.125e-05, 5.661e-05)*
so I tried to use it in my constraints as (e is a variable) :
e(i) == -(p00 + p10x(i) + p01y(i) + p20x(i).^2 + p11x(i).y(i) + p02y(i).^2)
and I get this error:
Disciplined convex programming error:
Invalid constraint: {real affine} == {convex}
Shouldnât I be able to use convex constraints in cvx? I got confused can you advice me with that ?
Best,
Ata