in theory these are the vertices of a rectangle, generated by an NLP, the constraints are met but two vertices are always overlapped, (in the case are the ones in the circule), can you help me? how can i fix that? Thank you
Code: Select all
eq1.. ((x2-x1)*(y2-y1))+((x3-x2)*(y3-y2))=e=0;
eq2.. ((x3-x2)*(y3-y2))+((x4-x3)*(y4-y3))=e=0;
eq3.. ((x4-x3)*(y4-y3))+((x1-x4)*(y1-y4))=e=0;
eq4.. (sqr(x2-x1) + sqr(y2-y1)) * (sqr(x3-x2) + sqr(y3-y2))=e=power(10,2);
Greetings