Neural Network Training/Optimization using Genetic Algorithm
11 次查看(过去 30 天)
显示 更早的评论
I want to learn how can I train NN in Matlab NN tool box (or to optimize Weights and Neurons in hidden layer if it is possible). To do so I used the folowing code :
But I get an error message:
Undefined function 'gaoptimset' for input arguments of type 'char'.
Error in GANN (line 25) ga_opts = gaoptimset('TolFun', 1e-8,'display','iter');
Could someone help me to resolve this probleme. Thanks in advance
Note: I'm using MATLAB R2012b
0 个评论
采纳的回答
Alan Weiss
2013-4-19
Do you have a Global Optimization Toolbox license? Check with the ver command:
ver
If you have a license, check that gaoptimset is on your path:
which gaoptimset
If you have a function or variable named gaoptimset, delete it. If you hae a Global Optimization Toolbox license but gaotimset cannot be found, either reinstall MATLAB or get help from Technical Support.
Alan Weiss
MATLAB mathematical toolbox documentation
0 个评论
更多回答(1 个)
另请参阅
类别
在 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!