COIN-OR::LEMON - Graph Library

Changeset 1895:5b01801efbc0 in lemon-0.x for lemon/lp_glpk.cc


Ignore:
Timestamp:
01/14/06 09:44:59 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2470
Message:
  • colName() added (untested on CPLEX)
  • possibility to set lower/upper bounds of several cols at once
  • setObj() -> obj()
  • setRow() -> row()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_glpk.cc

    r1875 r1895  
    105105  }
    106106
     107  void LpGlpk::_getColName(int col, std::string & name)
     108  {
     109   
     110    char *n = lpx_get_col_name(lp,col);
     111    name = n?n:"";
     112  }
     113 
     114 
     115  void LpGlpk::_setColName(int col, const std::string & name)
     116  {
     117    lpx_set_col_name(lp,col,const_cast<char*>(name.c_str()));
     118  }
     119 
    107120  void LpGlpk::_setRowCoeffs(int i,
    108121                             int length,
Note: See TracChangeset for help on using the changeset viewer.