Using the optimization toolbox with the GA solver. My variables are such that they cannot be within a certain range [g,f], i.e must be:
y(i)<g
OR
y(i)>f
where f is larger than g. I then put this in the standard LMI form with:
A.y<b
The toolbox returns an in-feasibility error; which is no surprise, as no single point can satisfy both of the above inequalities simultaneously.
Is there an OR or similar function so I can implement the constraints in the toolbox?

 채택된 답변

Alan Weiss
Alan Weiss 2014년 9월 23일
편집: Alan Weiss 2014년 9월 23일

0 개 추천

That said, it seems to me that you really have a binary kind of problem here, where you need to optimize over a decision variable x(i) that can be 0 or 1, and when it is 0 you have y(i) < g, and when 1 you have y(i) > f. You might have better luck after reformulating your problem this way, or by making an exhaustive search over all binary choices.
Alan Weiss
MATLAB mathematical toolbox documentation

댓글 수: 1

Mo
Mo 2014년 9월 23일
The OR documentation looks promising.
But I don't immediately see how the problem can be reformulated to the binary type.
Need to find an optimal sensor placement on a plate, with a fitness function based on the coverage performance of the sensors. The coverage performance is quite complex and takes a while to compute for the entire plate. There's a region on which the sensors can't be located on, hence the constraint.

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

추가 답변 (1개)

Matt J
Matt J 2014년 9월 23일
편집: Matt J 2014년 9월 23일

0 개 추천

You could express this using nonlinear constraints
(y(i)-f)*(g-y(i))<=0
However, your feasible region is highly non-connected, which will make it hard for GA to find a solution.

카테고리

제품

질문:

Mo
2014년 9월 23일

댓글:

Mo
2014년 9월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by