3
|
1 // LPsolve.h -*- C++ -*- |
|
2 /* |
|
3 |
1836
|
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_LPsolve_h) |
|
25 #define octave_LPsolve_h 1 |
|
26 |
1296
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
465
|
31 class ColumnVector; |
|
32 |
3
|
33 #include "LP.h" |
|
34 |
1867
|
35 class |
|
36 LPsolve : public LP |
3
|
37 { |
1867
|
38 public: |
3
|
39 |
1836
|
40 LPsolve (void) |
|
41 : LP () { } |
3
|
42 |
1836
|
43 LPsolve (const ColumnVector& c) |
|
44 : LP (c) { } |
3
|
45 |
1836
|
46 LPsolve (const ColumnVector& c, const Bounds& b) |
|
47 : LP (c, b) { } |
3
|
48 |
1528
|
49 LPsolve (const ColumnVector& c, const Bounds& b, const LinConst& lc) |
1836
|
50 : LP (c, b, lc) { } |
|
51 |
|
52 LPsolve (const ColumnVector& c, const LinConst& lc) |
|
53 : LP (c, lc) { } |
|
54 |
|
55 LPsolve (const LPsolve& a) |
|
56 : LP (a) { } |
3
|
57 |
1836
|
58 LPsolve& operator = (const LPsolve& a) |
|
59 { |
|
60 if (this != &a) |
1867
|
61 LP::operator = (a); |
|
62 |
1836
|
63 return *this; |
|
64 } |
|
65 |
|
66 ~LPsolve (void) { } |
3
|
67 |
1528
|
68 ColumnVector do_minimize (double& objf, int& inform, ColumnVector& lambda); |
3
|
69 }; |
|
70 |
|
71 #endif |
|
72 |
|
73 /* |
|
74 ;;; Local Variables: *** |
|
75 ;;; mode: C++ *** |
|
76 ;;; page-delimiter: "^/\\*" *** |
|
77 ;;; End: *** |
|
78 */ |