Hello Max, I don't know why the VB version behaves in an other way than glpsol. The return code from glpk_simplex is ok?
If you look at the c code of int lpx_integer(LPX *mip) (glplpx6c.c) you find at the beginning some conditions, where LPX_E_FAULT = 204 is encountered. Can some condition be valid for your problem? Regards Gottfried Lindner Mail: [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Dienstag, 25. Juli 2006 03:41 To: [email protected] Subject: [Help-glpk] glpk49vb I am have been using the VB implementation of GLPK for quite a while and I am having the following problem. I write a problem in cplex format and load the file as follows. ' load the problem from file ' lp = glpk_read_cpxlp(sPath) ' Find Simplex solution ' lRet = glpk_simplex(lp) Print "GLPK SIMPLEX: " & lRet ' Find MIP solution ' lRet = glpk_integer(lp) Print "GLPK INTEGER: " & lRet the glpk_integer returns an error of 204 - cannot start search. but if I use glpsol.exe to test the formualtion it finds a mip solution in less than a second. So I am confident that the formulation is ok and that a mip solution exists. Has anyone got any ideas as to why the VB implemtation is returning an error when glpsol.exe can find a solution with the same formulation. Regards, Max _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
