diff -r 7c4ba7daaf5f -r 2b6bffe0e7e8 lemon/cbc.cc --- a/lemon/cbc.cc Tue Dec 20 17:44:38 2011 +0100 +++ b/lemon/cbc.cc Tue Dec 20 18:15:14 2011 +0100 @@ -94,6 +94,18 @@ return _prob->numberRows() - 1; } + int CbcMip::_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 CbcMip::_eraseCol(int i) { _prob->deleteColumn(i);