3
|
1 // LP.h -*- C++ -*- |
|
2 /* |
|
3 |
1835
|
4 Copyright (C) 1996 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 |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
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 |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
3
|
21 |
|
22 */ |
|
23 |
382
|
24 #if !defined (octave_LP_h) |
|
25 #define octave_LP_h 1 |
|
26 |
465
|
27 #include "dColVector.h" |
3
|
28 #include "Bounds.h" |
|
29 #include "LinConst.h" |
1528
|
30 #include "base-min.h" |
3
|
31 |
1528
|
32 class LP : public base_minimizer |
3
|
33 { |
|
34 public: |
|
35 |
1528
|
36 LP (void) : base_minimizer () { } |
|
37 |
|
38 LP (const ColumnVector& c_arg) |
|
39 : base_minimizer (), c (c_arg) { } |
3
|
40 |
1528
|
41 LP (const ColumnVector& c_arg, const Bounds& b) |
|
42 : base_minimizer (), c (c_arg), bnds (b) { } |
|
43 |
|
44 LP (const ColumnVector& c_arg, const Bounds& b, const LinConst& l) |
|
45 : base_minimizer (), c (c_arg), bnds (b), lc (l) { } |
|
46 |
|
47 LP (const ColumnVector& c_arg, const LinConst& l) |
|
48 : base_minimizer (), c (c_arg), lc (l) { } |
3
|
49 |
1835
|
50 LP (const LP& a) |
|
51 : base_minimizer (a), c (a.c), bnds (a.bnds), lc (a.lc) { } |
|
52 |
|
53 LP& operator = (const LP& a) |
|
54 { |
|
55 if (this != &a) |
|
56 { |
|
57 base_minimizer::operator = (a); |
|
58 |
|
59 c = a.c; |
|
60 bnds = a.bnds; |
|
61 lc = a.lc; |
|
62 } |
|
63 return *this; |
|
64 } |
|
65 |
|
66 ~LP (void) { } |
|
67 |
3
|
68 protected: |
|
69 |
1528
|
70 ColumnVector c; |
3
|
71 Bounds bnds; |
|
72 LinConst lc; |
|
73 }; |
|
74 |
|
75 #endif |
|
76 |
|
77 /* |
|
78 ;;; Local Variables: *** |
|
79 ;;; mode: C++ *** |
|
80 ;;; page-delimiter: "^/\\*" *** |
|
81 ;;; End: *** |
|
82 */ |