Record optimality gap at different CPU times Topic is solved

Problems with syntax of GAMS
Post Reply
moosavi_69
User
User
Posts: 16
Joined: 2 years ago

Record optimality gap at different CPU times

Post by moosavi_69 » 2 months ago

Dear experts,

Suppose a hard constraint mathematical model that could be solved by the CPLEX solver. I want to automatically record the optimality gap at different CPU times, e.g., 5 secs, 10 secs, 30 secs and 60 secs.

What is the syntax that I can use to record the above information? If you need more details, pls let me know.

Many thanks for your consideration.

Bests,
Amirhossein

User avatar
dirkse
Moderator
Moderator
Posts: 84
Joined: 3 years ago
Location: Fairfax, VA

Re: Record optimality gap at different CPU times

Post by dirkse » 2 months ago

Amirhossein,

The solvers XPRESS, SBB, and CPLEX all have a mipTrace facility that records bestBound/bestFound values. You can create what you want from this.

https://www.gams.com/latest/docs/S_XPRE ... h=miptrace
https://www.gams.com/latest/docs/S_SBB. ... h=miptrace
https://www.gams.com/latest/docs/S_CPLE ... h=miptrace

-Steve

Post Reply