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.

fminconY is a matrix that has the same number of rowsas there are dimensions in the problem. W =H*Y although H is not formed explicitly. fminuncuses Hinfo to compute the preconditioner. Theoptional parameters p1, p2, ... can be anyadditional parameters needed by hmfun. See“Avoiding Global Variables via Anonymous andNested Functions” on page 2-20 for informationon how to supply values for the parameters.Note 'Hessian' must be set to 'on' for Hinfoto be passed from fun to hmfun.HessPatternMaxPCGIterSee “Nonlinear Minimization with a Dense butStructured Hessian and Equality Constraints”on page 2-61 for an example.Sparsity pattern of the Hessian for finitedifferencing. If it is not convenient to computethesparseHessianmatrixH in fun, thelarge-scale method in fmincon can approximateH viasparsefinitedifferences(ofthegradient)provided the sparsity structure of H—i.e.,locations of the nonzeros—is supplied as thevalue for HessPattern. Intheworstcase,ifthestructure is unknown, you can set HessPatternto be a dense matrix and a full finite-differenceapproximation is computed at each iteration (thisis the default). This can be very expensive forlarge problems, so it is usually worth the effort todetermine the sparsity structure.Maximum number of PCG (preconditionedconjugate gradient) iterations (see the Algorithmsection following).8-46

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

Saved successfully!

Ooh no, something went wrong!