Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  how to avoid callback errors due to compressed node files

    Posted 02/08/19 06:17 AM

    Originally posted by: srinit34


    hi

    I have a branch callback where I attach node data into every node with makebranch()

    After some time, I default to Cplex branching, so I no longer need th enode data sitting around in the active nodes

    So at this point, I attach a node callback that iterates thru all the leafs, and sets  the node data in every leaf to null, expecting the java runtime to garnage collect the unused node data objects

    However, I get these exceptions: 

              NodeCallabck exception: node data not available for  node files compressed to disk : getNodedata ( node id); //or setnodeData(node id, null)

     

    What is the correct way to do this, if it can be done?

     Note that I have node file to disk and compressed ( option 3 ) , which I think I will need because the MIPs I am solving are hard.

    Judging by this thread, it seems I need a "storage manager", and it is actually not possible to iterate thru all the nodes and set node data to null in a node call back (because some of them are compressed to disk).

    https://www.ibm.com/developerworks/community/forums/html/topic?id=d7fdfa0b-1b9a-441f-a2f2-6c536441a553&ps=25 

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: how to avoid callback errors due to compressed node files

    Posted 02/08/19 07:50 AM

    It is not possible to get the user data object for a node that is currently swapped out to disk.

    A simpler approach to what you are doing would be to have a map that maps a node's id to its respective node data. Then, if you no longer need the node data you just drop the map. Maybe this is what you mean by "storage manager"?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: how to avoid callback errors due to compressed node files

    Posted 02/08/19 09:15 AM

    Originally posted by: srinit34


    yes, thank you.


    #CPLEXOptimizers
    #DecisionOptimization