3
|
1 // LP.h -*- C++ -*- |
|
2 /* |
|
3 |
1011
|
4 Copyright (C) 1992, 1993, 1994, 1995 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 |
1296
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
465
|
31 #include "dColVector.h" |
3
|
32 #include "Bounds.h" |
|
33 #include "LinConst.h" |
1528
|
34 #include "base-min.h" |
3
|
35 |
1528
|
36 class LP : public base_minimizer |
3
|
37 { |
|
38 public: |
|
39 |
1528
|
40 LP (void) : base_minimizer () { } |
|
41 |
|
42 LP (const ColumnVector& c_arg) |
|
43 : base_minimizer (), c (c_arg) { } |
3
|
44 |
1528
|
45 LP (const ColumnVector& c_arg, const Bounds& b) |
|
46 : base_minimizer (), c (c_arg), bnds (b) { } |
|
47 |
|
48 LP (const ColumnVector& c_arg, const Bounds& b, const LinConst& l) |
|
49 : base_minimizer (), c (c_arg), bnds (b), lc (l) { } |
|
50 |
|
51 LP (const ColumnVector& c_arg, const LinConst& l) |
|
52 : base_minimizer (), c (c_arg), lc (l) { } |
3
|
53 |
|
54 protected: |
|
55 |
1528
|
56 ColumnVector c; |
3
|
57 Bounds bnds; |
|
58 LinConst lc; |
|
59 }; |
|
60 |
|
61 #endif |
|
62 |
|
63 /* |
|
64 ;;; Local Variables: *** |
|
65 ;;; mode: C++ *** |
|
66 ;;; page-delimiter: "^/\\*" *** |
|
67 ;;; End: *** |
|
68 */ |