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_check

The Viv port of lmder against the Fortran, on the MINPACK test problems

Runs the Viv lmder1 on every case of the netlib test data for the eleven problems lib/minpack/mgh.viv ports (24 cases: each problem from its standard start, and for most also from 10 and 100 times it), and compares each case with the gfortran build of netlib's lmder1 (lib/minpack/mgh_ref.viv):

  • the result: info, the number of function and Jacobian evaluations, and x;
  • every trial step: the trust radius lmpar was given, the parameter it returned, the step length, the trial norm, the actual and predicted reductions, their ratio, the new radius and parameter, whether the step was taken, the norm, the scaled gradient and x.

mc_results holds one row per case: nprob, factor, info, nfev, njev, and the largest relative difference from the oracle in the final x and in the history. lib/minpack/check.sh prints it.

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 21–183