I'm using the CPLEX solver via PULP in Python. When I solve a problem with time limit, CPLEX prints to the screen the code 107 which means "Time limit exceeded, but integer solution exists". However, if I print the status of pulp.LpStatus[problem.status]
what I get back is the value 1 which according to pulp's documentation means an optimal solution has been found, which is actually wrong.
How can I access the CPLEX status codes instead of PULP's?