Fixing code for running cplex solver