00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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
00086
00087
00088