Problem in loading optimization toolbox
1 次查看(过去 30 天)
显示 更早的评论
Hi, I am using Matlab 2014a. When I try to use Optimization toolbox I get the following error instead of getting the Toolbox option
Undefined function 'createProblemStruct' for input arguments of type 'char'.
Error in optimtool (line 42) validValues = {fieldnames(createProblemStruct('solvers')), {} };
I basically need to use ga. But when I try to use ga always get the error
Undefined function 'ga' for input arguments of type 'function_handle'.
I am just trying to run the example given here. http://www.mathworks.com.au/help/gads/examples/coding-and-minimizing-a-fitness-function-using-the-genetic-algorithm.html
But nothing is working for me. Would you please suggest me how to fix it?
0 个评论
回答(1 个)
Alan Weiss
2014-4-18
ga is a function in Global Optimization Toolbox, not Optimization Toolbox. At the MATLAB command line enter
ver
to see whether you have Global Optimization Toolbox installed. I suspect that you do not.
Alan Weiss
MATLAB mathematical toolbox documentation
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!