hi all, is it possible to put more then two tasks in options?? like i want three "options = optimset('MaxFunEvals',50000,'MaxIter',30000',MaxFunInterval',1020');"...but its showing error.... do i need to use another options for third one????
2 views (last 30 days)
Show older comments
hi all, is it possible to put more then two tasks in options?? like i want three "options = optimset('MaxFunEvals',50000,'MaxIter',30000',MaxFunInterval',1020');"...but its showing error.... do i need to use another options for third one????
0 Comments
Accepted Answer
Alan Weiss
on 1 May 2017
There is no MaxFunInterval option. Did you mean MaxFunEvals? Look in the function reference page for the solver you are using and copy the applicable options exactly.
Alan Weiss
MATLAB mathematical toolbox documentation
3 Comments
Steven Lord
on 1 May 2017
MaxIntervalCount is not an option for the functions in Optimization Toolbox but is an option used by the quadgk function. Inside the function that you pass into the Optimization Toolbox function you're using, you call quadgk.
If you show the integral your function is trying to compute we may be able to say if increasing the MaxIntervalCount option in the quadgk call will work, if the integral of the function just plain doesn't exist (it doesn't converge), or if there are other techniques you can use to integrate it more easily.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!