Setting Linear constraints GA
Ältere Kommentare anzeigen
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?
1 Kommentar
José-Luis
am 23 Sep. 2014
LMI?
Akzeptierte Antwort
Weitere Antworten (1)
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.
Kategorien
Mehr zu Linear Least Squares finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!