[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] problem with GLPK and VC6.0
From: |
glpk xypron |
Subject: |
Re: [Help-glpk] problem with GLPK and VC6.0 |
Date: |
Fri, 10 Sep 2010 00:38:56 +0200 |
Hello,
please read glpk-4.44\src\glpapi19.c
Glpsol passes parameter iocp when calling glp_intopt.
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Thu, 9 Sep 2010 07:59:58 -0700 (PDT)
> Betreff: [Help-glpk] problem with GLPK and VC6.0
>
> Hello
> I am a student in Asia,so forgive my poor English.Now I am studying
> GLPK, there is a problem.
> I write a code in AMPL,and code is running fine with GLPK ,(GLPK open
> the mod file,then press the menu file "GO",then GLPK give the answer )but
> I
> tried to write a code in VC6.0,but the result is different.
> the code in VC6.0 is to open the mod file,and give answer just like
> GLPK,this is VC6.0 code:
> glp_prob *mip;
> glp_tran *tran;
> int ret;
> int postsolve = 0;
> mip = glp_create_prob();
> tran = glp_mpl_alloc_wksp();
> ret = glp_mpl_read_model(tran,"example.mod", 0);
> ret = glp_mpl_generate(tran, "OUT.txt"); //out.txt is the output
> glp_mpl_build_prob(tran, mip);
> glp_simplex(mip, NULL);
> glp_intopt(mip, NULL);
> ret = glp_mpl_postsolve(tran, mip, GLP_MIP);
> "example.mod" is the mod file,it's running well in GLPK,but in
> VC6.0,the
> result is different,
> so why the result is not the same,is there anything wrong in my VC6.0
> code?
> or there is another way?
> and how to use the glp_main() function,thanks a lot!
> --
> View this message in context:
> http://old.nabble.com/problem-with-GLPK-and-VC6.0-tp29648246p29648246.html
> Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
--
Achtung Sicherheitswarnung: GMX warnt vor Phishing-Attacken!
http://portal.gmx.net/de/go/sicherheitspaket