Originally posted by: Trino
Hello, I have an algorithm in c++ that calls cplex to solve a certain formulation and at the end of each iteration it may add some additional constraints, then call cplex again, and so on...
I'm limiting the number of threads in 1 by using the following code:
cplex.setParam(IloCplex::Threads, 1);
At the end of each iteration I call the method getTime() of the instance of IloCplex that I use to solve my model in order to accumulate the total time. What happens is that sometimes the total time calculated using this method is very different from the one I calculate by myself using the library -ltr of linux (sometimes double the time!). What I though is that cplex may be using another thread, but I checked and I was setting the number of threads, so I don't know why it is giving me these results, can somebody give me some insight about this?
Thanks.
#CPLEXOptimizers#DecisionOptimization