[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] [Fwd: Help required : glp_alloc: no memory avaialable]
From: |
Andrew Makhorin |
Subject: |
[Help-glpk] [Fwd: Help required : glp_alloc: no memory avaialable] |
Date: |
Thu, 19 Jun 2014 00:29:52 +0400 |
-------- Forwarded Message --------
From: Prem Chedella <address@hidden>
To: address@hidden <address@hidden>
Subject: Help required : glp_alloc: no memory avaialable
Date: Wed, 18 Jun 2014 10:55:44 +0000
Hi All,
I’m using GPLK library 4.54 in Window environment for one of the
project.
For smaller set the of data, it works. For data, which is moderate, it
does not work and gives an error, which is given below:
glp_alloc: no memory avaialable
Error detected in file ..\src\env\alloc.c at line 91
I did some investigations on this:
glp_intopttakes huge amount of CPU time and never come back also, after
15 minutes of program execution, it stops execution of the program and
gives the above error:
Following is the snippet of the code:
masterLP = glp_create_prob(); //Create and assign pointer lp to new
(empty) linear program
masterTran = glp_mpl_alloc_wksp();
ret=glp_mpl_read_model(masterTran, masterModelFileName,1); //Read and
store the problem from .mod file into the lp problem obj
ret=glp_mpl_read_data(masterTran,masterDataFileName);
ret = glp_mpl_generate(masterTran, NULL);
glp_mpl_build_prob(masterTran, masterLP);
glp_write_lp(masterLP,NULL, "master.lp");
glp_read_lp(masterLP,NULL,"master.lp");
ret = glp_simplex(masterLP, NULL); //Tell GLPK to optimize problem that
"lp" points to
glp_intopt(masterLP,NULL);
masterOptObjVal = glp_mip_obj_val(masterLP); //Get the optimal objective
value from the optimization
Appreciate your help/suggestion in this issue.
Thank you in advance.
Kind Regards,
Prem Chedella
________________________________________________________________________
This message and its contents including attachments are intended solely
for the original recipient. If you are not the intended recipient or
have received this message in error, please notify me immediately and
delete this message from your computer system. Any unauthorized use or
distribution is prohibited. Please consider the environment before
printing this email.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-glpk] [Fwd: Help required : glp_alloc: no memory avaialable],
Andrew Makhorin <=