COIN-OR::LEMON - Graph Library

Changeset 746:e4554cd6b2bf in lemon-1.2 for lemon/soplex.cc


Ignore:
Timestamp:
10/04/09 00:28:42 (15 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Phase:
public
Message:

Faster add row operation (#203)

One virtual function call instead of more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/soplex.cc

    r576 r746  
    9292  }
    9393
     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
    94107
    95108  void SoplexLp::_eraseCol(int i) {
Note: See TracChangeset for help on using the changeset viewer.