7
|
1 // f-lpsolve.cc -*- C++ -*- |
1
|
2 /* |
|
3 |
497
|
4 Copyright (C) 1993, 1994 John W. Eaton |
1
|
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 |
240
|
24 #ifdef HAVE_CONFIG_H |
|
25 #include "config.h" |
1
|
26 #endif |
|
27 |
|
28 #include "LPsolve.h" |
|
29 |
|
30 #include "tree-const.h" |
|
31 #include "error.h" |
544
|
32 #include "help.h" |
519
|
33 #include "defun-dld.h" |
1
|
34 |
519
|
35 DEFUN_DLD ("lpsolve", Flpsolve, Slpsolve, 11, 3, |
|
36 "lp_solve (): solve linear programs using lp_solve.") |
272
|
37 { |
519
|
38 Octave_object retval; |
1
|
39 |
519
|
40 // Force a bad value of inform, and empty matrices for x and phi. |
|
41 Matrix m; |
|
42 retval(2) = -1.0; |
|
43 retval(1) = m; |
|
44 retval(0) = m; |
1
|
45 |
216
|
46 error ("lpsolve: not implemented yet"); |
519
|
47 |
1
|
48 return retval; |
|
49 } |
|
50 |
519
|
51 DEFUN_DLD ("lpsolve_options", Flpsolve_options, Slpsolve_options, -1, 1, |
|
52 "lp_solve_options (KEYWORD, VALUE)\n\ |
|
53 \n\ |
|
54 Set or show options for lp_solve. Keywords may be abbreviated\n\ |
|
55 to the shortest match.") |
272
|
56 { |
519
|
57 Octave_object retval; |
272
|
58 |
|
59 error ("lpsolve_options: not implemented yet"); |
519
|
60 |
272
|
61 return retval; |
|
62 } |
|
63 |
1
|
64 /* |
|
65 ;;; Local Variables: *** |
|
66 ;;; mode: C++ *** |
|
67 ;;; page-delimiter: "^/\\*" *** |
|
68 ;;; End: *** |
|
69 */ |