This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · lib/minpack/mgh

Test problems for least squares, from Moré, Garbow and Hillstrom

Eleven of the eighteen problems of MINPACK's own test driver for lmder (ref/file17.f: SSQFCN, SSQJAC and INITPT), ported with the Fortran's arithmetic in its order, so the Viv port of lmder can be compared with a gfortran build of the original iterate by iterate. The problems are those of Moré, Garbow and Hillstrom, "Testing Unconstrained Optimization Software", ACM TOMS 7 (1981) 17-41. The numbers are MINPACK's:

 4  Rosenbrock                   n  2, m  2
 5  helical valley               n  3, m  3
 6  Powell singular              n  4, m  4
 7  Freudenstein and Roth        n  2, m  2
 8  Bard                         n  3, m 15
 9  Kowalik and Osborne          n  4, m 11
10  Meyer                        n  3, m 16
12  Box three-dimensional        n  3, m 10
13  Jennrich and Sampson         n  2, m 10
17  Osborne 1                    n  5, m 33
18  Osborne 2                    n 11, m 65

mgh_fcn is the function lmder calls; its data array is [nprob, m, n] (mgh_data). mgh_start(nprob, n, factor) is the standard starting point times factor, as INITPT gives it.

Used with import minpack.mgh.

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 31–339