lemon/mip_cplex.cc
changeset 2279 2c3fee01d3ed
parent 2253 1645f6cc9667
child 2366 bfbdded3763a
equal deleted inserted replaced
2:921c38efd81d 3:ea5f2674f10e
    44 
    44 
    45     int indices[1];
    45     int indices[1];
    46     indices[0]=i;
    46     indices[0]=i;
    47     char ctype[1];
    47     char ctype[1];
    48     switch (col_type){
    48     switch (col_type){
    49       case LEMON_INTEGER:
    49       case INT:
    50 	ctype[0]=CPX_INTEGER;//'I'
    50 	ctype[0]=CPX_INTEGER;//'I'
    51 	break;
    51 	break;
    52       case REAL:
    52       case REAL:
    53 	ctype[0]=CPX_CONTINUOUS	;//'C'
    53 	ctype[0]=CPX_CONTINUOUS	;//'C'
    54 	break;
    54 	break;
    63     char ctype[1];
    63     char ctype[1];
    64     status = CPXgetctype (env, lp, ctype, i, i);
    64     status = CPXgetctype (env, lp, ctype, i, i);
    65     switch (ctype[0]){
    65     switch (ctype[0]){
    66 
    66 
    67     case CPX_INTEGER:
    67     case CPX_INTEGER:
    68       return LEMON_INTEGER;
    68       return INT;
    69     case CPX_CONTINUOUS:
    69     case CPX_CONTINUOUS:
    70       return REAL;
    70       return REAL;
    71     default:
    71     default:
    72       return REAL;//Error!
    72       return REAL;//Error!
    73     }
    73     }