[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] How to call GLPK in C/C++?
From: |
Michael Hennebry |
Subject: |
Re: [Help-glpk] How to call GLPK in C/C++? |
Date: |
Mon, 30 Aug 2010 12:46:09 -0500 (CDT) |
User-agent: |
Alpine 1.00 (DEB 882 2007-12-20) |
On Mon, 30 Aug 2010, xiaomi wrote:
Is there a totural for how to call GLPK in my own C/C++ programming?
There is example code.
And there is a more serious problem: I saw GLPK uses many memories when
it runs longer. If my own C/C++ programming uses almost all the memories
like open a huge matrix, will these memories be released to let GLPK run
when I call GLPK?
No, but that is why god invented swap.
Using swap will take longer than using fast ram.
That said, there might be relevant limits.
On a 32-bit machine,
you will almost certainly be limited to 3 or 4 GB per process.
If that is a problem, you will need to have GLPK run in a separate process.
Of course, if available,
the simplest soution is to free the huge matrix yourself.
--
Michael address@hidden
"Pessimist: The glass is half empty.
Optimist: The glass is half full.
Engineer: The glass is twice as big as it needs to be."