COIN-OR::LEMON - Graph Library

Changeset 2218:50f1a780a5ff in lemon-0.x for lemon/mip_glpk.cc


Ignore:
Timestamp:
09/21/06 16:46:28 (18 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2952
Message:

Interface to the cplex MIP solver: it is little, a bit sour but it is ours.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/mip_glpk.cc

    r2213 r2218  
    1717 */
    1818
    19 #ifndef LEMON_ILP_GLPK_CC
    20 #define LEMON_ILP_GLPK_CC
     19#ifndef LEMON_MIP_GLPK_CC
     20#define LEMON_MIP_GLPK_CC
    2121
    2222///\file
    23 ///\brief Implementation of the LEMON-GLPK lp solver interface.
     23///\brief Implementation of the LEMON-GLPK mip solver interface.
    2424
    2525#include <lemon/mip_glpk.h>
     
    3333  void MipGlpk::_colType(int i, MipGlpk::ColTypes col_type){
    3434    switch (col_type){
    35       case INTEGER:
     35      case LEMON_INTEGER:
    3636        lpx_set_col_kind(lp,i,LPX_IV);
    3737        break;
     
    4747    switch (lpx_get_col_kind(lp,i)){
    4848    case LPX_IV:
    49       return INTEGER;//Or binary
     49      return LEMON_INTEGER;//Or binary
    5050    case LPX_CV:
    5151      return REAL;
     
    111111    return lpx_mip_obj_val(lp);
    112112  }
    113 } //END OG NAMESPACE LEMON
     113} //END OF NAMESPACE LEMON
    114114
    115 #endif
     115#endif //END OF MIP_GLPK_CC
Note: See TracChangeset for help on using the changeset viewer.