Mercurial > octave
comparison liboctave/LPsolve.h @ 3:9a4c07481e61
[project @ 1993-08-08 01:20:23 by jwe]
Initial revision
author | jwe |
---|---|
date | Sun, 08 Aug 1993 01:21:46 +0000 |
parents | |
children | 780cbbc57b7c |
comparison
equal
deleted
inserted
replaced
2:c0190df9885d | 3:9a4c07481e61 |
---|---|
1 // LPsolve.h -*- C++ -*- | |
2 /* | |
3 | |
4 Copyright (C) 1992, 1993 John W. Eaton | |
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 | |
24 #if !defined (_LPsolve_h) | |
25 #define _LPsolve_h 1 | |
26 | |
27 #ifdef __GNUG__ | |
28 #pragma interface | |
29 #endif | |
30 | |
31 #include "LP.h" | |
32 | |
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 | |
63 #endif | |
64 | |
65 /* | |
66 ;;; Local Variables: *** | |
67 ;;; mode: C++ *** | |
68 ;;; page-delimiter: "^/\\*" *** | |
69 ;;; End: *** | |
70 */ |