Neural Network Training/Optimization using Genetic Algorithm
11 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Alan Weiss
on 19 Apr 2013
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 Comments
More Answers (1)
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!