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)
dejong5fcnGlobal Optimization Toolboxsimulannealbnd
fun = @dejong5fcn;[x fval] = simulannealbnd(@fun, [0 0])
Best Answer