Re: [Help-glpk] Embedded Python in GLPK

2008-03-13 Thread glpk xypron
I have updated my file for embedded Python to ftp://glpk.dyndns.org/glpk/glpk-4.27-py_r171.tar.gz to solve a with Python reference counters. An example can be found under examples/python. Best regards Xypron -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Mod

Re: [Help-glpk] Embedded Python in GLPK

2008-03-13 Thread Michael Hennebry
On Thu, 13 Mar 2008, vijay patil wrote: > On Sun, Mar 9, 2008 at 4:46 AM, Xypron <[EMAIL PROTECTED]> wrote: > > Where do I want to go to: I would like to use embedding Python scripting > > to control the solution process: adding new constraints, changing > > variables from float to binary, ... B

Re: [Help-glpk] Re: libglpk0: excessive install dependencies

2008-03-13 Thread Andrew Makhorin
Vijay, Thank you for your efforts. I think the dynamic linking of mysql and odbc dll's for a ms windows version of the package can be easily implemented, because such version does not need a configure script (I mean the version compiled with some native w32 compiler like vc6). Thus, it is suffici

Re: [Help-glpk] Embedded Python in GLPK

2008-03-13 Thread vijay patil
On Sun, Mar 9, 2008 at 4:46 AM, Xypron <[EMAIL PROTECTED]> wrote: > Using GLPK I missed the possibility to use a scripting language to > calculate values used for filling parameters and sets. > > Example: > I was working on a problem combining lot sizing and safety stock > calculation. I needed to

Re: [Help-glpk] Re: libglpk0: excessive install dependencies

2008-03-13 Thread vijay patil
It would be nice to have this change (i.e. explicitly loading the dynamic library/shared object related to table feature in MathProg) work on MS Windows. I ported example on page http://linux.die.net/man/3/dlopen to windows. We will need to use ifdefs at come places (loading, unloading, and gettin

Re: [Help-glpk] binary variable

2008-03-13 Thread Andrew Makhorin
> i have this example to do and here my code > maximize x1 + x2 + 3* x3 + 4* x4; >x4 <= x2 >x3 <= x1 >x1 + x2 + x3 + x4 <= 3 >xi : binary variable so xi = 0 or xi =1 > i do my code as follow : > /* myexp.c */ > #include > #include > //exte

[Help-glpk] binary variable

2008-03-13 Thread Bayrem Chelly
i have this example to do and here my code maximize x1 + x2 + 3* x3 + 4* x4; x4 <= x2 x3 <= x1 x1 + x2 + x3 + x4 <= 3 xi : binary variable so xi = 0 or xi =1 i do my code as follow : /* myexp.c */ #include #include //extern "C" { #include //}