Fitness function with more than "x" as an input?
2 次查看(过去 30 天)
显示 更早的评论
I would like to be able to send a data set to my fitness function using the genetic algorithm in the global optimization tool box. Currently I can get this to work as fitness function using the optimization tool:
function ret = func_opt(x)
load('mydata.mat');
....
end
but I would like to do this instead
function ret = func_opt(x,mydata)
...
end
I looking for how this would need to be setup in the optimization tool or with a script. Thank You!
0 个评论
采纳的回答
更多回答(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!