How to implement an equality and inequality constraint

4 次查看(过去 30 天)
I want to implemet a constraint, in GA, given as , where is the decision variable and is a consatnt. Any help woul be appreciated.

采纳的回答

John D'Errico
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;
  1 个评论
Saifullah Khalid
Saifullah Khalid 2019-9-29
Thank you very much. Next, I want to generate random data () that follows this constrainst. where is a constant. Can you please help on this.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by