CPLEX - Benders' iteration count to parameter

Problems with syntax of GAMS
Post Reply
cnbrksnr
User
User
Posts: 13
Joined: 4 years ago

CPLEX - Benders' iteration count to parameter

Post 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.
cnbrksnr
User
User
Posts: 13
Joined: 4 years ago

Re: CPLEX - Benders' iteration count to parameter

Post 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."
Post Reply