but I want to get the best bound or the Gap of my solution after the 500 sec.
You can obtain the value of the best bound and the objective value of the best MIP solution after a solve by using
mipObjVal := getparam("XPRS_MIPOBJVAL")
bestBound := getparam("XPRS_BESTBOUND")
The gap is then
gap := abs(mipObjVal - bestBound)
Thanks you for your answer, I will try it now.
Retrieving data ...