|
From: | Oscar Gustafsson |
Subject: | Re: [Help-glpk] problem with lpx_read_model |
Date: | Wed, 6 Aug 2008 11:58:18 +0200 (MEST) |
On Wed, 6 Aug 2008, address@hidden wrote:
glp_prob *mip; mip = glp_create_prob(); lpx_read_model("model.mod", "data.dat", "output.out"); lpx_simplex(mip); lpx_integer(mip); lpx_print_prob(mip, "problem.dat");
The correct code should be: mip=lpx_read_model("model.mod", "data.dat", "output.out");Also, there is no need to create the problem beforehand as lpx_read_model will do this for you.
Regards Oscar
[Prev in Thread] | Current Thread | [Next in Thread] |