Mercurial > hg > octave-lyh
comparison liboctave/LP.h @ 1528:dc527156c38c
[project @ 1995-10-05 01:44:18 by jwe]
author | jwe |
---|---|
date | Thu, 05 Oct 1995 01:45:30 +0000 |
parents | 611d403c7f3d |
children | 26411f9c7603 |
comparison
equal
deleted
inserted
replaced
1527:13d27938e778 | 1528:dc527156c38c |
---|---|
29 #endif | 29 #endif |
30 | 30 |
31 #include "dColVector.h" | 31 #include "dColVector.h" |
32 #include "Bounds.h" | 32 #include "Bounds.h" |
33 #include "LinConst.h" | 33 #include "LinConst.h" |
34 #include "base-min.h" | |
34 | 35 |
35 #ifndef Vector | 36 class LP : public base_minimizer |
36 #define Vector ColumnVector | |
37 #endif | |
38 | |
39 class LP | |
40 { | 37 { |
41 public: | 38 public: |
42 | 39 |
43 LP (void); | 40 LP (void) : base_minimizer () { } |
44 LP (const Vector& c); | |
45 LP (const Vector& c, const Bounds& b); | |
46 LP (const Vector& c, const Bounds& b, const LinConst& lc); | |
47 LP (const Vector& c, const LinConst& lc); | |
48 | 41 |
49 virtual Vector minimize (void); | 42 LP (const ColumnVector& c_arg) |
50 virtual Vector minimize (double& objf); | 43 : base_minimizer (), c (c_arg) { } |
51 virtual Vector minimize (double& objf, int& inform); | 44 |
52 virtual Vector minimize (double& objf, int& inform, Vector& lambda) = 0; | 45 LP (const ColumnVector& c_arg, const Bounds& b) |
46 : base_minimizer (), c (c_arg), bnds (b) { } | |
47 | |
48 LP (const ColumnVector& c_arg, const Bounds& b, const LinConst& l) | |
49 : base_minimizer (), c (c_arg), bnds (b), lc (l) { } | |
50 | |
51 LP (const ColumnVector& c_arg, const LinConst& l) | |
52 : base_minimizer (), c (c_arg), lc (l) { } | |
53 | 53 |
54 protected: | 54 protected: |
55 | 55 |
56 Vector c; | 56 ColumnVector c; |
57 Bounds bnds; | 57 Bounds bnds; |
58 LinConst lc; | 58 LinConst lc; |
59 }; | 59 }; |
60 | 60 |
61 #endif | 61 #endif |