Originally posted by: DianaHuerta
Hi, Ryankersh!...
I answer your questions:
You didn't mention which API you're using. Are you using Java, C++, .NET?
- I'm using Concert / C++ (now I'm using the 12.8 version as suggested by DanielJunglas) and Visual Studio 2017.
What happens if you try solving your .sav file using the LPex2.java program that is included when you install CPLEX?
- I have done 2 different tests.
--- One is solving my model (.SAV) by using concert / interactive cplex and setting some parameters (TimLim 3600 s, 1 thread, Barrier alg, parallel mode - deterministic)
--- The second test is solving the same model with concert/interactive-cplex and setting only TimLim to 3600 s (the remaining ones keep their default values)
In both cases, interactive cplex could solve the LP and concert+vs2017 couldn't.
Is it possible that you might be exporting a slightly different model than the one being solved? That is, are you calling exportModel at the line just before calling solve?
- I use .SAV files for the tests because, as far as I know, these files are more precise than the .LP files, I'm not sure if there is another way to avoid differences.
- Yes, I'm calling exportModel() just before solve(). You can see my implementation code of this part in SolveModel.txt (attached)
Are you using callbacks? Have you set any non-default parameters in your program (try writing these out with the writeParam method at the same location where you call exportModel())?
- No, I don't use callbacks.
- Yes, for one of my tests (in order to analyze this case), I'm considering some non-default parameters (see SolveModel.txt), but in both cases (concert/interactive) I set them in the same way.
Can you share the engine log created when running your program (if it's convenient, you can write this to a file using the setOut method)?
- Of course!. I copy the description from the reply I have done to DanielJunglas about a related comment (I will attached the same files, just in case).
You can find 4 files attached:
-- *defaultparam.log: Are the log files cplex(interactive)/pmed38(concert) obtained using all parameters with their corresponding default value (except for time - TimLim 3600 s)
-- *barrier.log: Are the log files cplex(interactive)/pmed38(concert) obtained using ... TimLim 3600 s, Barrier algorithm, 1 thread, Parallelmode - deterministic.
I hope it can help.
Thank you!
Diana.
#CPLEXOptimizers#DecisionOptimization