Page 1 of 1

CPLEX - Benders' iteration count to parameter

Posted: Wed Oct 13, 2021 9:25 pm
by cnbrksnr
Dear helpful GAMS community,

I am using CPLEX Benders algorithm. I want to record the number of Benders iterations to a parameter. I can read it from the display but since I will be running many different problems, I have to write it to a GAMS parameter to keep track of everything. Can I do that?

Thanks in advance.

Re: CPLEX - Benders' iteration count to parameter

Posted: Thu Oct 21, 2021 11:44 am
by cnbrksnr
For the record:

I have found a solution by analyzing the .log file using MATLAB. I utilized the fact that in the .log file, the iteration count is always displayed at two lines above of the text "--- LP status (1): optimal."