[Top][All Lists]

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

Re: [Help-glpk] Problem retrieving specific result from solution

From: Andrew Makhorin
Subject: Re: [Help-glpk] Problem retrieving specific result from solution
Date: Thu, 3 Dec 2009 09:29:45 +0300

> I need to retrieve specific result from solution of a computation of
> glpk Api.

> I used c# wrapper that i've found in a first time.
> I create a model file and a data file.I call the right function to
> solve the problem on my C# application.

> I don't know how to retrive only the result of the problem,Actually
> I've found many function that write on a file all the solution,but I
> want to find a function that return to me only the values of a
> variable(that is a 2 dimension's variable) such that I could take the
> return values and easily output them in a datagridview(or something
> else structure,not so important for the question I've do it) and
> display it.

You need to call the api routine glp_get_col_prim (or its wrapper
equivalent); it returns primal value of a column (structural variable)
in the current basic solution. For more details please see the
reference manual included in the glpk distribution.

reply via email to

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