メインページ   クラス階層   構成   ファイル一覧   構成メンバ   ファイルメンバ  

LP.h

解説を見る。
00001 /*
00002 
00003 Copyright (C) 1996, 1997 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 2, or (at your option) any
00010 later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, write to the Free
00019 Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020 
00021 */
00022 
00023 #if !defined (octave_LP_h)
00024 #define octave_LP_h 1
00025 
00026 #include "dColVector.h"
00027 #include "Bounds.h"
00028 #include "LinConst.h"
00029 #include "base-min.h"
00030 
00031 class
00032 octave_LP : public base_minimizer
00033 {
00034 public:
00035 
00036   octave_LP (void)
00037     : base_minimizer (), cvec (), bnds (), lin_constr () { }
00038 
00039   octave_LP (const ColumnVector& c)
00040     : base_minimizer (), cvec (c), bnds (), lin_constr () { }
00041 
00042   octave_LP (const ColumnVector& c, const Bounds& b)
00043     : base_minimizer (), cvec (c), bnds (b), lin_constr () { }
00044 
00045   octave_LP (const ColumnVector& c, const Bounds& b, const LinConst& l)
00046     : base_minimizer (), cvec (c), bnds (b), lin_constr (l) { }
00047 
00048   octave_LP (const ColumnVector& c, const LinConst& l)
00049     : base_minimizer (), cvec (c), bnds (), lin_constr (l) { }
00050 
00051   octave_LP (const octave_LP& a)
00052     : base_minimizer (a), cvec (a.cvec), bnds (a.bnds), lin_constr (a.lin_constr) { }
00053 
00054   octave_LP& operator = (const octave_LP& a)
00055     {
00056       if (this != &a)
00057         {
00058           base_minimizer::operator = (a);
00059 
00060           cvec = a.cvec;
00061           bnds = a.bnds;
00062           lin_constr = a.lin_constr;
00063         }
00064       return *this;
00065     }
00066 
00067   ~octave_LP (void) { }
00068 
00069   ColumnVector linear_obj_coeff (void) const { return cvec; }
00070 
00071   Bounds bounds (void) const { return bnds; }
00072 
00073   LinConst linear_constraints (void) const { return lin_constr; }
00074 
00075 protected:
00076 
00077   ColumnVector cvec;
00078   Bounds bnds;
00079   LinConst lin_constr;
00080 };
00081 
00082 #endif
00083 
00084 /*
00085 ;;; Local Variables: ***
00086 ;;; mode: C++ ***
00087 ;;; End: ***
00088 */

Wed Dec 29 11:51:43 2004に生成されました。 doxygen1.2.18
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送