optimization with gamultiobj (infeasible)

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 Comments

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
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

Sign in to comment.

Answers (0)

Asked:

on 27 Sep 2020

Commented:

on 27 Sep 2020

Community Treasure Hunt

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

Start Hunting!