The vectors cant overlap each other

Problems with modeling
Post Reply
tavocopy
User
User
Posts: 6
Joined: 4 years ago

The vectors cant overlap each other

Post by tavocopy »

Hi!
Image
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);
eq1 to eq3 is for the shape conservation, this variables (X,Y) can change and eq4 is area conservation constraint and the area is fixed.

Greetings
Post Reply