Decision Optimization

Decision Optimization

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

 View Only
  • 1.  How to solve the memory running out problem in OPL?

    Posted Sat February 12, 2022 03:17 PM
    Hi,

    I have a question. I am working on a large scheduling model in which, I create a matrix of random numbers in the pre-processing block using IloOplCallJava. When I run the model for 7 or 8 iterations, I run out of memory. How can I overcome that problem.

    Thanks in advance,
    Mohamed

    ------------------------------
    Mohamed Awad
    ------------------------------

    #DecisionOptimization


  • 2.  RE: How to solve the memory running out problem in OPL?

    Posted Mon February 14, 2022 09:41 AM
    Hi,

    can you try with 1 worker ?

    execute
    {
      cp.param.Workers=1;
    }​

    ?

    regards



    ------------------------------
    [Alex] [Fleischer]
    [EMEA CPLEX Optimization Technical Sales]
    [IBM]
    ------------------------------



  • 3.  RE: How to solve the memory running out problem in OPL?

    Posted Mon February 14, 2022 01:40 PM
    Hi Alex,

    Thank you for your reply. As I understand, the number of workers is the number of threads (CPU cores) I can use. I would appreciate if you could explain why the memory usage can be reduced by decreasing the number of workers. 

    I have another question regarding the number of workers. I have a flow control model which is used to run a scheduling model for a number of iterations. My question is how can I run each iteration on a thread at the same time. 

    Thanks in advance,
    Mohamed

    ------------------------------
    Mohamed Awad
    ------------------------------



  • 4.  RE: How to solve the memory running out problem in OPL?

    Posted Mon February 14, 2022 02:17 PM
    Each thread will consume some memory so more threads mean more memory.

    To solve several models in // you may have a look at How to call many OPL models in parallel ?  in How to with OPL

    ------------------------------
    [Alex] [Fleischer]
    [EMEA CPLEX Optimization Technical Sales]
    [IBM]
    ------------------------------