Changeset 2386:81b47fc5c444 in lemon-0.x for lemon/lp_soplex.cc
- Timestamp:
- 03/02/07 19:04:28 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_soplex.cc
r2368 r2386 45 45 LpSolverBase &LpSoplex::_copyLp() { 46 46 LpSoplex* newlp = new LpSoplex(); 47 ( (soplex::SPxLP&)*(newlp->soplex)) = *soplex;47 (*static_cast<soplex::SPxLP*>(newlp->soplex)) = *soplex; 48 48 return *newlp; 49 49 } 50 50 51 51 int LpSoplex::_addCol() { 52 soplex::LPCol c ol;53 c ol.setLower(-soplex::infinity);54 c ol.setUpper(soplex::infinity);55 soplex->addCol(c ol);52 soplex::LPCol c; 53 c.setLower(-soplex::infinity); 54 c.setUpper(soplex::infinity); 55 soplex->addCol(c); 56 56 57 57 colNames.push_back(std::string()); … … 63 63 64 64 int LpSoplex::_addRow() { 65 soplex::LPRow r ow;66 r ow.setLhs(-soplex::infinity);67 r ow.setRhs(soplex::infinity);68 soplex->addRow(r ow);65 soplex::LPRow r; 66 r.setLhs(-soplex::infinity); 67 r.setRhs(soplex::infinity); 68 soplex->addRow(r); 69 69 70 70 dual_value.push_back(0.0); … … 93 93 } 94 94 95 void LpSoplex::_getColName(int c ol, std::string &name) const {96 name = colNames[c ol];97 } 98 99 void LpSoplex::_setColName(int c ol, const std::string &name) {100 invColNames.erase(colNames[c ol]);101 colNames[c ol] = name;95 void LpSoplex::_getColName(int c, std::string &name) const { 96 name = colNames[c]; 97 } 98 99 void LpSoplex::_setColName(int c, const std::string &name) { 100 invColNames.erase(colNames[c]); 101 colNames[c] = name; 102 102 if (!name.empty()) { 103 invColNames.insert(std::make_pair(name, c ol));103 invColNames.insert(std::make_pair(name, c)); 104 104 } 105 105 }
Note: See TracChangeset
for help on using the changeset viewer.