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 |
913
|
35 DEFUN_DLD_BUILTIN ("lp_solve", Flp_solve, Slp_solve, 11, 3, |
519
|
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 |
913
|
46 error ("lp_solve: not implemented yet"); |
519
|
47 |
1
|
48 return retval; |
|
49 } |
|
50 |
913
|
51 DEFUN_DLD_BUILTIN ("lp_solve_options", Flp_solve_options, |
|
52 Slp_solve_options, -1, 1, |
519
|
53 "lp_solve_options (KEYWORD, VALUE)\n\ |
|
54 \n\ |
|
55 Set or show options for lp_solve. Keywords may be abbreviated\n\ |
|
56 to the shortest match.") |
272
|
57 { |
519
|
58 Octave_object retval; |
272
|
59 |
913
|
60 error ("lp_solve_options: not implemented yet"); |
519
|
61 |
272
|
62 return retval; |
|
63 } |
|
64 |
1
|
65 /* |
|
66 ;;; Local Variables: *** |
|
67 ;;; mode: C++ *** |
|
68 ;;; page-delimiter: "^/\\*" *** |
|
69 ;;; End: *** |
|
70 */ |