I cant run this code in MATLAB.. Can you help me?
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
I cant run this code in MATLAB.. Can you help me?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
I cant run this code in MATLAB.. Can you help me?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!