Hello Andrew,

for "0;" csv needs only two bytes. A double in C needs 8 bytes. Add pointers
in linked lists, memory for building the constraints in GMPL, memory for the
model in the GLPK library, and so forth. Yes reading the model into GMPL
will
need a whole lot more memory than your CSV file.

GLPK runs fine on 64bit. So you might just try on a bigger machine.

Given 200 Mb of raw data you may have to write a program that directly calls
the GLPK library. If you do not like C, there is a good choice of language
bindings available, see
http://en.wikibooks.org/wiki/GLPK

Best regards

Xypron

On 22.10.2012 21:49, Andrew B. Martin wrote:
> Hello,
>  
> I'm running a Windows XP 32bit with 1.95 Gb of RAM.
>  
> I'm am trying to build a model using .csv files, but am running out of
> memory (see xmalloc error below).
>  
> What is confusing me is that the combined size of the .csv files is no
> more than 200 Mb; when I hit Ctrl+Alt+Del and watch memory consumption
> in the 'performance' window CPU Usage does not crack 60% and PF Usage
> gets to 2.58 Gb when glpk stops building and the error pops up. It
> doesn't seem like a model of this size should exhaust my RAM, and the
> performance readings suggest it isn't. However, the error remains.
>  
> Does anyone have any suggestions as to why this might be happening?
>  
> Cheers,
> Andrew
>  
> GLPSOL: GLPK LP/MIP Solver 4.38
> Reading model section from 22_Oct_Model.mod...
> 318 lines were read
> Reading tab_Stands...
> Reading tab_Prescriptions...
> Reading tab_All_Stand_Types...
> Reading tab_Yield_Types...
> Reading tab_Ecodistricts...
> Reading tab_Mills...
> Reading tab_Segs...
> Reading tab_Tsheds...
> Reading tab_Ndrs...
> Reading tab_Excl...
> Reading tab_Buffer...
> Reading tab_Stand_Area...
> Reading tab_Stand_Age...
> Reading tab_Stand_Types...
> Reading tab_Stand_Types_Eco...
> Reading tab_Stand_Ecod...
> Reading tab_Stand_Tshed...
> Reading tab_Stand_Ndr...
> Reading tab_Stand_Buffer...
> Reading tab_Yields...
> xmalloc: no memory available
> Error detected in file ..\src\glplib07.c at line 72
>  
> This application has requested the Runtime to terminate it in an
> unusual way.
> Please contact the application's support team for more information.
> >Exit code: 3    Time: 93.715
>
>
> _______________________________________________
> Help-glpk mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-glpk

_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to