3
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
3
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
3
|
21 |
|
22 */ |
|
23 |
382
|
24 #if !defined (octave_NLConst_h) |
|
25 #define octave_NLConst_h 1 |
|
26 |
465
|
27 class ColumnVector; |
|
28 |
238
|
29 #include "Bounds.h" |
3
|
30 #include "NLFunc.h" |
|
31 |
1865
|
32 class |
|
33 NLConst : public Bounds, public NLFunc |
3
|
34 { |
|
35 public: |
|
36 |
1865
|
37 NLConst (void) |
|
38 : Bounds (), NLFunc () { } |
1528
|
39 |
5275
|
40 NLConst (octave_idx_type n) |
1865
|
41 : Bounds (n), NLFunc () { } |
1528
|
42 |
|
43 NLConst (const ColumnVector& lb, const NLFunc f, const ColumnVector& ub) |
|
44 : Bounds (lb, ub), NLFunc (f) { } |
|
45 |
1865
|
46 NLConst (const NLConst& a) |
|
47 : Bounds (a.lb, a.ub), NLFunc (a.fun, a.jac) { } |
3
|
48 |
1528
|
49 NLConst& operator = (const NLConst& a) |
|
50 { |
1865
|
51 if (this != &a) |
|
52 { |
|
53 Bounds::operator = (a); |
|
54 NLFunc::operator = (a); |
|
55 } |
1528
|
56 return *this; |
|
57 } |
3
|
58 |
1865
|
59 ~NLConst (void) { } |
|
60 |
3
|
61 private: |
|
62 |
|
63 void error (const char *msg); |
|
64 }; |
|
65 |
|
66 #endif |
|
67 |
|
68 /* |
|
69 ;;; Local Variables: *** |
|
70 ;;; mode: C++ *** |
|
71 ;;; End: *** |
|
72 */ |