Mercurial > hg > octave-nkf
comparison liboctave/QPSOL.h @ 1835:12a94a17509d
[project @ 1996-02-03 07:16:15 by jwe]
author | jwe |
---|---|
date | Sat, 03 Feb 1996 07:28:51 +0000 |
parents | 26411f9c7603 |
children | 821870c30840 |
comparison
equal
deleted
inserted
replaced
1834:46ab6238fa79 | 1835:12a94a17509d |
---|---|
1 // QPSOL.h -*- C++ -*- | 1 // QPSOL.h -*- C++ -*- |
2 /* | 2 /* |
3 | 3 |
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton | 4 Copyright (C) 1996 John W. Eaton |
5 | 5 |
6 This file is part of Octave. | 6 This file is part of Octave. |
7 | 7 |
8 Octave is free software; you can redistribute it and/or modify it | 8 Octave is free software; you can redistribute it and/or modify it |
9 under the terms of the GNU General Public License as published by the | 9 under the terms of the GNU General Public License as published by the |
70 | 70 |
71 class QPSOL : public QP, public QPSOL_options | 71 class QPSOL : public QP, public QPSOL_options |
72 { | 72 { |
73 public: | 73 public: |
74 | 74 |
75 QPSOL (void) : QP () { } | 75 QPSOL (void) |
76 : QP (), QPSOL_options () { } | |
76 | 77 |
77 QPSOL (const ColumnVector& x, const Matrix& H) : QP (x, H) { } | 78 QPSOL (const ColumnVector& x, const Matrix& H) |
79 : QP (x, H), QPSOL_options () { } | |
78 | 80 |
79 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c) | 81 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c) |
80 : QP (x, H, c) { } | 82 : QP (x, H, c), QPSOL_options () { } |
81 | 83 |
82 QPSOL (const ColumnVector& x, const Matrix& H, const Bounds& b) | 84 QPSOL (const ColumnVector& x, const Matrix& H, const Bounds& b) |
83 : QP (x, H, b) { } | 85 : QP (x, H, b), QPSOL_options () { } |
84 | 86 |
85 QPSOL (const ColumnVector& x, const Matrix& H, const LinConst& lc) | 87 QPSOL (const ColumnVector& x, const Matrix& H, const LinConst& lc) |
86 : QP (x, H, lc) { } | 88 : QP (x, H, lc), QPSOL_options () { } |
87 | 89 |
88 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c, | 90 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c, |
89 const Bounds& b) : QP (x, H, c, b) { } | 91 const Bounds& b) |
92 : QP (x, H, c, b), QPSOL_options () { } | |
90 | 93 |
91 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c, | 94 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c, |
92 const LinConst& lc) : QP (x, H, c, lc) { } | 95 const LinConst& lc) |
96 : QP (x, H, c, lc), QPSOL_options () { } | |
93 | 97 |
94 QPSOL (const ColumnVector& x, const Matrix& H, const Bounds& b, | 98 QPSOL (const ColumnVector& x, const Matrix& H, const Bounds& b, |
95 const LinConst& lc) | 99 const LinConst& lc) |
96 : QP (x, H, b, lc) { } | 100 : QP (x, H, b, lc), QPSOL_options () { } |
97 | 101 |
98 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c, | 102 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c, |
99 const Bounds& b, const LinConst& lc) : QP (x, H, c, b, lc) { } | 103 const Bounds& b, const LinConst& lc) |
104 : QP (x, H, c, b, lc), QPSOL_options () { } | |
100 | 105 |
101 QPSOL (const QPSOL& a) : QP (a.x, a.H, a.c, a.bnds, a.lc) { } | 106 QPSOL (const QPSOL& a) |
107 : QP (a), QPSOL_options (a) { } | |
102 | 108 |
103 QPSOL& operator = (const QPSOL& a) | 109 QPSOL& operator = (const QPSOL& a) |
104 { | 110 { |
105 x = a.x; | 111 QP::operator = (a); |
106 H = a.H; | 112 QPSOL_options::operator = (a); |
107 c = a.c; | |
108 bnds = a.bnds; | |
109 lc = a.lc; | |
110 | |
111 return *this; | 113 return *this; |
112 } | 114 } |
113 | 115 |
114 ColumnVector do_minimize (double& objf, int& inform, ColumnVector& lambda); | 116 ColumnVector do_minimize (double& objf, int& inform, ColumnVector& lambda); |
115 }; | 117 }; |