Memory allocation errors: how can I solve this?

  • 16 July 2019
  • 2 replies


In the attached model, you should only run the procedure ReadFromExcel. This should load all the relevant sets and parameters.

When I try to solve this model, I encounter different memory errors. I either see:

  • Memory allocation error
  • Memory allocation error: while assigning "xxx" bytes
Are there any steps that I could take with regards to the index domain of some parameters, constraints or variables, such that this model becomes solvable? I think there are no other errors in my model, but would also like to double check this.

Kind regards,


Best answer by mateusarakawa 16 July 2019, 18:55

View original

2 replies

Userlevel 5
Badge +2
Hi, @KoenV .

For instance, you are creating the variable "Production Allocation" for every f,p and t. Maybe you could control it by using the parameter ProductionCapability, i.e, you will only allocate memory for every (p,f) where f has capability of doing p.

Hope it helps.
Userlevel 6
Badge +6
Hi @KoenV would you mind to let us know how it worked out? Thanks!


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

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