Mercurial > hg > octave-nkf
diff 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 |
line wrap: on
line diff
--- a/liboctave/LP.h +++ b/liboctave/LP.h @@ -31,21 +31,22 @@ class LP : public base_minimizer { - public: +public: - LP (void) : base_minimizer () { } + LP (void) + : base_minimizer (), c (), bnds (), lc () { } LP (const ColumnVector& c_arg) - : base_minimizer (), c (c_arg) { } + : base_minimizer (), c (c_arg), bnds (), lc () { } LP (const ColumnVector& c_arg, const Bounds& b) - : base_minimizer (), c (c_arg), bnds (b) { } + : base_minimizer (), c (c_arg), bnds (b), lc () { } LP (const ColumnVector& c_arg, const Bounds& b, const LinConst& l) : base_minimizer (), c (c_arg), bnds (b), lc (l) { } LP (const ColumnVector& c_arg, const LinConst& l) - : base_minimizer (), c (c_arg), lc (l) { } + : base_minimizer (), c (c_arg), bnds (), lc (l) { } LP (const LP& a) : base_minimizer (a), c (a.c), bnds (a.bnds), lc (a.lc) { } @@ -65,7 +66,13 @@ ~LP (void) { } - protected: + ColumnVector linear_obj_coeff (void) const { return c; } + + Bounds bounds (void) const { return bnds; } + + LinConst linear_constraints (void) const { return lc; } + +protected: ColumnVector c; Bounds bnds;