lemon/soplex.cc
changeset 843 81f7e910060b
parent 576 745e182d0139
child 877 141f9c0db4a3
equal deleted inserted replaced
4:9d63dce1b140 5:64c96bc2947a
    89     _row_names.push_back(std::string());
    89     _row_names.push_back(std::string());
    90 
    90 
    91     return soplex->nRows() - 1;
    91     return soplex->nRows() - 1;
    92   }
    92   }
    93 
    93 
       
    94   int SoplexLp::_addRow(Value l, ExprIterator b, ExprIterator e, Value u) {
       
    95     soplex::DSVector v;
       
    96     for (ExprIterator it = b; it != e; ++it) {
       
    97       v.add(it->first, it->second);
       
    98     }
       
    99     soplex::LPRow r(l, v, u);
       
   100     soplex->addRow(r);
       
   101 
       
   102     _row_names.push_back(std::string());
       
   103 
       
   104     return soplex->nRows() - 1;
       
   105   }
       
   106 
    94 
   107 
    95   void SoplexLp::_eraseCol(int i) {
   108   void SoplexLp::_eraseCol(int i) {
    96     soplex->removeCol(i);
   109     soplex->removeCol(i);
    97     _col_names_ref.erase(_col_names[i]);
   110     _col_names_ref.erase(_col_names[i]);
    98     _col_names[i] = _col_names.back();
   111     _col_names[i] = _col_names.back();