Mercurial > hg > octave-nkf
comparison liboctave/LP.h @ 4587:7b957b442818
[project @ 2003-11-10 15:50:39 by jwe]
author | jwe |
---|---|
date | Mon, 10 Nov 2003 15:50:40 +0000 |
parents | 86e4baa81410 |
children | 4c8a2e4e0717 |
comparison
equal
deleted
inserted
replaced
4586:7e08de0d1a98 | 4587:7b957b442818 |
---|---|
32 octave_LP : public base_minimizer | 32 octave_LP : public base_minimizer |
33 { | 33 { |
34 public: | 34 public: |
35 | 35 |
36 octave_LP (void) | 36 octave_LP (void) |
37 : base_minimizer (), c (), bnds (), lc () { } | 37 : base_minimizer (), cvec (), bnds (), lin_constr () { } |
38 | 38 |
39 octave_LP (const ColumnVector& c_arg) | 39 octave_LP (const ColumnVector& c) |
40 : base_minimizer (), c (c_arg), bnds (), lc () { } | 40 : base_minimizer (), cvec (c), bnds (), lin_constr () { } |
41 | 41 |
42 octave_LP (const ColumnVector& c_arg, const Bounds& b) | 42 octave_LP (const ColumnVector& c, const Bounds& b) |
43 : base_minimizer (), c (c_arg), bnds (b), lc () { } | 43 : base_minimizer (), cvec (c), bnds (b), lin_constr () { } |
44 | 44 |
45 octave_LP (const ColumnVector& c_arg, const Bounds& b, const LinConst& l) | 45 octave_LP (const ColumnVector& c, const Bounds& b, const LinConst& l) |
46 : base_minimizer (), c (c_arg), bnds (b), lc (l) { } | 46 : base_minimizer (), cvec (c), bnds (b), lin_constr (l) { } |
47 | 47 |
48 octave_LP (const ColumnVector& c_arg, const LinConst& l) | 48 octave_LP (const ColumnVector& c, const LinConst& l) |
49 : base_minimizer (), c (c_arg), bnds (), lc (l) { } | 49 : base_minimizer (), cvec (c), bnds (), lin_constr (l) { } |
50 | 50 |
51 octave_LP (const octave_LP& a) | 51 octave_LP (const octave_LP& a) |
52 : base_minimizer (a), c (a.c), bnds (a.bnds), lc (a.lc) { } | 52 : base_minimizer (a), cvec (a.cvec), bnds (a.bnds), lin_constr (a.lin_constr) { } |
53 | 53 |
54 octave_LP& operator = (const octave_LP& a) | 54 octave_LP& operator = (const octave_LP& a) |
55 { | 55 { |
56 if (this != &a) | 56 if (this != &a) |
57 { | 57 { |
58 base_minimizer::operator = (a); | 58 base_minimizer::operator = (a); |
59 | 59 |
60 c = a.c; | 60 cvec = a.cvec; |
61 bnds = a.bnds; | 61 bnds = a.bnds; |
62 lc = a.lc; | 62 lin_constr = a.lin_constr; |
63 } | 63 } |
64 return *this; | 64 return *this; |
65 } | 65 } |
66 | 66 |
67 ~octave_LP (void) { } | 67 ~octave_LP (void) { } |
68 | 68 |
69 ColumnVector linear_obj_coeff (void) const { return c; } | 69 ColumnVector linear_obj_coeff (void) const { return cvec; } |
70 | 70 |
71 Bounds bounds (void) const { return bnds; } | 71 Bounds bounds (void) const { return bnds; } |
72 | 72 |
73 LinConst linear_constraints (void) const { return lc; } | 73 LinConst linear_constraints (void) const { return lin_constr; } |
74 | 74 |
75 protected: | 75 protected: |
76 | 76 |
77 ColumnVector c; | 77 ColumnVector cvec; |
78 Bounds bnds; | 78 Bounds bnds; |
79 LinConst lc; | 79 LinConst lin_constr; |
80 }; | 80 }; |
81 | 81 |
82 #endif | 82 #endif |
83 | 83 |
84 /* | 84 /* |