Originally posted by: prasenjit mandal
I want to retrieve the cuts added by CPLEX during a MIP optimization For that I ran an API written in C. Now, I have few questions regarding this.
1) When I ran the code, I got a number of output files (the node LP files) in the following format:
nodelp<count>_<nodecount>.lp
Now, could you please tell me what these <count> and <nodecount> variables hold?
Let's take a file nodelp0_0 : Is the first "0" signifies the total number of file generated and the second "0" the root node???
Similarly, let's take another file nodelp1_0 : then what about this "1" and "0" here? (second file in root node!!!)
If, the file nodelp2_1 is also generated, then can we say that it is the third file in the 1st child node????
2) Generally, when I was running the code from Visual Basic to get an integer solution, I can get the output within 1 second.
But, when I am trying to retrieve the cplex generated cut, I am passing the lp file as an argument to the the program from the command prompt.
Now, from the command prompt (cuts retrieval), it is taking huge amount of time. Couple of hundreds of <nodelp<count>_<nodecount>.lp> type of files are generated.
Why it is taking some much time while it is taking just 1 second when I am using the Visual Basic front end?
From the Visual Basic log file (I am also attaching this log file: WPK6P4T7.log ), I observe mainly 4 types of cuts are added:
Mixed integer rounding cuts applied: 13
Zero-half cuts applied: 4
Lift and project cuts applied: 6
Gomory fractional cuts applied: 3
How can I retrieve these 26 cuts (13+4+6+3=26) from the C API? Could you please give me some idea?
3) I want to get the cuts which cplex are adding to the root nodes. But, for my problem, I have observed that the cplex didn't add any cut to nodelp0_0.lp file. But it has add some cut to other files?
Why it is like this?
I am herewith attaching the C API file (main.c) which I am using. Please find the file.
Thanks in advance.
#CPLEXOptimizers#DecisionOptimization