Mercurial > hg > octave-lyh
diff liboctave/NLP.h @ 1835:12a94a17509d
[project @ 1996-02-03 07:16:15 by jwe]
author | jwe |
---|---|
date | Sat, 03 Feb 1996 07:28:51 +0000 |
parents | dc527156c38c |
children | 986e565efd0a |
line wrap: on
line diff
--- a/liboctave/NLP.h +++ b/liboctave/NLP.h @@ -65,24 +65,26 @@ const NLConst& nl) : base_minimizer (x), phi (obj), bnds (b), nlc (nl) { } + NLP (const NLP& a) + : base_minimizer (a), phi (a.phi), bnds (a.bnds), lc (a.lc), nlc (a.nlc) + { } + NLP& operator = (const NLP& a) { if (this != &a) { - x = a.x; + base_minimizer::operator = (a); + phi = a.phi; bnds = a.bnds; lc = a.lc; nlc = a.nlc; } - return *this; } virtual ~NLP (void) { } - int size (void) const { return x.capacity (); } - protected: Objective phi;