[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Calling the same LP repeatedly - segmentation fault
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Calling the same LP repeatedly - segmentation fault |
Date: |
Thu, 05 May 2016 21:30:29 +0300 |
> I have a C program that calls on GLPK to solve an LP, gathers
> information from the solution of that LP, and if the conditions in
> the C program are not met, has to re-run the LP with the same
> parameters until a permissible solution is found. I am however running
> into segmentation faults when I try to do this. Here is the seg fault
> cause from gdb:
>
> ******************Until here, I collect parameters from the LP problem
> and then attempt to delete/free it*************
>
> glp_free(lp);
>
To deallocate the problem object you should call glp_delete_prob(lp),
not glp_free.
- Re: [Help-glpk] Calling the same LP repeatedly - segmentation fault,
Andrew Makhorin <=