src/work/athos/lp/lp_solver_glpk.cc
author athos
Fri, 25 Mar 2005 15:23:00 +0000
changeset 1260 d8491fce6751
permissions -rw-r--r--
(none)
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