Hello all, Timo > Message: 2 > Date: Wed, 6 Aug 2008 11:50:48 +0200 > From: "Ali Baharev" <[EMAIL PROTECTED]> > Subject: Re: [Help-glpk] problem with lpx_read_model > To: [EMAIL PROTECTED] > Cc: [email protected] > Message-ID: <[EMAIL PROTECTED]> > > Hello, > > Instead of > >> > mip = glp_create_prob(); >> > lpx_read_model("model.mod", "data.dat", "output.out"); > > write simply this: > > mip = lpx_read_model("model.mod", "data.dat", "output.out"); > >> > lpx_simplex(mip); >> > lpx_integer(mip); > > I think lpx_simplex is not needed.
If I am not mistaken, the 'lpx_simplex' is needed before 'lpx_integer(mip)'. But not with the following: glp_intopt(mip, NULL); // 'NULL' means use default setting Moreover, 'lpx_integer' has been depreciated and should not be used if 'glp_intopt' is available. In addition, calling 'glp_simplex' prior to 'glp_intopt' (should you wish to for some reason) does not cause problems, at least, that has been my experience. cheers Robbie --- Robbie Morrison PhD student -- policy-oriented energy system simulation Institute for Energy Engineering (IET) Technical University of Berlin (TU-Berlin), Germany [from IMAP client] _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
