On Mon, 2022-07-04 at 08:23 +0000, Alireza Asadi wrote: > Hi Andrew, > > Any update on this? Many thanks. > > Alireza
Thank you for your interest in glpk. LPX is a typedef name of the main glpk structure representing LP/MIP problem object used in *very old* glpk versions. In principle, you can use the corresponding old glpk API routines by including some additional files provided for backward compatibility; for details please see glpk/examples/oldapi . Please note that the python binding you are using is not part of the official glpk distribution, and I think it is not maintained anymore for a long time. Try to look at https://en.wikibooks.org/wiki/GLPK/Python ; this may help. Best regards, Andrew Makhorin > > From: Alireza Asadi > Sent: Thursday, June 30, 2022 7:52 PM > To: Andrew Makhorin <[email protected]> > Cc: [email protected] > Subject: Re: 'module' object has no attribute 'LPX' > > Hi Andrew, > > Thanks for the reply. I just tried to test glpk as in screenshot but > it crashed right at the beginning when creating an empty model as > follows: > Note: attached is a python file and I changed the extension to txt to > be able to send via email. > > > > Best regards, > Alireza > > -----Original Message----- > From: Andrew Makhorin <[email protected]> > Sent: Thursday, June 30, 2022 6:48 PM > To: Alireza Asadi <[email protected]> > Cc: [email protected] > Subject: [EXTERNAL] Re: 'module' object has no attribute 'LPX' > > Caution! This email originated outside of FedEx. Please do not open > attachments or click links from an unknown or suspicious origin. > > On Thu, 2022-06-30 at 12:14 +0000, Alireza Asadi wrote: > > Hi all, > > > > Any idea how to solve this problem? I googled a lot but no luck ☹ > > > Please provide more detailed information. Thanks. > > > > > > > > Kind regards, > > > > Alireza Asadi > > > >
