How I can implement a non-overlap optimization constraint

5 visualizaciones (últimos 30 días)
Mohamed Salem
Mohamed Salem el 25 de Abr. de 2022
Editada: Matt J el 25 de Abr. de 2022
I am doing a global optimiation process using matlab. I need to implement a non-overlap constraint to prevnt 2 rectangles from overlap each other. I wonder if any one has faced such constraint in matlab optimization
  2 comentarios
Matt J
Matt J el 25 de Abr. de 2022
How are the rectangles parametrized?
Mohamed Salem
Mohamed Salem el 25 de Abr. de 2022
Well, I optimize the location of 2 rectangles, but if it is possible to do more or having a generic constraint for (n) of them, it would be better

Iniciar sesión para comentar.

Respuestas (1)

Matt J
Matt J el 25 de Abr. de 2022
Editada: Matt J el 25 de Abr. de 2022
If V1 (4x2) and V2(4x2) are the vertices of the two rectangles, then you could introduce additional unknowns a,b,c with the constraints,
V1*[a;b]>=c
V2*[a;b]<=c
  2 comentarios
Mohamed Salem
Mohamed Salem el 25 de Abr. de 2022
The optimization objective is to locate the both rectangles, what is a,b,and c ?
Matt J
Matt J el 25 de Abr. de 2022
Editada: Matt J el 25 de Abr. de 2022
They are additional unknown variables introduced to parametrize the non-overlap constraints. You need to solve for them along with your original unknowns.

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with Optimization Toolbox en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by