Originally posted by: mslusky
Hi Philippe,
All the calls to getValue and getIntValue occur after the solve function, but I commented them out anyway, and I get the same behavior.
The message from the exception just says "non-fixed constrainted variable". There is nothing besides that.
The crash occurs inside the call to _cp.solve().
When we run the goal on our model, it displays "Greetings" once and then crashes. When we run the goal on a dummy model, it prints twice. Here is the full model file from our model:
! ---------------------------------------------------------------------------- ! Minimization problem - 1375 variables, 8060 constraints ! Preprocessing : 2126 extractables eliminated, 5 constraints generated ! DefaultInferenceLevel = Low ! LogVerbosity = Verbose ! LogPeriod = 1 ! SearchType = DepthFirst ! Workers = 1 ! TimeLimit = 180 ! Initial process time : 0.34s (0.06s extraction + 0.28s propagation) ! . Log search space : 6178.4 (before), 6137.6 (after) ! . Memory usage : 14.6 MB (before), 469.5 MB (after) ! Using sequential search. ! ---------------------------------------------------------------------------- ! Best Branches Non-fixed Branch decision Greetings ! Warning: not all model variables are fixed
(then it crashes, which is why the file doesn't end with the usual bits and branches, fails, etc.)
Here is the full model file from the dummy model:
! ---------------------------------------------------------------------------- ! Minimization problem - 360 variables, 360 constraints ! Initial process time : 0.01s (0.01s extraction + 0.00s propagation) ! . Log search space : 720.0 (before), 0.0 (after) ! . Memory usage : 1.4 MB (before), 1.4 MB (after) ! . Variables fixed : 360 ! Using sequential search. ! ---------------------------------------------------------------------------- ! Best Branches Non-fixed Branch decision Greetings * 0 0 0.01s - Greetings ! ---------------------------------------------------------------------------- ! Search terminated normally, 1 solution found. ! Best objective : 0 (optimal - effective tol. is 1.000000e-009) ! Number of branches : 0 ! Number of fails : 0 ! Total memory usage : 1.7 MB (1.5 MB CP Optimizer + 0.3 MB Concert) ! Time spent in solve : 0.01s (0.00s engine + 0.01s extraction) ! Search speed (br. / s) : 0 ! ----------------------------------------------------------------------------
What else can I try?
Thanks,
Marla
#CPOptimizer#DecisionOptimization