Is there a documentation error in the "Example::Minimizing De Jong's Fifth Function." in Genetic Algorithm and Direct Search Toolbox 2.1 (R2007a)?

1 view (last 30 days)
The example states that the following should be typed at the command line:
fun = @dejong5fcn;
[x fval] = simulannealbnd(@fun, [0 0])
However, this results in an error due to the wrong syntax being used (i.e. @fun)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This is an error within the documentation for Genetic Algorithm and Direct Search Toolbox 2.1 (R2007a). The documentation should implement the correct syntax as follows:
fun = @dejong5fcn;
[x fval] = simulannealbnd(fun, [0 0])

More Answers (0)

Products


Release

R2007a

Community Treasure Hunt

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

Start Hunting!