lemon/mip_glpk.cc
changeset 2152 ba87d27667cd
parent 2148 ab368e0ab662
child 2185 e2bf51eab7f7
equal deleted inserted replaced
1:ae80551d0886 2:58b45d366d4b
    28   
    28   
    29   MipGlpk::MipGlpk() {
    29   MipGlpk::MipGlpk() {
    30     lpx_set_class(lp,LPX_MIP);
    30     lpx_set_class(lp,LPX_MIP);
    31   }
    31   }
    32 
    32 
    33   void MipGlpk::_colType(int i, ColTypes col_type){
    33   void MipGlpk::_colType(int i, MipGlpk::ColTypes col_type){
    34     switch (col_type){
    34     switch (col_type){
    35       case INTEGER:
    35       case INTEGER:
    36 	lpx_set_col_kind(lp,i,LPX_IV);
    36 	lpx_set_col_kind(lp,i,LPX_IV);
    37 	break;
    37 	break;
    38       case REAL:
    38       case REAL:
    39 	lpx_set_col_kind(lp,i,LPX_CV);
    39 	lpx_set_col_kind(lp,i,LPX_CV);
    40 	break;
    40 	break;
    41       default:
    41     default:;
    42         //FIXME problem
    42         //FIXME problem
    43     }
    43     }
    44   }
    44   }
    45   
    45   
    46   ColTypes MipGlpk::_colType(int i){
    46   MipGlpk::ColTypes MipGlpk::_colType(int i){
    47     switch (lpx_get_col_kind(lp,i)){
    47     switch (lpx_get_col_kind(lp,i)){
    48     case LPX_IV:
    48     case LPX_IV:
    49       return INTEGER;//Or binary
    49       return INTEGER;//Or binary
    50     case LPX_CV:
    50     case LPX_CV:
    51       return REAL;
    51       return REAL;