How I can implement a non-overlap optimization constraint

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

How are the rectangles parametrized?
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

댓글을 달려면 로그인하십시오.

답변 (1개)

Matt J
Matt J 2022년 4월 25일
편집: Matt J 2022년 4월 25일
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

The optimization objective is to locate the both rectangles, what is a,b,and c ?
Matt J
Matt J 2022년 4월 25일
편집: Matt J 2022년 4월 25일
They are additional unknown variables introduced to parametrize the non-overlap constraints. You need to solve for them along with your original unknowns.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2022년 4월 25일

편집:

2022년 4월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by