Optimization running. Error running optimization. Undefined function 'Cost_minimization_function' for input arguments of type 'double'.
5 views (last 30 days)
Show older comments
Optimization running.
Error running optimization.
Undefined function 'Cost_minimization_function' for input arguments of type 'double'.
What does this mean
2 Comments
Alan Weiss
on 25 Sep 2019
Please show us the function call that led to this error message.
Alan Weiss
MATLAB mathematical toolbox documentation
Answers (1)
Naveen Venkata Krishnan
on 10 Oct 2019
Hello Shamir,
There is a mistake in the way you have implemented the 'ga' function . Change it to :
[x, fval, exitFlag, Output] = ga(ObjFcn,nvars,[],[],[],[],lb,ub,ConsFcn);
0 Comments
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!