I’ve read that with NumSearchWorkers = 1 and an optimization function, the search should be deterministic. I have a case where I get the same, optimal, solution every time. But the execution time varies by an order of magnitude. Sometimes arriving at that answer in 2 to 3 seconds and sometimes takes 30 seconds or more. Is that normal? I would have expected a deterministic algorithm to have a somewhat stable execution time.
I’m attaching the output from logSearchProgress and the exported ProtoBufs of one fast run (“seconds-2.8…”) and one slow run (“seconds-34…”). I’m wondering if there are any hints to explain the discrepancy.
My setup:
OR-Tools 9.4.1874
Mac OS 12.4
Java
EnumerateAllSolutions true
SatParameters.SearchBranching.FIXED_SEARCH
DecisionStrategy:
VariableSelectionStrategy/CHOOSE_FIRST
DomainReductionStrategy/SELECT_MIN_VALUE
Marc