Originally posted by: AngelosGeorghiou
Hi,
I have now run both version of the proposed code with very similar results. I don't believe that the extract() function is the one causing the trouble. I have run and timed both on the attached problems with the following results
model1.lp, importModel() takes ~10 seconds, extract() takes ~1second
model2.lp, importModel() takes ~120 seconds, extract() takes ~1second
The funny thing is that it takes less than a second to read and solve both problems with the interactive optimizer.
Is it possible that I am compiling the code with the incorrect flags? I am currently compiling my c++ program with (-m64 -O -fPIC -fexceptions -DIL_STD -lilocplex -lcplex -lconcert -lm -lpthread -Wall -w -O3 -o)
Thank you for your help
best wishes,
Angelos
#CPLEXOptimizers#DecisionOptimization