> 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). _______________________________________________ Help-glpk mailing list Help-glpk@gnu.org http://lists.gnu.org/mailman/listinfo/help-glpk