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 comentario

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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Preguntada:

el 10 de En. de 2015

Comentada:

el 12 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by