Additional-minpack-notes.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <html lang="en">
  2. <head>
  3. <title>Additional minpack notes - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="minpack.html#minpack" title="minpack">
  9. <link rel="prev" href="minpack-exceptions.html#minpack-exceptions" title="minpack exceptions">
  10. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  11. <meta http-equiv="Content-Style-Type" content="text/css">
  12. <style type="text/css"><!--
  13. pre.display { font-family:inherit }
  14. pre.format { font-family:inherit }
  15. pre.smalldisplay { font-family:inherit; font-size:smaller }
  16. pre.smallformat { font-family:inherit; font-size:smaller }
  17. pre.smallexample { font-size:smaller }
  18. pre.smalllisp { font-size:smaller }
  19. span.sc { font-variant:small-caps }
  20. span.roman { font-family:serif; font-weight:normal; }
  21. span.sansserif { font-family:sans-serif; font-weight:normal; }
  22. --></style>
  23. </head>
  24. <body>
  25. <div class="node">
  26. <a name="Additional-minpack-notes"></a>
  27. <p>
  28. Previous:&nbsp;<a rel="previous" accesskey="p" href="minpack-exceptions.html#minpack-exceptions">minpack exceptions</a>,
  29. Up:&nbsp;<a rel="up" accesskey="u" href="minpack.html#minpack">minpack</a>
  30. <hr>
  31. </div>
  32. <h4 class="subsection">D.13.3 Additional <code>minpack</code> notes</h4>
  33. <p>The <code>lm</code>* functions are better suited to problems in which the
  34. system function <var>f</var> has more outputs than inputs, and the
  35. <code>hybr</code>* functions are better suited to the alternative. If either
  36. is called when the other is more appropriate, the job is handed off to
  37. the other automatically.
  38. <p>The <code>lmstr</code> function is more memory efficient than the others
  39. because it doesn't compute the whole Jacobian matrix at once. Any
  40. <a name="index-Jacobian-787"></a>of the <code>lm</code>* functions is more memory efficient than
  41. the <code>kinsol</code> equivalent when the output list is sufficiently
  42. longer than the input list.
  43. <p>Unlike <code>kinsol</code>, there is no provision in <code>minpack</code> for
  44. <a name="index-constrained-optimization-788"></a>constrained optimization.
  45. <p>The <code>minpack</code> documentation doesn't state whether it's
  46. <a name="index-re_002dentrancy-789"></a>re-entrant, but the odds are against it unless it uses no storage
  47. outside the user provided work areas. If it isn't re-entrant,
  48. anomalous effects could occur when a virtual code function being
  49. optimized calls another <code>minpack</code> function. A workaround would
  50. be to use an equivalent <code>kinsol</code> function, which is re-entrant by
  51. design.
  52. <p>The <code>avram</code> configuration script searches for a C header file
  53. <a name="index-header-file-790"></a><samp><span class="file">minpack.h</span></samp> on the host system in order to build an interface to
  54. this library. This file is specific to the Debian <code>minpack-dev</code>
  55. package and is not part of the upstream Fortran source. Configuring
  56. <code>avram</code> with an interface to the <code>minpack</code> library on a
  57. <a name="index-Debian-791"></a>non-Debian system may require the administrator to retrieve the header
  58. file manually from the Debian archive and place it under
  59. <samp><span class="file">/usr/include</span></samp> before running the configuration script (in
  60. addition to installing the <code>minpack</code> library itself, of course).
  61. </body></html>