12. MXMEMB
Use this parameter to set an upper limit on the amount of memory, in megabytes, LINGO allocates for its workspace for its model generator. When LINGO starts up, it sets aside a fixed amount of memory to use as a generator workspace. The default workspace size is 32Mb. You can determine the size of the current workspace and the amount of memory allotted in this workspace by issuing the MEM command.
Large models may run out of generator memory when attempting to solve them. In this case, you will receive the error message, "The model generator ran out of memory." To avoid this error, increase the value of MXMEMB and the issue the FREEZE command to preserve the change. You must then restart LINGO.
Note: Changes in LINGO's generator memory limit are not established until you restart the program.
The model generator is distinct from the actual solver engines. Memory allocated to the generator will not be available to the solver engines. Thus, you shouldn’t allocate any more memory to the generator than is required.
If you set MXMEMB to 0, LINGO will allocate all available memory when it starts up. This is not a recommended practice.
Note: | Setting LINGO's generator memory limit abnormally high can result in poor performance of LINGO and the operating system. By setting aside excessive amounts of memory for the model generator, both LINGO and the operating system may have to resort to swapping of virtual memory to and from the hard drive. Accessing the hard drive for memory swaps can slow down your machine dramatically. |