[Help-glpk] memory allocation error

2008-05-16 Thread Dan Tulk
Hi,   I'm using GLPK in combination with a few other tools. When I run a really long (several hours) test that sets up, solves and deletes lots of different optimisations I get the following error:   xfree: memory allocation error Error detected in file glplib07.c at line 138 Thus far I haven't

Re: [Help-glpk] GLPK cannot compare to symbols: s1 s2

2008-05-16 Thread Andrew Makhorin
I have a symbolic set J, further I want to define a set B identifying each unordered combination of different elements of aforementioned set: set J; set B := setof{j1 in J, j2 in J : j1 j2} (j1, j2); display B; data; set J := 'A' 'B'; Unfortunately this results in error Display

Re: [Help-glpk] Problems installing glpkmex with glpk 4.28

2008-05-16 Thread Andrew Makhorin
I have installed glpk-4.28 and replaced replace glp_ulong by glp_long in file glpkcc.cpp but when I run makeglpkmex Matlab send the next message: GLPKMEX - A Matlab interface for GLPK. Script installer. Version 2.4 compatible with GLPK 4.20 (or higher) (C) 2001-2007, Nicolo'

Re: [Help-glpk] about glplib.h: No such file or directory

2008-05-16 Thread Andrew Makhorin
I want to ask a question about problem of installation. I got the following message when I run makeglpkmex to install glpkmex. --- GLPKMEX - A Matlab interface for GLPK. Script

Re: [Help-glpk] addition

2008-05-16 Thread Andrew Makhorin
/home1/usr2/my_name/gnu4.28/lib/libglpk.a(glplib08.o)(.text+0x1d1): In function `_glp_lib_xfopen #39;: /home/usr2/my_name/glpk-4.28/src/glplib08.c:496: undefined reference to `gzopen #39; You need either to make zlib available to the linker passing it the option '-lz', or rebuild glpk

Re: [Help-glpk] Passing command line paramters to GLPK

2008-05-16 Thread Andrew Makhorin
for using SQL queries the database password must be used in the GLPK model. It is unwise to save passwords in unencrypted files. In business environments regulation often explicitly forbids such behavior. The solution you kindly suggested would leave the password on the harddisk. Being able

Re: [Help-glpk] Problems installing glpkmex with glpk 4.28

2008-05-16 Thread Andrew Makhorin
I replaced 'lib_mem_usage' by 'glp_mem_usage' but now have the next message: GLPKMEX - A Matlab interface for GLPK. Script installer. Version 2.4 compatible with GLPK 4.20 (or higher) (C) 2001-2007, Nicolo' Giorgetti. Do you want to use graphic installer? Y/N [Y]: y GLPK path...

Re: [Help-glpk] Passing command line paramters to GLPK

2008-05-16 Thread glpk xypron
Hello Andrew, when invoking AMPL from the command line it is not possible to pass parameter assignments on the command line (tested with the student version). Commands can be passed as pipe, e.g. ampl.exe test.txt. type test1.txt con: test2.txt | ampl.exe will execute the commands in