COIN-OR::LEMON - Graph Library

Changeset 2386:81b47fc5c444 in lemon-0.x for lemon/lp_soplex.cc


Ignore:
Timestamp:
03/02/07 19:04:28 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
Message:

Hard Warning checking

  • based on the remark of the ZIB user
  • we do not use -Winline
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_soplex.cc

    r2368 r2386  
    4545  LpSolverBase &LpSoplex::_copyLp() {
    4646    LpSoplex* newlp = new LpSoplex();
    47     ((soplex::SPxLP&)*(newlp->soplex)) = *soplex;
     47    (*static_cast<soplex::SPxLP*>(newlp->soplex)) = *soplex;
    4848    return *newlp;
    4949  }
    5050
    5151  int LpSoplex::_addCol() {
    52     soplex::LPCol col;
    53     col.setLower(-soplex::infinity);
    54     col.setUpper(soplex::infinity);
    55     soplex->addCol(col);
     52    soplex::LPCol c;
     53    c.setLower(-soplex::infinity);
     54    c.setUpper(soplex::infinity);
     55    soplex->addCol(c);
    5656
    5757    colNames.push_back(std::string());
     
    6363
    6464  int LpSoplex::_addRow() {
    65     soplex::LPRow row;
    66     row.setLhs(-soplex::infinity);
    67     row.setRhs(soplex::infinity);
    68     soplex->addRow(row);
     65    soplex::LPRow r;
     66    r.setLhs(-soplex::infinity);
     67    r.setRhs(soplex::infinity);
     68    soplex->addRow(r);
    6969
    7070    dual_value.push_back(0.0);
     
    9393  }
    9494 
    95   void LpSoplex::_getColName(int col, std::string &name) const {
    96     name = colNames[col];
    97   }
    98  
    99   void LpSoplex::_setColName(int col, const std::string &name) {
    100     invColNames.erase(colNames[col]);
    101     colNames[col] = 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;
    102102    if (!name.empty()) {
    103       invColNames.insert(std::make_pair(name, col));
     103      invColNames.insert(std::make_pair(name, c));
    104104    }
    105105  }
Note: See TracChangeset for help on using the changeset viewer.