Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Incorrect checksum for freed object

    Posted 07/31/17 05:50 AM

    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


  • 2.  Re: Incorrect checksum for freed object

    Posted 07/31/17 11:50 AM

    Originally posted by: PhilippeLaborie


    Hello,

    It is difficult to help without the code, or at least without an extract of the code (at this point we do not need the actual content of the models) that shows how you iteratively create/modify/solve your models. You say that the error occurs when calling cp.solve(), does it display some part of the search log before the error? Also, which version of CP Optimizer are you using?

    Philippe


    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: Incorrect checksum for freed object

    Posted 08/07/17 01:53 AM

    Originally posted by: Saumya_Bhatnagar


    Just to add on to it, the code works fine with CPLEX 12.6 version (in both Windows and Mac).


    #CPOptimizer
    #DecisionOptimization