Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Large Memory Consumption in Java Process

    Posted 05/27/16 11:34 PM

    Originally posted by: C.Magno


    Hi everyone,

    In order to execute automatically some tests, I wrote an iteractive scritp to load different data files.
    In runtime, new models are generated. But, trying save memory, I'm calling the method end() for every model and data objects, as well for the cplex object.
    However, the consumption of memory during the tests is very large. The process of Java is consuming a lot of memory and eventually causes crash.
    Is there some way to avoid this large consumption of memory, or a another way to automate the calling of a main script with parameters?

    Regards.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Large Memory Consumption in Java Process

    Posted 05/28/16 03:48 AM

    Hi,

    do you have this issue while running in the IDE or with oplrun ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Large Memory Consumption in Java Process

    Posted 05/28/16 09:04 AM

    Originally posted by: C.Magno


    Hi Alex,

     

    I'm running the tests in the IDE.

     

    Regards.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Large Memory Consumption in Java Process

    Posted 05/28/16 11:26 AM

    Hi,

    then you should have a look at the technote http://www-01.ibm.com/support/docview.wss?uid=swg21460070

    Note that in the IDE, by default, the end() methods are not enabled, so you need to set mainEndEnabled to true, either with a settings file, or by script with thisOplModel.settings.mainEndEnabled = true;

    regards

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Large Memory Consumption in Java Process

    Posted 05/28/16 01:21 PM

    Originally posted by: C.Magno


    Hi Alex,

     

    It worked! Thank you very much again!  Smile

     

    Regards!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer