How to implement an equality and inequality constraint
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Saifullah Khalid
il 28 Set 2019
Commentato: Saifullah Khalid
il 29 Set 2019
I want to implemet a constraint, in GA, given as
, where
is the decision variable and
is a consatnt. Any help woul be appreciated.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240296/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240297/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240298/image.png)
0 Commenti
Risposta accettata
John D'Errico
il 28 Set 2019
Modificato: John D'Errico
il 28 Set 2019
You said both an equality AND an inequality constraint in the subject. But then you showed only the inequality.
The inequality is trivial.
A = ones(1,N);
B = E_Total;
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Genetic Algorithm in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!