Error in program (line 32) Caused by: Failure in initial user-supplied fitness function evaluation. GA cannot continue.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello all,
Good morning.
{
I've written this code.
lb=[0 -200];
ub=[1000 200];
for i=1:deltaT:24
for t=1:24
options=gaoptimset;
nvars = 2;
% X0=[0.1 0.1];
format short g
[P,fval,exitflag,output]= ga(@Cost2,nvars,[],[],[],[],lb,ub,[],[],options);
}
while executing this program, i have got the following error.
Error in ems_main (line 32)
[P,fval,exitflag,output]= ga(@Cost2,nvars,[],[],[],[],lb,ub,[],[],options);
Caused by:
Failure in initial user-supplied fitness function evaluation. GA cannot continue.
Please help me out in this.
Thanks,
Muthukannan
1 Kommentar
Prabhan Purwar
am 20 Okt. 2020
Hey,
Kindly attach a detailed code so that we can replicate your issue.
Thanks
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!