comparison 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
comparison
equal deleted inserted replaced
1527:13d27938e778 1528:dc527156c38c
74 74
75 class QPSOL : public QP, public QPSOL_options 75 class QPSOL : public QP, public QPSOL_options
76 { 76 {
77 public: 77 public:
78 78
79 QPSOL (void) : QP () 79 QPSOL (void) : QP () { }
80 { }
81 80
82 QPSOL (const Vector& x, const Matrix& H) : QP (x, H) 81 QPSOL (const ColumnVector& x, const Matrix& H) : QP (x, H) { }
83 { }
84 82
85 QPSOL (const Vector& x, const Matrix& H, const Vector& c) : QP (x, H, c) 83 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c)
86 { } 84 : QP (x, H, c) { }
87 85
88 QPSOL (const Vector& x, const Matrix& H, const Bounds& b) : QP (x, H, b) 86 QPSOL (const ColumnVector& x, const Matrix& H, const Bounds& b)
89 { } 87 : QP (x, H, b) { }
90 88
91 QPSOL (const Vector& x, const Matrix& H, const LinConst& lc) : QP (x, H, lc) 89 QPSOL (const ColumnVector& x, const Matrix& H, const LinConst& lc)
92 { } 90 : QP (x, H, lc) { }
93 91
94 QPSOL (const Vector& x, const Matrix& H, const Vector& c, const Bounds& b) 92 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c,
95 : QP (x, H, c, b) { } 93 const Bounds& b) : QP (x, H, c, b) { }
96 94
97 QPSOL (const Vector& x, const Matrix& H, const Vector& c, const LinConst& lc) 95 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c,
98 : QP (x, H, c, lc) { } 96 const LinConst& lc) : QP (x, H, c, lc) { }
99 97
100 QPSOL (const Vector& x, const Matrix& H, const Bounds& b, const LinConst& lc) 98 QPSOL (const ColumnVector& x, const Matrix& H, const Bounds& b,
99 const LinConst& lc)
101 : QP (x, H, b, lc) { } 100 : QP (x, H, b, lc) { }
102 101
103 QPSOL (const Vector& x, const Matrix& H, const Vector& c, const Bounds& b, 102 QPSOL (const ColumnVector& x, const Matrix& H, const ColumnVector& c,
104 const LinConst& lc) 103 const Bounds& b, const LinConst& lc) : QP (x, H, c, b, lc) { }
105 : QP (x, H, c, b, lc) { }
106 104
107 QPSOL (const QPSOL& a); 105 QPSOL (const QPSOL& a) : QP (a.x, a.H, a.c, a.bnds, a.lc) { }
108 106
109 QPSOL& operator = (const QPSOL& a); 107 QPSOL& operator = (const QPSOL& a)
108 {
109 x = a.x;
110 H = a.H;
111 c = a.c;
112 bnds = a.bnds;
113 lc = a.lc;
110 114
111 Vector minimize (double& objf, int& inform, Vector& lambda); 115 return *this;
116 }
117
118 ColumnVector do_minimize (double& objf, int& inform, ColumnVector& lambda);
112 }; 119 };
113
114 inline QPSOL::QPSOL (const QPSOL& a) : QP (a.x, a.H, a.c, a.bnds, a.lc)
115 { }
116
117 inline QPSOL&
118 QPSOL::operator = (const QPSOL& a)
119 {
120 x = a.x;
121 H = a.H;
122 c = a.c;
123 bnds = a.bnds;
124 lc = a.lc;
125 return *this;
126 }
127 120
128 #endif 121 #endif
129 #endif 122 #endif
130 123
131 /* 124 /*