Home > brede > brede_opt_gradient.m

brede_opt_gradient

PURPOSE ^

brede_opt_gradient - Optimization with Gradient minimization

SYNOPSIS ^

function [x, Info] = brede_opt_gradient(func, x0, varargin)

DESCRIPTION ^

 brede_opt_gradient   - Optimization with Gradient minimization

       function [x, Info] = brede_opt_gradient(func, x0)
 
       Input:    func       Function handle (@function)
                 x0         Vector with parameters to be optimized

       Property: MaxIterations [ {500} ] Positive integer
                 Parameters    Additional parameters

       Output:   x          Optimized parameters
                 Info       Structure with additional information

       Optimization with gradient descent. The step size is adapted
       depended.

       The input argument 'func' should contain a function handle
       constructed with the at-operator '@'. The function should
       return the function value and the gradient.

       Examples: 
         function [f, df] = sin2(x)
           f = sin(x);
           df = cos(x);

         function [f, df] = besseljn(x, n)
           h = abs(x) * 10^6 * eps;
           f = besselj(x, n);
           df = mean(gradient(besselj([x-h x x+h], n), h));

         brede_opt_gradient(@sin2, 4)
         brede_opt_gradient(@besseljn, 2.8, 'parameters', {8})

       See also BREDE, BREDE_OPT_CG.

 $Id: brede_opt_gradient.m,v 1.1 2003/09/17 17:05:28 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005