3
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1993, 1994, 1995, 1996, 1997, 2002, 2004, 2005, 2007 |
|
4 John W. Eaton |
3
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
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 |
7016
|
10 Free Software Foundation; either version 3 of the License, or (at your |
|
11 option) any later version. |
3
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
7016
|
19 along with Octave; see the file COPYING. If not, see |
|
20 <http://www.gnu.org/licenses/>. |
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 */ |