I need help with optimization problem
조회 수: 3 (최근 30일)
이전 댓글 표시
I have an optimization problem with 6 variables. The fitness function I use have two outputs: the frequency and the power. What i want to do is to fix the frequency to a range and maximize the power output. However, i could not fix the frequency. Could you please help me?
댓글 수: 2
Star Strider
2014년 9월 27일
Please post your fitness function and your data, and a breif description of what you are doing. What are you optimising?
답변 (1개)
Matt J
2014년 9월 27일
It sounds like fmincon or ga could be used with the nonlcon argument to constrain the frequency.
댓글 수: 3
Matt J
2014년 10월 5일
The frequency is, I assume, a nonlinear function of the decision variables. Therefore, you have nonlinear inequality constraints,
[c,ceq]=nonlcon(x)
ceq=[];
c(1)=frequency(x)-upperbound;
c(2)=lowerbound-frequency(x);
참고 항목
카테고리
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!