How to implement an equality and inequality constraint

조회 수: 5 (최근 30일)
Saifullah Khalid
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.

채택된 답변

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