home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-base.tgz / octave-1.1.1p1-base.tar / fsf / octave / src / f-lpsolve.cc < prev    next >
C/C++ Source or Header  |  1995-01-03  |  2KB  |  71 lines

  1. // f-lpsolve.cc                                          -*- C++ -*-
  2. /*
  3.  
  4. Copyright (C) 1993, 1994, 1995 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. #ifdef HAVE_CONFIG_H
  25. #include "config.h"
  26. #endif
  27.  
  28. #include "LPsolve.h"
  29.  
  30. #include "tree-const.h"
  31. #include "error.h"
  32. #include "help.h"
  33. #include "defun-dld.h"
  34.  
  35. DEFUN_DLD_BUILTIN ("lp_solve", Flp_solve, Slp_solve, 11, 3,
  36.   "lp_solve (): solve linear programs using lp_solve.")
  37. {
  38.   Octave_object retval;
  39.  
  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;
  45.  
  46.   error ("lp_solve: not implemented yet");
  47.  
  48.   return retval;
  49. }
  50.  
  51. DEFUN_DLD_BUILTIN ("lp_solve_options", Flp_solve_options,
  52.            Slp_solve_options, -1, 1, 
  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.")
  57. {
  58.   Octave_object retval;
  59.  
  60.   error ("lp_solve_options: not implemented yet");
  61.  
  62.   return retval;
  63. }
  64.  
  65. /*
  66. ;;; Local Variables: ***
  67. ;;; mode: C++ ***
  68. ;;; page-delimiter: "^/\\*" ***
  69. ;;; End: ***
  70. */
  71.