12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

fminuncHessUpdateMethod for choosing the search direction in theQuasi-Newton algorithm. The choices are• 'bfgs'• 'dfp'InitialHessMatrix• 'steepdesc'See “Hessian Update” on page 3-11 for adescription of these methods.Initial quasi-Newton matrix. This option isonly available if you set InitialHessType to'user-supplied'. In that case, you can setInitialHessMatrix to one of the following:• scalar — the initial matrix is the scalartimes the identityInitialHessType• vector — the initial matrix is a diagonalmatrix with the entries of the vector on thediagonal.Initial quasi-Newton matrix type. The optionsare• 'identity'• 'scaled-identity'• 'user-supplied'Examples Minimize the function .To use an M-file, create a file myfun.m.function f = myfun(x)f = 3*x(1)^2 + 2*x(1)*x(2) + x(2)^2;% Cost functionThen call fminunc to find a minimum of myfun near [1,1].8-86

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!