The OPTMODEL Procedure |
PROC OPTMODEL automatically generates code to evaluate the derivatives for most objective expressions and nonlinear constraints. PROC OPTMODEL generates analytic derivatives for objective and constraint expressions written in terms of the procedure's mathematical operators and the following functions:
Expressions that use other SAS library functions might require numerical approximation of derivatives. PROC OPTMODEL uses either forward-difference approximation or central-difference approximation as specified by the FD= option (see the section "PROC OPTMODEL Statement").
Note: The numerical gradient approximations are significantly slower than automatically generated derivatives when there are a large number of optimization variables.
Notice that additional function calls are needed here. The step lengths , , are based on the assumed function precision, DIGITS:
You can use the FDIGITS= option to specify the function precision, DIGITS, for the objective function. For constraints, use the CDIGITS= option.
The second-order derivatives are approximated using extra function calls (Dennis and Schnabel 1983, pp. 80, 104):
Notice that the diagonal of the Hessian uses a central-difference approximation (Abramowitz and Stegun 1972, p. 884). The step lengths are
Notice that additional function calls are needed here. The step lengths , , are based on the assumed function precision, DIGITS:
You can use the FDIGITS= option to specify the function precision, DIGITS, for the objective function. For constraints, use the CDIGITS= option.
The second-order derivatives are approximated using extra function calls (Abramowitz and Stegun 1972, p. 884):
The step lengths are
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.