Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Run time - processors and RAM usage

    Posted 04/21/12 11:47 PM

    Originally posted by: FANS_Nader_Al_Theeb


    Hello,

    I have a model written in CPLEX - c++

    my first question is how to print the computation or run time after I get the results?

    other thing, my machine is linux with 8 processors and RAM 7.75 GB, swap 12.1 GiB

    When I ran the program, only one of the processors usage is 98 - 100 % and others are not used, and RAM usage is more 95 %. This cause the machine very slow and I can't do anything else. After approximately 2 minutes, I got "KILLED" word.

    is it possible to make all processors participate in solving the problem with capacity less than their full capacity; to save time. And is it possible to reduce the RAM usage?

    Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Run time - processors and RAM usage

    Posted 04/23/12 02:07 AM

    Originally posted by: SystemAdmin


    In order to time execution you can use IloCplex::getCplexTime() (see here).

    Concerning out-of-memory and thread-usage: Could you attach the CPLEX log output here? It would be interesting to see when exactly the program runs out of memory. Is it while building the model? Is it during the solve?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Run time - processors and RAM usage

    Posted 04/23/12 01:06 PM

    Originally posted by: FANS_Nader_Al_Theeb


    Thank you Daniel. The problem of killed is solved now, because I change the volume of my problem.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Run time - processors and RAM usage

    Posted 04/24/12 01:52 AM

    Originally posted by: SystemAdmin


    OK, I suspect you were just running out of memory while building (not solving) the model. The only way to work around this is to use smaller models or switch to using the C callable library directly in order to reduce the memory footprint.
    #CPLEXOptimizers
    #DecisionOptimization