unrecognized function or variable 'c' in multiobjective optimization using GA

function y = nagesh(x)
%y(1)---objective 1----equation for UG n minimum
%y(2)---objective 2 ----equation for TE maximum
%y(3)---objective 3 ----equation for GE maximum
% x(1)--- s
% x(2)--- f
% x(3)--- n
%UG
y(1)=-0.75+0.19*x(1)+0.53*x(2)-0.56*x(3)+0.28*(x(1)*x(2))+0.24*(x(1)*x(3))+0.011*(x(2)*x(3))+1.20*(x(1)^2)+0.96*(x(2)^2)+0.066*(x(3)^2);
%TE
y(2)=99.26-0.19*x(1)-0.53*x(2)+0.56*x(3)-0.28*x(1)* x(2)-0.24*(x(1)*x(3))-0.011*(x(2)*x(3))-1.20*(x(1)^2)-0.96*(x(2)^2)-0.068*(x (3)^2);
%GE
y(3)=19.99+0.54*x(1)+3.13* x(2)+0.68*x(3)-0.037*(x(1)*x(2))+0.053*(x(1)*x(3))-5.000E-003*(x(2)*x(3))-0.20*(x(1)^2)-1.03*(x(1)^2)-0.076*(x(3)^2);
end
Can anyone please provoide solution for this

3 Comments

I don't understand your question. Could you explain in more detail what you are after ? Pareto-fronts for three objectives ?
Above code as fittness function. I'm trying to do Multiobjective optimization through using genetic algorithm. After adding fitness function and number of variables. After adding n start, it is showing like this
But there is no variable c in this function. Thus the reason for the error message must be somewhere else - maybe in the call to "ga" ?

Sign in to comment.

Answers (0)

Asked:

on 27 Jun 2023

Edited:

on 27 Jun 2023

Community Treasure Hunt

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

Start Hunting!