~ubuntu-branches/ubuntu/oneiric/mpqc/oneiric

« back to all changes in this revision

Viewing changes to src/lib/math/optimize/qnewton.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2005-11-27 11:41:49 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051127114149-zgz9r3gk50w8ww2q
Tags: 2.3.0-1
* New upstream release.
* debian/rules (SONAME): Activate awk snippet for automatic so-name
  detection again, resulting in a bump to `7' and making a `c2a' for
  the C++ allocator change unnecessary; closes: #339232.
* debian/patches/00list (08_gcc-4.0_fixes): Removed, no longer needed.
* debian/rules (test): Remove workarounds, do not abort build if tests
  fail.
* debian/ref: Removed.
* debian/control.in (libsc): Added Conflict against libsc6c2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
/** The QNewtonOpt implements a quasi-Newton optimization scheme. */
49
49
class QNewtonOpt: public Optimize {
 
50
 
50
51
  protected:
51
52
    double maxabs_gradient;
52
53
    double accuracy_;
60
61
    int print_hessian_;
61
62
    int print_x_;
62
63
    int print_gradient_;
 
64
    int linear_;
 
65
    int restrict_;
 
66
    int dynamic_grad_acc_;
 
67
    int force_search_;
 
68
    int restart_;
 
69
 
63
70
  public:
64
71
    /** The KeyVal constructor.
65
72
        The KeyVal constructor reads the following keywords:
93
100
        <dt><tt>print_hessian</tt><dd> If true, print the approximate
94
101
        hessian each iteration. The default is false.
95
102
 
 
103
        <dt><tt>restrict</tt><dd> Use step size restriction when not
 
104
        using a line search.  The default is true.
 
105
 
96
106
        </dl> */
97
107
    QNewtonOpt(const Ref<KeyVal>&);
98
108
    QNewtonOpt(StateIn&);