Backtrack along a proposed step until sufficient decrease is met or the configured minimum step length is reached.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(to_solve) | :: | sub | ||||
| real(kind=pr), | intent(in) | :: | X_old(:) |
Iterate before step |
||
| real(kind=pr), | intent(in) | :: | F(:) |
F(X_old) |
||
| real(kind=pr), | intent(in) | :: | J(:,:) |
J(X_old) |
||
| real(kind=pr), | intent(in) | :: | dX(:) |
Newton step direction |
||
| type(newton_settings), | intent(in) | :: | s |
Solver settings |
||
| real(kind=pr), | intent(inout) | :: | t |
Step length [0,1] |
||
| real(kind=pr), | intent(inout) | :: | F_new(:) |
F at trial point |
||
| real(kind=pr), | intent(inout) | :: | J_new(:,:) |
J at trial point |
||
| real(kind=pr), | intent(inout) | :: | f_norm_new |
||F_new||_inf |
||
| logical, | intent(out) | :: | failed |
.true. = no step found |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | private | :: | k |
Backtracking iteration counter |
|||
| real(kind=pr), | private | :: | m_new |
Merit value at trial: 0.5*||F_new||_2^2 |
|||
| real(kind=pr), | private | :: | m_old |
Merit value at X_old: 0.5*||F||_2^2 |
|||
| real(kind=pr), | private | :: | slope |
Directional derivative of m at X_old along dX |