How to implement an equality and inequality constraint
2 ビュー (過去 30 日間)
古いコメントを表示
Saifullah Khalid
2019 年 9 月 28 日
コメント済み: Saifullah Khalid
2019 年 9 月 29 日
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 件のコメント
採用された回答
John D'Errico
2019 年 9 月 28 日
編集済み: John D'Errico
2019 年 9 月 28 日
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;
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!