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