Mercurial > hg > octave-nkf
diff liboctave/QPSOL.h @ 1528:dc527156c38c
[project @ 1995-10-05 01:44:18 by jwe]
author | jwe |
---|---|
date | Thu, 05 Oct 1995 01:45:30 +0000 |
parents | a6994c934a50 |
children | 26411f9c7603 |
line wrap: on
line diff
--- a/liboctave/QPSOL.h +++ b/liboctave/QPSOL.h @@ -76,54 +76,47 @@ { public: - QPSOL (void) : QP () - { } + QPSOL (void) : QP () { } + + QPSOL (const ColumnVector& x, const Matrix& H) : QP (x, H) { } - QPSOL (const Vector& x, const Matrix& H) : QP (x, H) - { } + QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c) + : QP (x, H, c) { } - QPSOL (const Vector& x, const Matrix& H, const Vector& c) : QP (x, H, c) - { } + QPSOL (const ColumnVector& x, const Matrix& H, const Bounds& b) + : QP (x, H, b) { } - QPSOL (const Vector& x, const Matrix& H, const Bounds& b) : QP (x, H, b) - { } + QPSOL (const ColumnVector& x, const Matrix& H, const LinConst& lc) + : QP (x, H, lc) { } - QPSOL (const Vector& x, const Matrix& H, const LinConst& lc) : QP (x, H, lc) - { } + QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c, + const Bounds& b) : QP (x, H, c, b) { } - QPSOL (const Vector& x, const Matrix& H, const Vector& c, const Bounds& b) - : QP (x, H, c, b) { } + QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c, + const LinConst& lc) : QP (x, H, c, lc) { } - QPSOL (const Vector& x, const Matrix& H, const Vector& c, const LinConst& lc) - : QP (x, H, c, lc) { } - - QPSOL (const Vector& x, const Matrix& H, const Bounds& b, const LinConst& lc) + QPSOL (const ColumnVector& x, const Matrix& H, const Bounds& b, + const LinConst& lc) : QP (x, H, b, lc) { } - QPSOL (const Vector& x, const Matrix& H, const Vector& c, const Bounds& b, - const LinConst& lc) - : QP (x, H, c, b, lc) { } + QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c, + const Bounds& b, const LinConst& lc) : QP (x, H, c, b, lc) { } - QPSOL (const QPSOL& a); - - QPSOL& operator = (const QPSOL& a); - - Vector minimize (double& objf, int& inform, Vector& lambda); -}; + QPSOL (const QPSOL& a) : QP (a.x, a.H, a.c, a.bnds, a.lc) { } -inline QPSOL::QPSOL (const QPSOL& a) : QP (a.x, a.H, a.c, a.bnds, a.lc) - { } + QPSOL& operator = (const QPSOL& a) + { + x = a.x; + H = a.H; + c = a.c; + bnds = a.bnds; + lc = a.lc; -inline QPSOL& -QPSOL::operator = (const QPSOL& a) -{ - x = a.x; - H = a.H; - c = a.c; - bnds = a.bnds; - lc = a.lc; - return *this; -} + return *this; + } + + ColumnVector do_minimize (double& objf, int& inform, ColumnVector& lambda); +}; #endif #endif