> 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.



_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to