Skip to main content

Module tnc

Module tnc 

Source
Expand description

Bound-constrained minimisation by a truncated Newton method (the method of SciPy’s minimize(method="TNC"), Nash’s truncated Newton with bounds).

See the book entry Levenberg-Marquardt for systems, mixed-integer programming and truncated Newton.

Structs§

TncOptions
Options for minimize_tnc.

Functions§

minimize_tnc
Minimises f subject to lb ≤ x ≤ ub by a truncated Newton method; fg returns f and its gradient. Each iteration fixes the variables on a bound whose gradient points outwards, and solves the Newton equations H p = −g for the others only approximately, by conjugate gradients stopped at a relative residual min(½, √‖g‖) or at negative curvature; the Hessian-vector products are forward differences of the gradient, so no Hessian is needed. A projected backtracking line search along p keeps the iterates in the box.