optimization with gamultiobj (infeasible)

조회 수: 15 (최근 30일)
mayar madboly
mayar madboly 2020년 9월 27일
댓글: mayar madboly 2020년 9월 27일
hello all,
I have an optimization problem with two contradicting objective functions, I have optimized each function on its own successfully, now I need to opimise both of them simulatneously, so I decided to use gamultiobj. However, I get infeasible solution, is there something that I should set in the options ..What is happenning pls?
this is how I am using it now !
opts_ga = optimoptions('gamultiobj','Display','off');
[x,f,exitf,output,population,score] = gamultiobj(obj,14,A,B,Aeq,Beq,LB,UB,NLC,opts_ga);
Thanks
  댓글 수: 2
Alan Weiss
Alan Weiss 2020년 9월 27일
From your brief description I cannot tell what the probem might be. Did you create the objective function correctly? Is your nonlinear constraint defined correctly? What do you mean "I get infeasible solution"? You have just two objectives, I suggest that you use the 'gaplotpareto' plot function to see what is happening.
Alan Weiss
MATLAB mathematical toolbox documentation
mayar madboly
mayar madboly 2020년 9월 27일
thanks for your reply, I forgot to say that I also tried gamultiobj with one single objective and it failed again.
I have tried this single objective with many solvers and they solved it succussefully.... I think I am not using gamultiobj right but what exactly should I try or look into pls?
This is my function gc = gen_cost(x,Ng,c)
gc=0;
p=zeros(1,Ng);
p(1:Ng)=x(1:Ng);
for i=1:Ng
gc=gc+p(i)*c(i);
end
endobj

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by