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