Purpose
Usage
FORTRAN:
call apprgrdn (n,g,x,f,fun,deltax,obj)
C:
apprgrdn (n,g,x,f,fun,deltax,obj);
Description
Arguments:
n |
is the space dimension (FORTRAN and C
specific) Type: FORTRAN: integer C: unsigned short |
g |
is the approximated gradient vector
returned by the routine. Type: FORTRAN: double precision C: double |
x |
is the current point in the n-dimensional space. Type: FORTRAN: double precision C: double |
f |
is the function value at a point (must
be evaluated before a call to the
routine). Type: FORTRAN: double precision C: double |
fun | provides the entry to the function/subroutine that calculates the objective/constraint function value f at a point x. See synopsis in the language specific description section for the routine solvopt. |
deltax |
is an n-element array of the relative
step sizes. The sign of an element
points to the direction along the axis
for making a step. Type: FORTRAN: double precision C: double |
obj |
is a flag which allows (if 1 or
.true.) or not (if 0 or .false.)
calculating of central differences. Type: FORTRAN: logical C: unsigned short |
Calls