home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-bin.lha / include / octave / LP.h < prev    next >
C/C++ Source or Header  |  1996-10-12  |  2KB  |  69 lines

  1. // LP.h                                                -*- C++ -*-
  2. /*
  3.  
  4. Copyright (C) 1992, 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. #if !defined (octave_LP_h)
  25. #define octave_LP_h 1
  26.  
  27. #include "dColVector.h"
  28. #include "Bounds.h"
  29. #include "LinConst.h"
  30.  
  31. extern "C++" {
  32.  
  33. #ifndef Vector
  34. #define Vector ColumnVector
  35. #endif
  36.  
  37. class LP
  38. {
  39.  public:
  40.  
  41.   LP (void);
  42.   LP (const Vector& c);
  43.   LP (const Vector& c, const Bounds& b);
  44.   LP (const Vector& c, const Bounds& b, const LinConst& lc);
  45.   LP (const Vector& c,                  const LinConst& lc);
  46.  
  47.   virtual Vector minimize (void);
  48.   virtual Vector minimize (double& objf);
  49.   virtual Vector minimize (double& objf, int& inform);
  50.   virtual Vector minimize (double& objf, int& inform, Vector& lambda) = 0;
  51.  
  52.  protected:
  53.  
  54.   Vector c;
  55.   Bounds bnds;
  56.   LinConst lc;
  57. };
  58.  
  59. } // extern "C++"
  60.  
  61. #endif
  62.  
  63. /*
  64. ;;; Local Variables: ***
  65. ;;; mode: C++ ***
  66. ;;; page-delimiter: "^/\\*" ***
  67. ;;; End: ***
  68. */
  69.