I am solving am optimization problem in Cplex opl of version 12.10. The problem is formulated as a Mixed Integer Cone Programming model. I execute the code separately for each of the 24 hours of the day, altering the input data accordingly. The optimization process varies in time; for certain hours, the results are obtained within 3 to 4 minutes, while for others, it takes up to 25 minutes to achieve the optimal solution.
My optimization problem involves determining the optimal switch statuses for a power network with 37 switches. The primary objective is to minimize the losses of the network while maintaining the radial structure of the network while implementing necessary reconfigurations.The optimization problem determines the optimal status of the switches.5 switches should be open in each hour. The optimization process is conducted for each hour of the day, considering varying load conditions to find out five open switches. I observe significant variation in computation times, with some hours producing results within a few minutes, while others require 25 to 30 minutes
I encourage you to have a look at "Evaluating variability" in the CPLEX documentation.
This will help you hedge against good and bad luck.
This is available in OPL and other APIs
NB: You can also write some code like https://github.com/AlexFleischerParis/howtowithopl/blob/master/randomseedvariability.mod