lemon/mip_cplex.cc
changeset 2236 9f329faa4aee
parent 2219 c263168e0964
child 2253 1645f6cc9667
equal deleted inserted replaced
0:003355fec661 1:1e3199d8bbe9
    30     //This is unnecessary: setting integrality constraints on
    30     //This is unnecessary: setting integrality constraints on
    31     //variables will set this, too 
    31     //variables will set this, too 
    32 
    32 
    33     ///\todo The constant CPXPROB_MIP is
    33     ///\todo The constant CPXPROB_MIP is
    34     ///called CPXPROB_MILP in later versions
    34     ///called CPXPROB_MILP in later versions
       
    35 #if CPX_VERSION < 800
    35     CPXchgprobtype( env,  lp, CPXPROB_MIP);
    36     CPXchgprobtype( env,  lp, CPXPROB_MIP);
       
    37 #else
       
    38     CPXchgprobtype( env,  lp, CPXPROB_MILP);
       
    39 #endif
       
    40 
    36   }
    41   }
    37 
    42 
    38   void MipCplex::_colType(int i, MipCplex::ColTypes col_type){
    43   void MipCplex::_colType(int i, MipCplex::ColTypes col_type){
    39 
    44 
    40     // Note If a variable is to be changed to binary, a call to CPXchgbds
    45     // Note If a variable is to be changed to binary, a call to CPXchgbds