src/work/athos/lp/lp_solver_glpk.cc
author ladanyi
Tue, 05 Apr 2005 22:37:19 +0000
changeset 1308 0274efa2222f
permissions -rw-r--r--
Applied the changes which somehow vanished during my last merge. Thanks goes
to Marci for noticing this. In detail:
- added amsmath and amssymb latex packages for latex documentation
- src/demo is also scanned for doxygen input files
     1 // -*- c++ -*-
     2 #ifndef LEMON_LP_SOLVER_GLPK_CC
     3 #define LEMON_LP_SOLVER_GLPK_CC
     4     //LOW LEVEL INTERFACE, MATRIX MANIPULATING FUNCTIONS
     5 extern "C" {
     6 #include "glpk.h"
     7 }
     8 #include "lp_solver_glpk.h"
     9 
    10 namespace lemon {
    11 
    12 
    13     /// \e
    14     int LpGlpk::_addCol() { 
    15       int i=lpx_add_cols(lp, 1);
    16       _setColLowerBound(i, -INF);
    17       _setColUpperBound(i, INF);
    18       return i;
    19     }
    20     /// \e
    21     int LpGlpk::_addRow() { 
    22       int i=lpx_add_rows(lp, 1);
    23       return i;
    24     }
    25 
    26 } //namespace lemon
    27 
    28 #endif //LEMON_LP_SOLVER_GLPK_CC