lemon/lp_glpk.cc
changeset 1902 e9af75c90c28
parent 1875 98698b69a902
child 1956 a055123339d5
equal deleted inserted replaced
11:7c1e8190d1a4 12:0d7bf9f4e486
   102     int rows[2];
   102     int rows[2];
   103     rows[1]=i;
   103     rows[1]=i;
   104     lpx_del_rows(lp, 1, rows);
   104     lpx_del_rows(lp, 1, rows);
   105   }
   105   }
   106 
   106 
       
   107   void LpGlpk::_getColName(int col, std::string & name)
       
   108   {
       
   109     
       
   110     char *n = lpx_get_col_name(lp,col);
       
   111     name = n?n:"";
       
   112   }
       
   113   
       
   114   
       
   115   void LpGlpk::_setColName(int col, const std::string & name)
       
   116   {
       
   117     lpx_set_col_name(lp,col,const_cast<char*>(name.c_str()));
       
   118   }
       
   119   
   107   void LpGlpk::_setRowCoeffs(int i, 
   120   void LpGlpk::_setRowCoeffs(int i, 
   108 			     int length,
   121 			     int length,
   109 			     const int   * indices, 
   122 			     const int   * indices, 
   110 			     const Value   * values )
   123 			     const Value   * values )
   111   {
   124   {