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!

采纳的回答

Walter Roberson
Walter Roberson 2013-1-2

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by