Intigrality gap from cplex

I call cplex from Matlab, cplexmiqp and lp to be specific. The outputs are x,fval,exitflag and info . Info contains all sorts but not the intigrality gap if it was terminated due to time. That is shown in the command window if i select display , iter in the options. I need to know this gap.
Is there a method to: a) specify the gap to be added to the info cell? b) read the command window output? (I am aware that I could cheat via text files but the info written there must pass through somewhere fist, no?)
Obviously a solution along a) would be preferable.
I'm aware that this may not be the correct forum, but I've tried quite a few sources to no avail so far. Thanks in advance,
ic_fly2

1 Kommentar

Rongxing Hu
Rongxing Hu am 12 Okt. 2020
Hi,
Did you find a way to achieve this purpose? I want to save the gap of cplex solution in matlab too.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Gefragt:

am 10 Jan. 2015

Kommentiert:

am 12 Okt. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by