Mercurial > hg > octave-lyh
comparison liboctave/LPsolve.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 | 503a75f6b9bc |
comparison
equal
deleted
inserted
replaced
1527:13d27938e778 | 1528:dc527156c38c |
---|---|
30 | 30 |
31 class ColumnVector; | 31 class ColumnVector; |
32 | 32 |
33 #include "LP.h" | 33 #include "LP.h" |
34 | 34 |
35 #ifndef Vector | |
36 #define Vector ColumnVector | |
37 #endif | |
38 | |
39 class LPsolve : public LP | 35 class LPsolve : public LP |
40 { | 36 { |
41 public: | 37 public: |
42 | 38 |
43 LPsolve (void) : LP () | 39 LPsolve (void) : LP () |
44 { set_default_options (); } | 40 { set_default_options (); } |
45 | 41 |
46 LPsolve (const Vector& c) : LP (c) | 42 LPsolve (const ColumnVector& c) : LP (c) |
47 { set_default_options (); } | 43 { set_default_options (); } |
48 | 44 |
49 LPsolve (const Vector& c, const Bounds& b) : LP (c, b) | 45 LPsolve (const ColumnVector& c, const Bounds& b) : LP (c, b) |
50 { set_default_options (); } | 46 { set_default_options (); } |
51 | 47 |
52 LPsolve (const Vector& c, const Bounds& b, const LinConst& lc) | 48 LPsolve (const ColumnVector& c, const Bounds& b, const LinConst& lc) |
53 : LP (c, b, lc) { set_default_options (); } | 49 : LP (c, b, lc) { set_default_options (); } |
54 | 50 |
55 LPsolve (const Vector& c, const LinConst& lc) : LP (c, lc) | 51 LPsolve (const ColumnVector& c, const LinConst& lc) : LP (c, lc) |
56 { set_default_options (); } | 52 { set_default_options (); } |
57 | 53 |
58 virtual Vector minimize (double& objf, int& inform, Vector& lambda); | 54 ColumnVector do_minimize (double& objf, int& inform, ColumnVector& lambda); |
59 | 55 |
60 private: | 56 private: |
61 | 57 |
62 void set_default_options (void); | 58 void set_default_options (void); |
63 }; | 59 }; |