Page 1 of 1

I cant run this code in MATLAB.. Can you help me?

Posted: Fri Apr 29, 2022 7:01 am
by answerhappygod
I cant run this code in MATLAB.. Can you help me?
I Cant Run This Code In Matlab Can You Help Me 1
I Cant Run This Code In Matlab Can You Help Me 1 (20.6 KiB) Viewed 23 times
I Cant Run This Code In Matlab Can You Help Me 2
I Cant Run This Code In Matlab Can You Help Me 2 (58.96 KiB) Viewed 23 times
I Cant Run This Code In Matlab Can You Help Me 3
I Cant Run This Code In Matlab Can You Help Me 3 (48.43 KiB) Viewed 23 times
Workspace Name | Ib E options Qobs ub Value 365x1 double [0:0] 1x1 struct 365x1 double [0.5000, 10)
Command Window New to MATLAB? See resources for Getting Started. Error in galincon (line 17) state = makeState (GenomeLength, FitnessFcn, Iterate, output.problemtype, options); Error in ga (line 401) [x, fval, exitFlag, output, population, scores] = galincon (FitnessFcn, nv Error in GAоptemisem (line 13) [x, fval] = ga (@objfun,2,[],[1,1],[1,1b, ub, [], options); Caused by: Failure in initial user-supplied fitness function evaluation. GA cannot con fx >>
lo X x Variables - lb + or - GAоptemisem.m optemisem.mx objfun.m x clear clc tic global I Qobs load II is upstream discharge load Qobs lb - zeros (2,1); ub=[0.5 10]; options= gaoptimset ("PopulationSize',30, 'Generations', 100, 'PlotFcns', @gaplotbestf); [x, fval] = ga (Cobjfun,2,1],[1,1],[1,1b, ub, [], options); toc