COIN-OR::LEMON - Graph Library

Changeset 2366:bfbdded3763a in lemon-0.x for lemon/mip_glpk.cc


Ignore:
Timestamp:
02/16/07 20:11:31 (13 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3181
Message:

Using const in lp interface
colByName functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/mip_glpk.cc

    r2267 r2366  
    4141  }
    4242 
    43   MipGlpk::ColTypes MipGlpk::_colType(int i){
     43  MipGlpk::ColTypes MipGlpk::_colType(int i) const {
    4444    switch (lpx_get_col_kind(lp,i)){
    4545    case LPX_IV:
     
    5353  }
    5454 
    55   LpGlpk::SolveExitStatus MipGlpk::_solve(){
     55  LpGlpk::SolveExitStatus MipGlpk::_solve() {
    5656    int result = lpx_simplex(lp);
    5757    //
     
    7272
    7373
    74   LpGlpk::SolutionStatus MipGlpk::_getMipStatus(){
     74  LpGlpk::SolutionStatus MipGlpk::_getMipStatus() const {
    7575
    7676    if (lpx_get_status(lp)==LPX_OPT){
     
    101101  } 
    102102
    103   MipGlpk::Value MipGlpk::_getPrimal(int i){
     103  MipGlpk::Value MipGlpk::_getPrimal(int i) const {
    104104    return lpx_mip_col_val(lp,i);
    105105  }
    106106 
    107   MipGlpk::Value MipGlpk::_getPrimalValue(){
     107  MipGlpk::Value MipGlpk::_getPrimalValue() const {
    108108    return lpx_mip_obj_val(lp);
    109109  }
Note: See TracChangeset for help on using the changeset viewer.