diff -r c160bf9f18ef -r 580af8cf2f6a lemon/clp.cc --- a/lemon/clp.cc Thu Nov 05 10:01:02 2009 +0100 +++ b/lemon/clp.cc Thu Nov 05 10:23:16 2009 +0100 @@ -78,6 +78,19 @@ return _prob->numberRows() - 1; } + int ClpLp::_addRow(Value l, ExprIterator b, ExprIterator e, Value u) { + std::vector indexes; + std::vector values; + + for(ExprIterator it = b; it != e; ++it) { + indexes.push_back(it->first); + values.push_back(it->second); + } + + _prob->addRow(values.size(), &indexes.front(), &values.front(), l, u); + return _prob->numberRows() - 1; + } + void ClpLp::_eraseCol(int c) { _col_names_ref.erase(_prob->getColumnName(c));