Skip to main content

I’m trying to define a limit to RAM memory available to solve a generated mathematical program. Is this function related to this?

 

I tried code below, but it’s stoping my solve before the time_limit defined, before the the GAP defined and also is not using 24 GB available. And before I changed the code to use gmp functions it was taking more than 11 GB.

 

 

 

Hi @erika.hashiguti. Using the procedure GMP::Instance::SetMemoryLimit has no effect for CPLEX but that was not mentioned in the documentation. We have updated the Function Reference:

https://documentation.aimms.com/functionreference/algorithmic-capabilities/the-gmp-library/gmp_instance-procedures-and-functions/gmp_instance_setmemorylimit.html

To limit the memory usage by CPLEX, when solving a MIP, you have to use the CPLEX option ‘Tree memory limit’. Note that this option is closely related to the CPLEX option ‘Node file’ as that option determines the action taken by CPLEX when the amount of memory required to store the Branch-and-Bound tree exceeds the limit set by ‘Tree memory limit’.


Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator