CheckDerivs

From TomWiki
Revision as of 06:26, 22 July 2011 by Elias (talk | contribs) (Created page with "==Purpose== TOMLAB routine for verifying derivatives of user supplied routines. ==Calling Syntax== <syntaxhighlight lang="matlab"> [exitFlag,output] = checkDerivs(Prob, x k, ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Purpose

TOMLAB routine for verifying derivatives of user supplied routines.

Calling Syntax

[exitFlag,output] = checkDerivs(Prob, x k, PriLev, ObjDerLev, ConsDerLev, AbsTol)

Inputs

Input Description
Prob Problem structure created with assign routine.
x_k Point the check derivatives for. Default x 0 or (xL + xU )/2. x L and x U have to be within

1e5.

PriLev Print Level, default 1. (0-1 valid).
ObjDerLev Depth for objective derivative check, 1 - checks gradient, 2 checks gradient and Hessian.

Default 2 or level of derivatives supplied.

ConsDerLev Depth for constraint derivative check, 1 - checks Jacobian, 2 checks Jacobian and 2nd part of the

Hessian to the Lagrangian function. Default 2 or level of derivatives supplied.

AbsTol Absolute tolerance for errors. Default [1e-5 1e-3 1e-4 1e-3 1e-4] (g H dc d2c J).