Type for an N-D objective function
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | derivativeOrder | = | 2 | Order for finite difference approximations |
|
| real(kind=wp), | public | :: | stepSize | = | 1.0E-3_wp | Step size for finite differences |
Compute the gradient using finite differences
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(objN_t), | intent(in) | :: | self | Function for gradient calculation |
||
| real(kind=wp), | intent(in), | dimension(:) | :: | x | Evaluation point |
Gradient
Compute the hessian using finite differences
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(objN_t), | intent(in) | :: | self | Function for hessian calculation |
||
| real(kind=wp), | intent(in), | dimension(:) | :: | x | Evaluation point |
Hessian
Find the minimum using the steepest descent method
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(objN_t), | intent(in) | :: | self | Function for minimization |
||
| real(kind=wp), | intent(in), | dimension(:) | :: | x0 | Initial guess |
|
| real(kind=wp), | intent(in), | optional | :: | tol | Tolerance |
|
| integer, | intent(in), | optional | :: | maxIts | Maximum iterations |
Location of minimum
Find the minimum of an N-D function using Nelder-Mead's simplex method
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(objN_t), | intent(in) | :: | self | Function for minimization |
||
| real(kind=wp), | intent(in), | dimension(:) | :: | x0 | Initial guess |
|
| real(kind=wp), | intent(in), | optional | :: | tol | Tolerance |
|
| integer, | intent(in), | optional | :: | maxIts | Maximum iterations |
Location of minimum
Find the minimum of an N-D function using Newton's method
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(objN_t), | intent(in) | :: | self | Function for minimization |
||
| real(kind=wp), | intent(in), | dimension(:) | :: | x0 | Initial guess |
|
| real(kind=wp), | intent(in), | optional | :: | tol | Tolerance |
|
| integer, | intent(in), | optional | :: | maxIts | Maximum iterations |
Location of minimum