How I can implement a non-overlap optimization constraint
Afficher commentaires plus anciens
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 commentaires
Matt J
le 25 Avr 2022
How are the rectangles parametrized?
Mohamed Salem
le 25 Avr 2022
Réponses (1)
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
Catégories
En savoir plus sur Nonlinear Optimization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!