[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'module' object has no attribute 'LPX'
From: |
Andrew Makhorin |
Subject: |
Re: 'module' object has no attribute 'LPX' |
Date: |
Mon, 04 Jul 2022 18:01:36 +0300 |
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 <mao@gnu.org>
> Cc: help-glpk@gnu.org
> 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 <mao@gnu.org>
> Sent: Thursday, June 30, 2022 6:48 PM
> To: Alireza Asadi <alireza.asadi@fedex.com>
> Cc: help-glpk@gnu.org
> 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
> >
> >
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: 'module' object has no attribute 'LPX',
Andrew Makhorin <=