Optimization running. Error running optimization. Undefined function 'Cost_minimization_function' for input arguments of type 'double'.
5 次查看(过去 30 天)
显示 更早的评论
Optimization running.
Error running optimization.
Undefined function 'Cost_minimization_function' for input arguments of type 'double'.
What does this mean
2 个评论
Alan Weiss
2019-9-25
Please show us the function call that led to this error message.
Alan Weiss
MATLAB mathematical toolbox documentation
回答(1 个)
Naveen Venkata Krishnan
2019-10-10
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!