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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 22 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 22 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 22 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply