Changes in lemon/clp.cc [956:141f9c0db4a3:623:745e182d0139] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/clp.cc
r956 r623 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 105 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 76 76 int ClpLp::_addRow() { 77 77 _prob->addRow(0, 0, 0, -COIN_DBL_MAX, COIN_DBL_MAX); 78 return _prob->numberRows() - 1;79 }80 81 int ClpLp::_addRow(Value l, ExprIterator b, ExprIterator e, Value u) {82 std::vector<int> indexes;83 std::vector<Value> values;84 85 for(ExprIterator it = b; it != e; ++it) {86 indexes.push_back(it->first);87 values.push_back(it->second);88 }89 90 _prob->addRow(values.size(), &indexes.front(), &values.front(), l, u);91 78 return _prob->numberRows() - 1; 92 79 }
Note: See TracChangeset
for help on using the changeset viewer.