help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Converting solutions between CPlex and GLPK


From: Timon ter Braak
Subject: Re: [Help-glpk] Converting solutions between CPlex and GLPK
Date: Thu, 01 Sep 2011 00:53:44 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110812 Thunderbird/6.0

Sorry about that; I 're-solved' my problem. Guess the dust on this
project was a bit thicker than I thought.
Hope this is clear, but I thick the 'mip' solution file format of GLPK is the one stated below.
Note that the #rows (m) is increased by one, and the objective value is
stated once more between the rows and the columns.

Not sure why though...

Timon

GLPK SOLUTION FILE FORMAT:

* The file created by the routine glp_write_sol is a plain text file,
* which contains the following information:
*
* m+1 n
* stat obj_val
* r_val[1]
* . . .
* r_val[m]
> * obj_val
* c_val[1]
* . . .
* c_val[n]
*
* where:
* m is the number of rows (auxiliary variables);
* n is the number of columns (structural variables);
* stat is the solution status (GLP_UNDEF = 1, GLP_FEAS = 2,
* GLP_NOFEAS = 4, or GLP_OPT = 5);
* obj_val is the objective value;
* r_val[i], i = 1,...,m, is the value of i-th row;
* c_val[j], j = 1,...,n, is the value of j-th column. */





reply via email to

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