OptTestFun:

--------------------------------------------------------------------------
   10 test functions for optimization routines. The available functions are:

   'sphere'                      x( n)
   'griewank''s function'        x( n)
   'shekel''s foxholes'          x(10)
   'michalewicz''s function'     x(10)
   'langerman''s function'       x( n)
   'de jong 1'                   x( n)
   'de jong 2' ('rosenbrock''s') x( 2)
   'de jong 3'                   x( n)
   'de jong 4'                   x( n)
   'de jong 5'                   x( 2)

   Since version 7.
--------------------------------------------------------------------------
   Form:
   f =  OptTestFun( x, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x              (:,1)   Value of x
   d              (1,1)   Structure to pass to fun (not used)
                          .name (1,:) Name of function
                          .n    (1,1) Order (sphere, griewank michalewicz,
                                       langerman and de jong 1, 3, 4 only)

   -------
   Outputs
   -------
   f              (1,1)  Cost

--------------------------------------------------------------------------