CPLEX - Benders' iteration count to parameter

Problems with syntax of GAMS
Post Reply
cnbrksnr
User
User
Posts: 12
Joined: 1 year ago

CPLEX - Benders' iteration count to parameter

Post by cnbrksnr » 1 week ago

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: 12
Joined: 1 year ago

Re: CPLEX - Benders' iteration count to parameter

Post by cnbrksnr » 2 days ago

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