3
|
1 // LPsolve.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_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 |
|
35 class LPsolve : public LP |
|
36 { |
|
37 public: |
|
38 |
|
39 LPsolve (void) : LP () |
|
40 { set_default_options (); } |
|
41 |
1528
|
42 LPsolve (const ColumnVector& c) : LP (c) |
3
|
43 { set_default_options (); } |
|
44 |
1528
|
45 LPsolve (const ColumnVector& c, const Bounds& b) : LP (c, b) |
3
|
46 { set_default_options (); } |
|
47 |
1528
|
48 LPsolve (const ColumnVector& c, const Bounds& b, const LinConst& lc) |
3
|
49 : LP (c, b, lc) { set_default_options (); } |
|
50 |
1528
|
51 LPsolve (const ColumnVector& c, const LinConst& lc) : LP (c, lc) |
3
|
52 { set_default_options (); } |
|
53 |
1528
|
54 ColumnVector do_minimize (double& objf, int& inform, ColumnVector& lambda); |
3
|
55 |
|
56 private: |
|
57 |
|
58 void set_default_options (void); |
|
59 }; |
|
60 |
|
61 #endif |
|
62 |
|
63 /* |
|
64 ;;; Local Variables: *** |
|
65 ;;; mode: C++ *** |
|
66 ;;; page-delimiter: "^/\\*" *** |
|
67 ;;; End: *** |
|
68 */ |