help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] variable reduced costs from glp_write_* functions?


From: Xypron
Subject: Re: [Help-glpk] variable reduced costs from glp_write_* functions?
Date: Thu, 27 Jan 2011 20:18:28 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11

Hello Kevin,

please, read "Appendix A - Using suffixes" of glpk-4.45/doc/gmpl.pdf.

You can create customized output using the printf statement, e.g.

...
solve;
printf  "dual value of constraint c1:%g\n", c1.dual;

Best regards

Xypron

Kevin Hunter wrote:
At 1:50pm -0500 Thu, 27 Jan 2011, Xypron wrote:
I'm looking to machine-parse the sensitivity information of a
problem. Is my only option to use glp_print_ranges?

you can use the following functions to collect the information without
parsing a text file:
[glp_get_* functions]

I should have been more specific, in that I am talking about the --ranges command line option. In this context, I do not have access to the API, so must find a way of getting the information from a text file.

I'm hoping that there is a more machine-friendly version of the --ranges output.

Thanks,

Kevin





reply via email to

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