I would like to know how to use MIP callback in Python CPLEX API to record feasible solution. Currently my cplex model can run for 10 hours and it seems that the objective value didn't improve at all, however I couldn't stop halfway since the data will be lost, so I'd like to know how to use callback in an MILP problem to record feasible solution
Edit: I'm not using docplex, I used cplex
import cplex