3
|
1 // LPsolve.h -*- C++ -*- |
|
2 /* |
|
3 |
382
|
4 Copyright (C) 1992, 1993, 1994 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 |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
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 |
384
|
31 extern "C++" { |
|
32 |
3
|
33 #ifndef Vector |
|
34 #define Vector ColumnVector |
|
35 #endif |
|
36 |
|
37 class LPsolve : public LP |
|
38 { |
|
39 public: |
|
40 |
|
41 LPsolve (void) : LP () |
|
42 { set_default_options (); } |
|
43 |
|
44 LPsolve (const Vector& c) : LP (c) |
|
45 { set_default_options (); } |
|
46 |
|
47 LPsolve (const Vector& c, const Bounds& b) : LP (c, b) |
|
48 { set_default_options (); } |
|
49 |
|
50 LPsolve (const Vector& c, const Bounds& b, const LinConst& lc) |
|
51 : LP (c, b, lc) { set_default_options (); } |
|
52 |
|
53 LPsolve (const Vector& c, const LinConst& lc) : LP (c, lc) |
|
54 { set_default_options (); } |
|
55 |
|
56 virtual Vector minimize (double& objf, int& inform, Vector& lambda); |
|
57 |
|
58 private: |
|
59 |
|
60 void set_default_options (void); |
|
61 }; |
|
62 |
382
|
63 } // extern "C++" |
|
64 |
3
|
65 #endif |
|
66 |
|
67 /* |
|
68 ;;; Local Variables: *** |
|
69 ;;; mode: C++ *** |
|
70 ;;; page-delimiter: "^/\\*" *** |
|
71 ;;; End: *** |
|
72 */ |