help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] get solution


From: Andrew Makhorin
Subject: Re: [Help-glpk] get solution
Date: Fri, 4 Sep 2009 15:32:42 +0400

> I've started to use glpk api in c++. And i cannot figure out how to
> get the solution from the solver after calling glp_simplex. I've found
> some functions to print the solution but it prints a lot of other
> unnecessary in my case information -  I need just array of points and
> the value of the objective function and it would be better to have
> them without output in the file.
> Does glpk have something like get_variables and get_objective in lp_solve?

To obtain basic lp solution components found with the simplex solver
you need to use glp_get_col_prim, glp_get_row_prim, and glp_get_obj_val.

For more details please see the reference manual included in the glpk
distribution (doc/glpk.pdf).





reply via email to

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