3
|
1 // LP.cc -*- 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 |
1296
|
24 #if defined (__GNUG__) |
|
25 #pragma implementation |
|
26 #endif |
|
27 |
238
|
28 #ifdef HAVE_CONFIG_H |
1192
|
29 #include <config.h> |
3
|
30 #endif |
|
31 |
|
32 #include "LP.h" |
|
33 |
|
34 LP::LP (void) {} |
|
35 |
|
36 LP::LP (const Vector& c_arg) : c (c_arg) { } |
|
37 |
|
38 LP::LP (const Vector& c_arg, const Bounds& b) : c (c_arg), bnds (b) { } |
|
39 |
|
40 LP::LP (const Vector& c_arg, const LinConst& l) : c (c_arg), lc (l) { } |
|
41 |
|
42 LP::LP (const Vector& c_arg, const Bounds& b, const LinConst& l) |
|
43 : c (c_arg), bnds (b), lc (l) { } |
|
44 |
|
45 Vector |
|
46 LP::minimize (void) |
|
47 { |
|
48 double objf; |
|
49 int inform; |
|
50 Vector lambda; |
|
51 return minimize (objf, inform, lambda); |
|
52 } |
|
53 |
|
54 Vector |
|
55 LP::minimize (double& objf) |
|
56 { |
|
57 int inform; |
|
58 Vector lambda; |
|
59 return minimize (objf, inform, lambda); |
|
60 } |
|
61 |
|
62 Vector |
|
63 LP::minimize (double& objf, int& inform) |
|
64 { |
|
65 Vector lambda; |
|
66 return minimize (objf, inform, lambda); |
|
67 } |
|
68 |
|
69 /* |
|
70 ;;; Local Variables: *** |
|
71 ;;; mode: C++ *** |
|
72 ;;; page-delimiter: "^/\\*" *** |
|
73 ;;; End: *** |
|
74 */ |