lemon/soplex.cc
changeset 803 1b89e29c9fc7
parent 576 745e182d0139
child 877 141f9c0db4a3
     1.1 --- a/lemon/soplex.cc	Thu Dec 10 17:05:35 2009 +0100
     1.2 +++ b/lemon/soplex.cc	Thu Dec 10 17:18:25 2009 +0100
     1.3 @@ -91,6 +91,19 @@
     1.4      return soplex->nRows() - 1;
     1.5    }
     1.6  
     1.7 +  int SoplexLp::_addRow(Value l, ExprIterator b, ExprIterator e, Value u) {
     1.8 +    soplex::DSVector v;
     1.9 +    for (ExprIterator it = b; it != e; ++it) {
    1.10 +      v.add(it->first, it->second);
    1.11 +    }
    1.12 +    soplex::LPRow r(l, v, u);
    1.13 +    soplex->addRow(r);
    1.14 +
    1.15 +    _row_names.push_back(std::string());
    1.16 +
    1.17 +    return soplex->nRows() - 1;
    1.18 +  }
    1.19 +
    1.20  
    1.21    void SoplexLp::_eraseCol(int i) {
    1.22      soplex->removeCol(i);