Changeset 1326:85f1c483279e in lemon-0.x
- Timestamp:
- 04/08/05 16:40:37 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1765
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/demo/lp_demo.cc
r1322 r1326 39 39 } 40 40 lp.max(); 41 42 lp.presolver(true); 43 44 lp.messageLevel(3); 45 41 46 lp.solve(); 42 47 … … 46 51 int main() 47 52 { 48 LpGlpk lp_glpk;49 50 53 ListGraph g; 51 54 ListGraph::Node s; 52 55 ListGraph::Node t; 53 56 54 55 57 ListGraph::EdgeMap<double> cap(g); 56 58 -
src/lemon/lp_glpk.cc
r1321 r1326 314 314 } 315 315 316 void LpGlpk::presolver(bool b) 317 { 318 lpx_set_int_parm(lp, LPX_K_PRESOL, b); 319 } 320 316 321 317 322 } //END OF NAMESPACE LEMON -
src/lemon/lp_glpk.h
r1321 r1326 23 23 #include "lp_base.h" 24 24 extern "C" { 25 #include "glpk.h"25 #include <glpk.h> 26 26 } 27 27 … … 77 77 ///Set the verbosity of the messages 78 78 79 ///Set the verbosity of the messages 80 /// 79 81 ///\param m is the level of the messages output by the solver routines. 80 82 ///The possible values are: … … 84 86 ///- 3 --- full output (includes informational messages) 85 87 void messageLevel(int m); 88 ///Turns on or off the presolver 89 90 ///Turns on (\c b is \c true) or off (\c b is \c false) the presolver 91 /// 92 ///The presolver is off by default. 93 void presolver(bool b); 86 94 87 95 };
Note: See TracChangeset
for help on using the changeset viewer.