help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Writing Output File to MS Access


From: Andrew Makhorin
Subject: Re: [Help-glpk] Writing Output File to MS Access
Date: Fri, 02 Sep 2011 12:21:01 +0400

> Now, however, writing the output causes a lack of memory error and the
> model fails even with the reduced data set.  I have been watching the
> memory monitor through Windows Task Manager and note that the reduced
> data set finds an integer (they are all binary) optimal solution after
> about 2500 secs at which time the reported available memory is c.c.
> 1.9GB.
> 
> When I include the Access table output the memory reduces rapidly and
> the program fails.  The following is one of the Access output table
> syntax (which I assume is correct, because the smaller output tables
> update correctly).
> 

To reduce the memory requirement you may try to split the job into
several stages like follows:

1) translate the model and write it to foo.glp:

   glpsol -m foo.mod -d foo.dat --check --wglp foo.glp

2) solve the translated model and write its solution to foo.sol

   glpsol --glp foo.glp -w foo.sol

3) process the model using the previously found solution

   glpsol -m foo.mod -d foo.dat -r foo.sol






reply via email to

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