Originally posted by: Saumya_Bhatnagar
Hi,
I am implementing a variation of RCPSP using CP Optimizer and Java, wherein the code that generates and solves the model is called iteratively. After adding the objective and the constraints to the model, when I invoke the cp.solve() method, I get the following error:
java(58749,0x7fffee82c3c0) malloc: *** error for object 0x7fa90978bab8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
The initial iterations run fine without any problem, but it is in the 3rd or 4th iteration that this error pops up. I do not explicitly call end() on any of the objects, as recommended in CP Optimizer's Java API manual.
Any pointers on this would be really helpful.
#CPOptimizer#DecisionOptimization