[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Simplex in GLPK and CPLEX in GAMS
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Simplex in GLPK and CPLEX in GAMS |
Date: |
Tue, 24 Nov 2015 14:18:40 +0300 |
On Tue, 2015-11-24 at 10:11 +0100, Yaser Tohidi wrote:
> Hi
>
>
> Thanks for your email. This is the result I get:
Your lp is badly scaled, so I suggest to use the following sequence:
glp_scale_prob(lps12, GLP_SF_AUTO);
glp_adv_basis(lps12, 0);
glp_simplex(lps12, NULL);
For more details please see the glpk reference manual
(glpk/doc/glpk.pdf) included in the distribution tarball.
> Can this be because of having simplex v4.55 instead of v4.57?
Maybe.
> Please let me know how to upgrade that.
See
http://www.gnu.org/software/glpk/#downloading
http://en.wikibooks.org/wiki/GLPK
> Also, please let me know which line you are referring by "Your code is
> wrong because GLP_OPT is defined as 5."
>
>
Change the line
if (glp_get_status(lps12) > 2){
to something like this:
if (glp_get_status(lps12) != GLP_OPT){
If you have further questions please subscribe to the help-glpk list
http://lists.gnu.org/mailman/listinfo/help-glpk and post your questions
there. Thanks.
Andrew Makhorin