Solve a square nonlinear system with MINPACK’s Powell hybrid method.
| Type | Intent | Optional | Attributes | Name | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public subroutine fun(n, x, fvec, iflag)funDescriptionMINPACK residual callback for a square nonlinear system. Arguments
|
|||||||||||||||||||||||||||||||||||||||||
| real(kind=pr), | intent(in) | :: | tol |
Convergence tolerance passed to MINPACK. |
|||||||||||||||||||||||||||||||||||||
| real(kind=pr), | intent(inout) | :: | X(:) |
Variables vector |
|||||||||||||||||||||||||||||||||||||
| real(kind=pr), | intent(out) | :: | F(:) |
Function values at solved point |
|||||||||||||||||||||||||||||||||||||
| integer, | intent(out) | :: | info |
MINPACK termination code. |
|||||||||||||||||||||||||||||||||||||
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | iwa(size(x)) | ||||
| integer, | public | :: | lwa | ||||
| integer, | public | :: | m | ||||
| integer, | public | :: | n | ||||
| real(kind=pr), | public | :: | wa((size(X)*(3*size(X)+13))/2+5) |