[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] GLPK solution format
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] GLPK solution format |
Date: |
Fri, 24 Jul 2015 19:30:28 +0300 |
> I am running GLPK on a fairly big problem.
> It finds the solution and the number are big.
> I noticed that if I use the option –o they are “approximated” in the
> format: 4.99e+08
> In particular two values of my solution, for the variables i498 and
> i499, are:
>
>
> 998 i498 * 4.99e+08 4.98e+08 4.99e+08
> 999 i499 * 4.99e+08 4.99e+08 5e+08
>
>
> However, if I print the solution with –w I get the real value of i498 ad
> i499 which are:
>
>
> i498 498999999
> i499 499000000
>
>
> But using –w I only get the values without any association to the
> variable, something like this:
>
>
> 498999999
> 499000000
>
>
> How do I get the corresponding variable for each solution value?
>
These values follow in the same order as the corresponding rows and
columns in the problem object.
For more details please see the glpk reference manual, Ch. 3 "Utility
API Routines", Section 3.3 "Problem solution reading/writing routines",
Subsection 3.3.3 "Write basic solution to text file".