polynomial equality constraints at certain points

52 views
Skip to first unread message

Eike F

unread,
Apr 15, 2015, 8:19:58 AM4/15/15
to yal...@googlegroups.com
Hi!



I have a polynomial P in 4 variables over which I would like to optimise. One constraint is, that P(v)==1 for a certain vector v = [v1;v2;v3;v4], e.g. v=[1;1;1;1].

Is there a way to state this constraint directly, or more generally: Is there a command to evaluate a polynomial at certain points?
If not, can you help me to state it in a different manner? If I understand it correctly, I could state it like:

coefficients(P-1- [c1,c2,c3,c4]*[x(1)-1;x(2)-1;x(3)-1;x(4)-1;],x) ==0

where c1 - c4 are additional parameterised polynomials. Is that right?

Best,

Eike

Johan Löfberg

unread,
Apr 15, 2015, 9:02:08 AM4/15/15
to yal...@googlegroups.com
replace(P,v,[1 1 1 1]) == 1

would be the easiest I think

Eike F

unread,
Apr 15, 2015, 9:08:47 AM4/15/15
to yal...@googlegroups.com
Thank you very much!

Reply all
Reply to author
Forward
0 new messages