How to implement an equality and inequality constraint
1 view (last 30 days)
Show older comments
Saifullah Khalid
on 28 Sep 2019
Commented: Saifullah Khalid
on 29 Sep 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.
0 Comments
Accepted Answer
John D'Errico
on 28 Sep 2019
Edited: John D'Errico
on 28 Sep 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;
More Answers (0)
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!