3
$\begingroup$

I noticed that when I run the solver via the GAMS IDE or Python API I don't use more than ~33% of my RAM. Is there an artificial barrier which I can put up or disable?

enter image description here

$\endgroup$
5
  • 2
    $\begingroup$ Why the driveby downvote? $\endgroup$ Dec 13 '20 at 19:34
  • $\begingroup$ Which solver are you using? $\endgroup$ Dec 14 '20 at 3:09
  • 2
    $\begingroup$ Not sure about the reason you want the model to use more memory, but -- of course -- small models use less memory than big ones. CPU percentage can be increased by using more threads (default in GAMS is 1 thread). BTW that will also increase memory usage. $\endgroup$ Dec 14 '20 at 7:42
  • $\begingroup$ @KevinDalmeijer IBM ILOG CPLEX 32.2.0 rc62c018 Released Aug 26, 2020 WEI x86 64bit/MS Window --- GAMS/Cplex Link licensed for continuous and discrete problems. Cplex 12.10.0.0 $\endgroup$
    – DerEddie
    Dec 14 '20 at 12:06
  • $\begingroup$ @ErwinKalvelagen Thank you. I let it be like that since i am only making a comparison and not striving for maximum speed? $\endgroup$
    – DerEddie
    Dec 14 '20 at 12:07
4
$\begingroup$

As @ErwinKalvelagen pointed out: by default gams cplex uses only 1 thread which results in a low usage of the pc ressources.

In order to change this one has to increase the thread number so that multiple cores can be used at the same time: https://support.gams.com/solver:multiple_cplex_threads

$\endgroup$
3
$\begingroup$

This analogy might help: CPU usage is like the power output of an engine - more is better in terms of performance. Memory usage is more like the heat produced by the engine - too much heat, aka memory capacity exceeded, and the engine breaks down.

There is simply no reason in trying to increase or even max out memory usage.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.