Hi Xavier,
I am actually surprised at this answer to the OP.
Surely, one can within a user cut callback have have CPLEX print the lp file via CPXgetcallbacknodelp to print the LP file at the current node, yes? I am still in CPLEX 12.10. Is this no longer possible in the latest CPLEX version? I sure hope not!
Babak, can you look at
https://www.ibm.com/docs/en/icos/20.1.0?topic=g-cpxxgetcallbacknodelp-cpxgetcallbacknodelp and try to see if that would work? I use this routinely in CPLEX 12.10 to examine cuts I add and what CPLEX adds. The CPLEX added cuts will have some mnemonics such as r1, m1, etc. that the user cannot control.
Thanks.
------------------------------
CPLEX User
------------------------------
Original Message:
Sent: Mon March 14, 2022 01:00 PM
From: Xavier Nodet
Subject: Accessing to Cuts added by CPLEX
I'm afraid the answer is no: there is no API to gain access to the cuts, whether when they are generated or when they are actually added to the model.
------------------------------
Xavier
Original Message:
Sent: Mon March 14, 2022 11:51 AM
From: Babak Akbarzadeh
Subject: Accessing to Cuts added by CPLEX
Dear all,
Is there any way that I print out, or have access to all cuts generated and added by CPLEX to the model during the cutting plane algorithm? I just want to analyze those cuts. If you have this experience I appreciate it if you share how it can be done, regardless of the programming language that you used.
------------------------------
Babak Akbarzadeh
------------------------------
#DecisionOptimization