COIN-OR::LEMON - Graph Library

Changeset 989:38e1d4383262 in lemon-main for lemon/cbc.cc


Ignore:
Timestamp:
05/06/12 17:18:39 (12 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
991:a10624ed1997, 1054:c40a9d94442d
Parents:
987:cfbabca1b4e9 (diff), 988:8d281761dea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Phase:
public
Message:

Merge bugfix #441

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/cbc.cc

    r974 r989  
    436436
    437437    _prob = new CoinModel();
    438     rows.clear();
    439     cols.clear();
    440438  }
    441439
  • lemon/cbc.cc

    r988 r989  
    9090  }
    9191
     92  int CbcMip::_addRow(Value l, ExprIterator b, ExprIterator e, Value u) {
     93    std::vector<int> indexes;
     94    std::vector<Value> values;
     95
     96    for(ExprIterator it = b; it != e; ++it) {
     97      indexes.push_back(it->first);
     98      values.push_back(it->second);
     99    }
     100
     101    _prob->addRow(values.size(), &indexes.front(), &values.front(), l, u);
     102    return _prob->numberRows() - 1;
     103  }
    92104
    93105  void CbcMip::_eraseCol(int i) {
Note: See TracChangeset for help on using the changeset viewer.