help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Memory usage with glpk


From: Saint Of Me
Subject: Re: [Help-glpk] Memory usage with glpk
Date: Thu, 28 Jan 2010 15:11:45 +0100

I use .glp model but when I run it, it doesn't write a file that is writing using .mod file. How I can do to write the file using .glp model?
To write file I use:

printf{c in COLS}: "%d ", w[c] > "w_ijcnn1_val";
printf{r in ROWS, c in COLS}: "%f ", Data[r,c] > "Data_ijcnn1_val";
printf{r in ROWS}: "%f \n", sum {c in COLS} w[c] * Data[r,c] > "wtData_ijcnn1_val";



2010/1/22 Andrew Makhorin <address@hidden>
> I convert the model and I solve it. The memory usage of non converted
> file is 72,7 MB and the memory usage of converted file is 44,8 MB. I
> don #39;t think there is an high advantage in converting model.

If all data fit into RAM, preliminary model conversion is not needed.

>  The
> original model file is 24 KB, and it is only a test file. The smallest
> file is 17 MB, I think that memory usage is, in every case, very high.
> Or not?

For model having 56000 columns and 80000 rows 17 Mb of file and 44.8 Mb
of RAM don't seem very high. Note that the LP preprocessor keeps a copy
of the model, so disabling it (--nopresol) may reduce the memory needed
about twice. However, most of the memory is eaten up by the MathProg
translator.

Please see:
http://lists.gnu.org/archive/html/help-glpk/2008-07/msg00044.html
for some calculations about the memory requirements.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]