Originally posted by: legraina
Dear Forum,
I'm coding a VRP with CPO using IloIntVar. I've an issue with the travel times constraints.
Let dep[i] be the departing time of node i, succ[i] the successors of i, and d[i][j] the travel time from i to j.
This is the travel time constraints: IloElement(dep, succ[i]) - dep[i] - IloElement(d[i], succ[i]) >= 0;
The issue is with the size of the domain. dep has a very big domain and it's not possible to reduce it. It seems that cp is propagating these constraints many times, thus slowing extremely the resolution process: 45 branches in 10s .... I have pasted the log below. I would like to modify the priority of these constraints to be checked the fewest times possible at each node. Would I be force to code my own constraint ?
Thank you very much,
Antoine
! ----------------------------------------------------------------------------
! Satisfiability problem - 19 variables, 8 constraints
! LogVerbosity = Verbose
! LogPeriod = 1
! Workers = 4
! TimeLimit = 10
! Initial process time : 0.00s (0.00s extraction + 0.00s propagation)
! . Log search space : 128.4 (before), 128.4 (after)
! . Memory usage : 546.4 kB (before), 546.4 kB (after)
! Using parallel search with 4 workers.
! ----------------------------------------------------------------------------
! ----------------------------------------------------------------------------
! Search terminated by limit, 1 solution found.
! Number of branches : 45
! Number of fails : 13
! Total memory usage : 3.0 MB (3.0 MB CP Optimizer + 0.1 MB Concert)
! Time spent in solve : 10.00s (10.00s engine + 0.00s extraction)
! Search speed (br. / s) : 4.5
! ----------------------------------------------------------------------------
Number of branches : 45
Number of fails : 13
Number of choice points : 41
Number of variables : 25
Number of constraints : 10
Total memory usage : 3.0 MB (3.0 MB CP + 0.1 MB Concert)
Time in last solve : 10.00s (10.00s engine + 0.00s extraction)
Total time spent in CP : 10.00s
#CPOptimizer#DecisionOptimization