Mercurial > hg > octave-nkf
comparison liboctave/LP.h @ 1867:52e7bca8ce33
[project @ 1996-02-04 11:19:32 by jwe]
author | jwe |
---|---|
date | Sun, 04 Feb 1996 11:28:40 +0000 |
parents | 12a94a17509d |
children | 1b57120c997b |
comparison
equal
deleted
inserted
replaced
1866:b6c48195b552 | 1867:52e7bca8ce33 |
---|---|
29 #include "LinConst.h" | 29 #include "LinConst.h" |
30 #include "base-min.h" | 30 #include "base-min.h" |
31 | 31 |
32 class LP : public base_minimizer | 32 class LP : public base_minimizer |
33 { | 33 { |
34 public: | 34 public: |
35 | 35 |
36 LP (void) : base_minimizer () { } | 36 LP (void) |
37 : base_minimizer (), c (), bnds (), lc () { } | |
37 | 38 |
38 LP (const ColumnVector& c_arg) | 39 LP (const ColumnVector& c_arg) |
39 : base_minimizer (), c (c_arg) { } | 40 : base_minimizer (), c (c_arg), bnds (), lc () { } |
40 | 41 |
41 LP (const ColumnVector& c_arg, const Bounds& b) | 42 LP (const ColumnVector& c_arg, const Bounds& b) |
42 : base_minimizer (), c (c_arg), bnds (b) { } | 43 : base_minimizer (), c (c_arg), bnds (b), lc () { } |
43 | 44 |
44 LP (const ColumnVector& c_arg, const Bounds& b, const LinConst& l) | 45 LP (const ColumnVector& c_arg, const Bounds& b, const LinConst& l) |
45 : base_minimizer (), c (c_arg), bnds (b), lc (l) { } | 46 : base_minimizer (), c (c_arg), bnds (b), lc (l) { } |
46 | 47 |
47 LP (const ColumnVector& c_arg, const LinConst& l) | 48 LP (const ColumnVector& c_arg, const LinConst& l) |
48 : base_minimizer (), c (c_arg), lc (l) { } | 49 : base_minimizer (), c (c_arg), bnds (), lc (l) { } |
49 | 50 |
50 LP (const LP& a) | 51 LP (const LP& a) |
51 : base_minimizer (a), c (a.c), bnds (a.bnds), lc (a.lc) { } | 52 : base_minimizer (a), c (a.c), bnds (a.bnds), lc (a.lc) { } |
52 | 53 |
53 LP& operator = (const LP& a) | 54 LP& operator = (const LP& a) |
63 return *this; | 64 return *this; |
64 } | 65 } |
65 | 66 |
66 ~LP (void) { } | 67 ~LP (void) { } |
67 | 68 |
68 protected: | 69 ColumnVector linear_obj_coeff (void) const { return c; } |
70 | |
71 Bounds bounds (void) const { return bnds; } | |
72 | |
73 LinConst linear_constraints (void) const { return lc; } | |
74 | |
75 protected: | |
69 | 76 |
70 ColumnVector c; | 77 ColumnVector c; |
71 Bounds bnds; | 78 Bounds bnds; |
72 LinConst lc; | 79 LinConst lc; |
73 }; | 80 }; |