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
athos@1260
     1
// -*- c++ -*-
athos@1260
     2
#ifndef LEMON_LP_SOLVER_GLPK_CC
athos@1260
     3
#define LEMON_LP_SOLVER_GLPK_CC
athos@1260
     4
    //LOW LEVEL INTERFACE, MATRIX MANIPULATING FUNCTIONS
athos@1260
     5
extern "C" {
athos@1260
     6
#include "glpk.h"
athos@1260
     7
}
athos@1260
     8
#include "lp_solver_glpk.h"
athos@1260
     9
athos@1260
    10
namespace lemon {
athos@1260
    11
athos@1260
    12
athos@1260
    13
    /// \e
athos@1260
    14
    int LpGlpk::_addCol() { 
athos@1260
    15
      int i=lpx_add_cols(lp, 1);
athos@1260
    16
      _setColLowerBound(i, -INF);
athos@1260
    17
      _setColUpperBound(i, INF);
athos@1260
    18
      return i;
athos@1260
    19
    }
athos@1260
    20
    /// \e
athos@1260
    21
    int LpGlpk::_addRow() { 
athos@1260
    22
      int i=lpx_add_rows(lp, 1);
athos@1260
    23
      return i;
athos@1260
    24
    }
athos@1260
    25
athos@1260
    26
} //namespace lemon
athos@1260
    27
athos@1260
    28
#endif //LEMON_LP_SOLVER_GLPK_CC