Re: [Help-glpk] GLPK for Windows 4.57, GLPK for Java 1.3.0, and GLPK for C#/CLI 1.1.0 released

2015-12-01 Thread Heinrich Schuchardt
Hello Sylvain, Linux libraries are provided by Debian, Ubuntu, Mint. Builing them yourself just requires the standard procedure ./configure make sudo make install sudo ldconfig Hence I do not plan to provide Linux binaries. Best regards Heinrich Schuchardt http://www.xypron.de Am 01.12.15

Re: [Help-glpk] GLPK for Windows 4.57, GLPK for Java 1.3.0, and GLPK for C#/CLI 1.1.0 released

2015-11-30 Thread Heinrich Schuchardt
Hello Sylvain, I just released GLPK for Java 1.3.1 which fixes the error. Best regards Heinrich Schuchardt On 30.11.2015 19:26, Sylvain Fournier wrote: > Hi Heinrich, > > I recently updated GLPK for Java to version 4.57 and I'd like to share > some considerations I had for

Re: [Help-glpk] GLPK for Windows 4.57, GLPK for Java 1.3.0, and GLPK for C#/CLI 1.1.0 released

2015-11-30 Thread Heinrich Schuchardt
ary search path. } %} #endif What is missing is setting the flag when calling Swig in Build_JNI_with_VC14_DLL.bat. Best regards Heinrich Schuchardt On 30.11.2015 19:26, Sylvain Fournier wrote: > Hi Heinrich, > > I recently updated GLPK for Java to version 4.57 and I

Re: [Help-glpk] [Fwd: working in a big data environment]

2015-11-25 Thread Heinrich Schuchardt
Hello Anit, you can read and write files of HDFS. If your data is in Apache Hive you can use an ODBC connector to get data in and out of GLPK. Best regards Heinrich Schuchardt http://www.xypron.de Am 25.11.15 um 10:23 schrieb Andrew Makhorin > Forwarded Message >

Re: [Help-glpk] changing subsets of the constraint matrix

2015-11-24 Thread Heinrich Schuchardt
tiny a fraction of the time needed for glp_simplex. Best regards Heinrich Schuchardt On 24.11.2015 19:30, Atwood, Joseph wrote: > Good Morning > > We have an application that requires that we run hundreds of thousands > (or even several million) slightly revised sparse LP prob

Re: [Help-glpk] compilation problem in ns3

2015-11-21 Thread Heinrich Schuchardt
Linux this is libglpk.so). An ns-3 example can be found in https://github.com/nsnam/ns-3.16-git/blob/master/src/click/wscript Probably you want to create an ns-3 module that encapsulates the GLPK library first. Afterwards you can use this module in your projects. Best regards Heinrich Schuchardt

Re: [Help-glpk] How to skip scaling

2015-11-18 Thread Heinrich Schuchardt
://ftp.gnu.org/gnu/glpk/glpk-4.57.tar.gz Best regards Heinrich Schuchardt On 18.11.2015 05:36, Terry wrote: > I'm solving binary MIPs using these basic steps: > > mip = glp_create_prob(); > glp_read_lp(mip, NULL, filename); > parm.presolve = GLP_ON; > glp_intopt(mip, &parm); &g

Re: [Help-glpk] Problem has no feasible solution.

2015-11-18 Thread Heinrich Schuchardt
Hello Fernando, please, use function glp_get_unbnd_ray(). Best regards Heinrich Schuchardt On 18.11.2015 15:30, Fernando Garcia wrote: > Hello everyone, I am having some problems when solving a problem because > it is not feasible. I have checked the code hundreds times and I still >

Re: [Help-glpk] glpk 4.57 release information

2015-11-17 Thread Heinrich Schuchardt
ygwin? #define __WOE__ 1 #define ODBC_DLNAME "odbc32.dll" Best regards Heinrich Schuchardt On 17.11.2015 09:50, Andrew Makhorin wrote: > Hi Marco, hi Heinrich, > > > On Mon, 2015-11-16 at 12:32 +0100, Marco Atzeri wrote: >> Hi Andrew, >> it works fine, however

Re: [Help-glpk] glpk 4.57 release information

2015-11-09 Thread Heinrich Schuchardt
lob/master/patches/no-undefined-fix The flag -no-undefined is described at https://www.gnu.org/software/libtool/manual/html_node/Link-mode.html Best regards Heinrich Schuchardt On 10.11.2015 07:27, Marco Atzeri wrote: > On 08/11/2015 09:50, Andrew Makhorin wrote: >> >> GLPK

Re: [Help-glpk] glpk 4.57 release information

2015-11-08 Thread Heinrich Schuchardt
. * * @param in pointer to long jump environment */ void glp_java_error_hook(void *in) { glp_java_error_occured = 1; /* free GLPK memory */ glp_free_env(); /* safely return */ longjmp(*((jmp_buf*)in), 1); } Best regards Heinrich Schuchardt. On 09.11.2015 05:57, Jeroen Demeyer

[Help-glpk] GLPK for Windows 4.57, GLPK for Java 1.3.0, and GLPK for C#/CLI 1.1.0 released

2015-11-08 Thread Heinrich Schuchardt
-cli.sourceforge.net . The Git repository is located at https://github.com/xypron/glpk-cli . Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

Re: [Help-glpk] Non linear constraint

2015-11-08 Thread Heinrich Schuchardt
Hello Esma, if C and R are parameters (and not variables) the term below is linear and can be used in a constraint. Best regards Heinrich Schuchardt On 08.11.2015 18:54, esma mehiaoui wrote: > Hello everyone, > > I just need to be sure that the no linear following constraint

Re: [Help-glpk] [PATCH] determine whether we are handling an error

2015-11-06 Thread Heinrich Schuchardt
Hello Andrew, will you be sending error messages to stderr in the next release? Best regards Heinrich Schuchardt http://www.xypron.de Am 06.11.15 um 12:38 schrieb Andrew Makhorin > On Thu, 2015-11-05 at 22:57 +0100, Jeroen Demeyer wrote: > > > On 2015-11-05 22:20, Heinrich Schu

Re: [Help-glpk] [PATCH] determine whether we are handling an error

2015-11-05 Thread Heinrich Schuchardt
new value GLP_ERROR = 2 to indicate an error message. This value then should be used in glp_puts to decide if a message shall be sent to stdout or stderr. An API function could be provided to read env->term_out. The return value could be used in the terminal hook function. Best regards He

Re: [Help-glpk] Add constraints

2015-11-05 Thread Heinrich Schuchardt
Hello Fernando, glp_set_mat_row() allows to set the coefficients of the row. If you deactivate the presolver you can use glp_create_index() to create a column index and glp_find_col() to identify columns by name using the index. Best regards Heinrich Schuchardt On 11/05/2015 11:33 AM

Re: [Help-glpk] expressing a constraint depending on a boolean variable

2015-11-04 Thread Heinrich Schuchardt
Hello Esma,   please, see https://en.wikibooks.org/wiki/GLPK/Modeling_tips#Big_M   Best regards Heinrich Schuchardt http://www.xypron.de     Gesendet: Mittwoch, 04. November 2015 um 09:44 Uhr Von: "esma mehiaoui" An: "GLPK Help List" Betreff: [Help-glpk] exp

Re: [Help-glpk] [Fwd: GLPK packet]

2015-10-29 Thread Heinrich Schuchardt
glp_mip_col_val. Best regards Heinrich Schuchardt On 29.10.2015 10:18, Andrew Makhorin wrote: > Forwarded Message > From: Fernando Garcia > To: help-glpk@gnu.org > Subject: GLPK packet > Date: Thu, 29 Oct 2015 09:48:34 +0100 > > Good morning, > > &

Re: [Help-glpk] Double bounded vs. fixed

2015-10-25 Thread Heinrich Schuchardt
A double bounded row with upper bound -1 and lower bound 0 created a infeasability. A fixed row with value 0 is not by itself infeasable. So where do you see an issue? Best regards Heinrich Schuchardt http://www.xypron.de Am 25.10.15 um 14:34 schrieb Neill Clift > Hi, > > >

Re: [Help-glpk] reincarnation of tspsol

2015-10-20 Thread Heinrich Schuchardt
instead the callback be called after an integer solution is found by the rounding heuristic to verify if the new integer solution is valid? Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

Re: [Help-glpk] reincarnation of tspsol

2015-10-20 Thread Heinrich Schuchardt
disable all > > heuristics. > > > > Okay. I will add a flag to glp_iocp (say, row_gen) that explicitly > allows row generation. By default it is clear (no row generation is > allowed), and being set it disables all primal heuristics. > Why would you forbid all primal heu

Re: [Help-glpk] reincarnation of tspsol

2015-10-14 Thread Heinrich Schuchardt
e.g. for n = 1000 it is about 500,000 variables. >> > > I think n = 500 is a practical limit for tspsol I had not problem solving the appended 2000 node problem (1999000 columns). I must admit it has a very "benign" structure. Best regards Heinric

Re: [Help-glpk] reincarnation of tspsol: NODE_COORD_TYPE

2015-10-14 Thread Heinrich Schuchardt
Hello Andrew, In README you describe that the TSPSOL95 format is supported. I could not find the keyword 'NODE_COORD_TYPE' in the coding. Best regards Heinrich ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-

Re: [Help-glpk] reincarnation of tspsol

2015-10-13 Thread Heinrich Schuchardt
Please, observe the plural form. tspsol throws a error when reaching a second comment where it should not. Please, adjust tspsol to accept the TSPLIB format. Best regards Heinrich Schuchardt On 13.10.2015 12:29, Andrew Makhorin wrote: > Please see the attachment that contains an example

[Help-glpk] GLPK for Windows 4.56, GLPK for Java 1.2.0, GLPK for C#/CLI 1.0.2

2015-10-03 Thread Heinrich Schuchardt
://glpk-cli.sourceforge.net . The Git repository is located at https://github.com/xypron/glpk-cli . Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

[Help-glpk] Windows CFLAGS: /Zi

2015-10-03 Thread Heinrich Schuchardt
, please, consider adding the flag to the makefiles in w32 and w64 in the next release. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

[Help-glpk] Windows build files

2015-09-26 Thread Heinrich Schuchardt
osoft Visual Studio 14.0\VC" w64 set HOME="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC" Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

[Help-glpk] Typedefs in glpk.h

2015-09-26 Thread Heinrich Schuchardt
be solved: https://github.com/swig/swig/issues/531 And afterwards is will take a long time until the corrected code gets into the different Linux distributions. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https

[Help-glpk] GLPK for C# and the Common Language Infrastructure (CLI)

2015-09-25 Thread Heinrich Schuchardt
gards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

Re: [Help-glpk] build glpk.dll for C# so that I can call it from VS2013 on win7.

2015-09-16 Thread Heinrich Schuchardt
GLPK is C software. C# is a different programming language. You cannot compile C as C#. You need a C compiler. But you can call a C language DLL from C#. Best regards Heinrich Schuchardt http://www.xypron.de Am 16.09.15 um 14:10 schrieb usa usa > Hi, Heinrich, thanks. > > >

Re: [Help-glpk] build glpk.dll for C# so that I can call it from VS2013 on win7.

2015-09-15 Thread Heinrich Schuchardt
See batch files in w32 and w64 directory. Read https://en.m.wikibooks.org/wiki/GLPK/Windows Or simply use binaries provided by http://sourceforge.net/projects/winglpk/ Best regards Heinrich Schuchardt usa usa schrieb: Hi

Re: [Help-glpk] About table statement in GLPK

2015-09-14 Thread Heinrich Schuchardt
g/wiki/GLPK/ODBC If you want to append lines to a CSV file, use the printf statement. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

Re: [Help-glpk] Solving Several LP models with same structure

2015-09-05 Thread Heinrich Schuchardt
Hello Shaghayegh, please, read https://en.wikibooks.org/wiki/GLPK/Scripting_plus_MathProg Best regards Heinrich Schuchardt On 05.09.2015 19:25, Shaghayegh Mokarami wrote: > Hi Dear all > > > My LP model has a parameter Gamma, and I want to solve the problem > (using .mod and

Re: [Help-glpk] [Fwd: A Request]

2015-09-05 Thread Heinrich Schuchardt
Hello Shaghaeygh, your mail had to be forwarded manually because you are not subscribed to GLPK help list, cf. https://lists.gnu.org/mailman/listinfo/help-glpk In the GMPL language you can use the table statement to write the results of your models LP1 and LP2 to CSV files or to a SQL database.

Re: [Help-glpk] [Fwd: How to install GLPK. Windows 7 64 bits.]

2015-09-04 Thread Heinrich Schuchardt
Hello Emanuel, your email had to be forwarded manually because you are not subscribed to the GLPK help list, cf. https://lists.gnu.org/mailman/listinfo/help-glpk Please, follow the screenshots given in http://winglpk.sourceforge.net/installation/ Best regards Heinrich Schuchardt On

Re: [Help-glpk] [Fwd: Modifying the model after reading from a lp file]

2015-09-03 Thread Heinrich Schuchardt
Hello Yaser, your mail had to be forwarded manually because you are not subscribed to the GLPK help list https://lists.gnu.org/mailman/listinfo/help-glpk All functions available to manipulate an LP problem after reading from file are described in doc/glpk.pdf of the source distribution available

Re: [Help-glpk] intercept terminal output

2015-08-28 Thread Heinrich Schuchardt
Hello Christiano, project GLPK# has example code for GLPK 4.42, see http://yoyovicks.blog.free.fr/ Unfortunately the project was discontinued. I think the appropriate way to create a sustainable solution is to use SWIG (http://swig.org) to create a wrapper for the GLPK library and add the bit of

Re: [Help-glpk] [Fwd: About reading the relative mip gap from the glp_prob C struct]

2015-08-26 Thread Heinrich Schuchardt
/code/HEAD/tree/trunk/examples/java/GmplSwing.java The graph in http://a.fsdn.com/con/app/proj/glpk-java/screenshots/278301.jpg shows how the gap changes from one integer solution to the next. It is created with the data from the callback function. Best regards Heinrich Schuchardt On 26.08.2015

Re: [Help-glpk] Zero valued coefficients

2015-08-25 Thread Heinrich Schuchardt
api routines. Note that on passing the data > to the solver zero coeffs are skipped. > The documentation of glp_get_mat_col and glp_get_mat_row says: The routine glp_get_mat_col/-row scans (non-zero) elements So the user knows that zero elements are not considered. As dropping the

[Help-glpk] Zero valued coefficients

2015-08-25 Thread Heinrich Schuchardt
suggest to change above functions to check the value of coefficients and to simply ignore any zero values. A simple if (0 == val[k]) continue; will be sufficient. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https

Re: [Help-glpk] GLPK got out-of-memory exception when solving linear programming models

2015-08-25 Thread Heinrich Schuchardt
problem the size of the search tree will depend on the backtracking rule. Avoid breadth first search. Best regards Heinrich Schuchardt On 25.08.2015 15:54, usa usa wrote: > Hi, > > I am trying yto build a linear programming model by C# VS 2013 from > Optimization.Framework. > &g

Re: [Help-glpk] NoSuchMethodError

2015-07-22 Thread Heinrich Schuchardt
Hello Jeremy, > Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: > org.gnu.glpk.GLPK.init_glpk() You cut of the call stack from the output. Please, analyze the call stack to identify the calling method. GLPK 4.47 and the matching GLPK for Java 1.0.18 did not have any method ini

Re: [Help-glpk] Test a model with random data on GLPK

2015-07-21 Thread Heinrich Schuchardt
--seed SEEDVALUE In Visual Basic Script you can create random numbers with the Rnd(1) function, cf https://msdn.microsoft.com/en-us/library/f7s023d2%28v=vs.90%29.aspx In awk you can use function rand() to create random numbers. Best regards Heinrich Schuchardt On 22.07.2015 01:12, Shaghayegh

Re: [Help-glpk] [Fwd: GLPK Dll function question]

2015-07-15 Thread Heinrich Schuchardt
Hello Sunggoog, please, provide an example which allows others to reproduce the problem. Best regards Heinrich Schuchardt http://www.xypron.de Am 15.07.15 um 19:10 schrieb Andrew Makhorin > Forwarded Message > From: 조성국 > Reply-to: sunggoog@samsung.com > T

Re: [Help-glpk] GLPK iOS port License issue

2015-07-15 Thread Heinrich Schuchardt
Hello Salahuddin, Apple requires you to use an EULA which forbids redistribution of the app. This is incompatible with GPL. Coin-OR CLP uses the Eclipse license, which is more permissive. Best regards Heinrich Schuchardt http://www.xypron.de Am 15.07.15 um 17:05 schrieb Salahuddin Pasha

Re: [Help-glpk] [Fwd: GLPK exception]

2015-07-13 Thread Heinrich Schuchardt
ive. http://stackoverflow.com/questions/19308010/how-to-set-the-java-library-path-in-intellij-idea shows how to specify java.library.path. Best regards Heinrich Schuchardt http://www.xypron.de > Forwarded Message > From: Roberto Trunfio > To: m...@gnu.org > Cc: m...@mai2.rc

Re: [Help-glpk] [Fwd: a question]

2015-07-13 Thread Heinrich Schuchardt
e are provided. Please, send all questions, errors, and feedback to me as package maintainer. Best regards Heinrich Schuchardt > Forwarded Message > From: sgholiza > To: help-glpk@gnu.org > Subject: a question > Date: Mon, 13 Jul 2015 16:48:55 +0200 > > Dear

Re: [Help-glpk] Error handling in Rglpk

2015-07-02 Thread Heinrich Schuchardt
&view=log https://lists.gnu.org/archive/html/help-glpk/2015-02/msg4.html Best regards Heinrich Schuchardt > Gesendet: Donnerstag, 02. Juli 2015 um 20:29 Uhr > Von: "Stefan Theussl" > An: "Heinrich Schuchardt" > Cc: tomas.simo...@axpo.com, "GLPK help

Re: [Help-glpk] maximum function

2015-06-19 Thread Heinrich Schuchardt
T : p[t] == max{u in T} p[u]} t; Best regards Heinrich Schuchardt       Gesendet: Freitag, 19. Juni 2015 um 21:29 Uhr Betreff: [Help-glpk] maximum function Hello everyone!   I need your help please. Is it possible to get the maximum of a variable only in one of her dimension?  For

Re: [Help-glpk] Node.js native module

2015-05-29 Thread Heinrich Schuchardt
I have created a page for the Node.js module in the GLPK WikiBook: https://en.wikibooks.org/wiki/GLPK/NodeJS Please, add what is missing. Best regards Heinrich Schuchardt On 27.05.2015 19:35, Henri Gourvest wrote: > Hi, > > This is a native module for GLPK. > You now can run GL

Re: [Help-glpk] Node.js native module

2015-05-27 Thread Heinrich Schuchardt
error occurs in GLPK it will terminate the complete process. You should provide an error hook function to handle errors gracefully. Otherwise the whole Node.js server will go down in an error situation. Best regards Heinrich Schuchardt Henri Gourvest schrieb: Hi, This is a native

Re: [Help-glpk] GMPL and CBC

2015-05-15 Thread Heinrich Schuchardt
Heinrich -- Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet. Heinrich Schuchardt schrieb: GMPL as supplied by GLPK 4.48 can be used in CBC. See http://en.m.wikibooks.org/wiki/GLPK/Mixing_GLPK_with_other_solver_packages#Compiling_the_COIN

Re: [Help-glpk] GMPL and CBC

2015-05-15 Thread Heinrich Schuchardt
GMPL as supplied by GLPK 4.48 can be used in CBC. See http://en.m.wikibooks.org/wiki/GLPK/Mixing_GLPK_with_other_solver_packages#Compiling_the_COIN-OR_CBC_solver_with_mathprog https://projects.coin-or.org/svn/BuildTools/ThirdParty/Glpk/stable/1.10 Best regards Heinrich -- Diese Nachricht

Re: [Help-glpk] The dynamic link library for GLPK for Java could not be loaded.

2015-05-08 Thread Heinrich Schuchardt
Hello Romain, your java.library.path is pointing to the 64bit libraries. Is the Java runtime you are executing also 64bit? Which version of GLPK for Java are you using? Best regards Heinrich Schuchardt Romain Huynh Van Thieng schrieb: Hello everyone, first sorry for my bad

Re: [Help-glpk] GLPK Code

2015-04-21 Thread Heinrich Schuchardt
Hello Lance, in your program you are suppressing the terminal output. This output would tell you the details of the error in the library. You should check the return value of glp_mpl_generate before calling glp_mpl_build_prob. I have updated http://sourceforge.net/p/glpk-java/code/HEAD/tree/tru

Re: [Help-glpk] solves for mixed-integer quadratic problems

2015-04-21 Thread Heinrich Schuchardt
Coin-OR CLP contains a quadratic solver https://projects.coin-or.org/Clp I have not used it myself. Best regards Heinrich Schuchardt > On Sun, Apr 19, 2015 at 7:10 PM, usa usa <mailto:usact2...@gmail.com>> wrote: > > Hi, > > I need to solve mixed-in

Re: [Help-glpk] some example C# code that call GLPK in C# from visual studio 2013

2015-04-13 Thread Heinrich Schuchardt
Hello Nigel, GLPK does not call SetLastError. So why do you want it in the declaration? I guess you want to remove unsafe because no pointer to a C# object is passed to GLPK? Best regards Heinrich Schuchardt Am 13.04.15 um 13:15 schrieb Nigel Galloway > Looking at the example in the w

Re: [Help-glpk] some example C# code that call GLPK in C# from visual studio 2013

2015-04-07 Thread Heinrich Schuchardt
Hello Nigel, how would you call native dlls in C# 5? Is this supported in Mono, too? Best regards Heinrich Schuchardt Am 07.04.15 um 13:30 schrieb Nigel Galloway > There is also an example in glpk's example directory. But this and the > > wiki are very old examples (C# 2.0 I t

Re: [Help-glpk] ANSI C program as definning entry point for glpk

2015-04-02 Thread Heinrich Schuchardt
Glpk 4.55 comes with file doc/glpk.pdf. Please, read the sections on glp_mpl_read_data and glp_mpl_read_model. Best regards Heinrich Schuchardt john tass schrieb: Hi everybody, I have a C program that it is to define an entry point for a glpk project, i.e. I

Re: [Help-glpk] some example C# code that call GLPK in C# from visual studio 2013

2015-04-01 Thread Heinrich Schuchardt
Please, see http://en.wikibooks.org/wiki/GLPK/C-Sharp and read https://msdn.microsoft.com/en-us/library/26thfadc%28v=vs.110%29.aspx (Consuming Unmanaged DLL Functions) Best regards Heinrich Schuchardt On 01.04.2015 17:50, usa usa wrote: > Hi, > > Could anybody recommand some exampl

Re: [Help-glpk] [Fwd: GLPK enhancement]

2015-03-18 Thread Heinrich Schuchardt
On Linux you can create a FIFO with mkfifo and pass the path to the GLPK. On Windows you can create a named pipe and use its path (CreateNamedPipe). Best regards Heinrich Schuchardt http://www.xypron.de Am 18.03.15 um 13:13 schrieb Andrew Makhorin > > >> I am presently working wi

Re: [Help-glpk] Write solution on database

2015-02-23 Thread Heinrich Schuchardt
Hello Diana, glpk-java/examples/java/GlpkSwing.java shows what needs to be done. Run glpk/examples/tsp.mod and press the terminate button. You will see an output like ... + 7505: mip = 6.85900e+03 >= 6.72900e+03 1.9% (143; 254) SEARCH TERMINATED BY APPLICATION Optimal tour has len

Re: [Help-glpk] printf to a file in the correct directory

2015-02-23 Thread Heinrich Schuchardt
Hello Joel, the location of your model is irrelevant. The path used by printf will be relative to the current directory. You can - use VBA command CHDIR to set the current directory, - use absolute paths for printf. Best regards Heinrich On 23.02.2015 20:24, joel mortyn wrote: > Hi all, > > I

Re: [Help-glpk] Interface between GLPK and Matlab

2015-02-23 Thread Heinrich Schuchardt
glpk_mex does not support running gmpl files. Please, consider if you could launch glpsol via system(). Best regards Heinrich Schuchardt http://www.xypron.de Am 23.02.15 um 15:33 schrieb Le Van Duc > Dear all, > > > > I have implemented a mixed integer linear programmin

Re: [Help-glpk] GLPSOL solver running problem

2015-02-21 Thread Heinrich Schuchardt
> /proc/sys/vm/overcommit_memory' glpsol --model controlCoverageWithConnectivity2.mod --data \ dataInput.dat Then GLPK should show if it has a memory problem. Best regards Heinrich Schuchardt On 21.02.2015 09:23, Le Van Duc wrote: > Dear all, > > I have implemented a mixed

[Help-glpk] Error handling in Rglpk

2015-02-17 Thread Heinrich Schuchardt
that an error is correctly handled. See appendix. Rglpk_solve and Rglpk_read_file call glp_error_hook(Rglpk_error_hook, &env); This sets the hook function to Rglpk_error_hook. A far jump is used to return if an error occurs. Best regards Heinrich Schuchardt Rglpk.tar.gz Descri

Re: [Help-glpk] reading GNU Math Prog .dat files through Rglpk

2015-02-17 Thread Heinrich Schuchardt
. Please, use glp_error_hook() to define a hook function which will gracefully handle errors. I append an example code. Best regards Heinrich Schuchardt On 17.02.2015 13:53, tomas.simo...@axpo.com wrote: > Hi > > I would like to know if it is possible to read separate .dat and .mo

Re: [Help-glpk] Building binaries with for MySQL with Windows 7

2015-01-16 Thread Heinrich Schuchardt
://winglpk.sourceforge.net Please, have a look at http://en.wikibooks.org/wiki/GLPK/ODBC Best regards Heinrich Schuchardt On 16.01.2015 23:28, Martin Albrecht wrote: > Dear all, > > when building the binaries with MySQL driver activated, the Build batch > gives the following error: >

Re: [Help-glpk] csv_driver:unable to create ....csv - Permission denied

2015-01-06 Thread Heinrich Schuchardt
Hello Martin, an alternative way to import data is using SQL. If you look for an easier to program API to create the MIP on the fly have look at https://www.xypron.de/projects/linopt/ Please, remember that the GLPK library is not thread safe. Best regards Heinrich Schuchardt http

Re: [Help-glpk] csv_driver:unable to create ....csv - Permission denied

2015-01-06 Thread Heinrich Schuchardt
Hello Martin, please, check that the CSV file is not opened by an other program. Excel locks opened files. Same happens if Java opens a file for writing. The lock is kept until the file is closed. Best regards Heinrich Schuchardt http://www.xypron.de Am 06.01.15 um 11:53 schrieb Martin

Re: [Help-glpk] installing GLPK for Java, make error

2014-12-30 Thread Heinrich Schuchardt
Hello Diana, it seems that the versions of GLPK and GLPK for Java that you are using do not match. I suggest that you uninstall all GLPK packages and build the current version of GLPK from the source as described in http://en.wikibooks.org/wiki/GLPK/Linux_OS wget ftp://ftp.gnu.org/gnu/glpk/

Re: [Help-glpk] Emulating the AMPL ord() function

2014-12-30 Thread Heinrich Schuchardt
person010 1 0 0 person021 0 0 1 person031 0 0 1 person040 1 1 0 ; end; Best regards Heinrich Schuchardt On 27.12.2014 20:13, Jason Foster wrote: As part of shifting my group

Re: [Help-glpk] field missing in input table + instruction table

2014-12-05 Thread Heinrich Schuchardt
\exemple-format-excel.xlsx' 'SELECT * FROM [CROP_PARTS$A1:E5]': CPID <- [CPID], CPCrop, CPName, CPType; If you want to specify a string of length zero enter ' into the cell. Best regards Heinrich Schuchardt http://www.xypron.de > Gesendet: Freitag, 05. D

Re: [Help-glpk] field missing in input table + instruction table

2014-12-05 Thread Heinrich Schuchardt
Hello Haroune, you can only have one SELECT per table statement. The first line of your selected Excel sheet or range should contain the column names. See examples/sql/sudoku.xls and sudoku_excel.mod in GLPK for Windows. Best regards Heinrich Schuchardt http://www.xypron.de Am 05.12.14 um

Re: [Help-glpk] ODBC Excel driver

2014-11-25 Thread Heinrich Schuchardt
Hello Haroune, a 64bit glpsol executable is available at http://winglpk.sf.net Best regards Heinrich Schuchardt http://www.xypron.de Am 25.11.14 um 09:34 schrieb Haroune ZAGHDAOUI > Hello Heinrich, > > > > Thank you for your help. I uninstalled Excel x64, installed

Re: [Help-glpk] ODBC Excel driver

2014-11-24 Thread Heinrich Schuchardt
Hello Haroune, Gusek comes with the 32bit glpsol executable. You need a 32bit ODBC driver for Excel (not X64). Best regards Heinrich Schuchardt http://www.xypron.de Am 24.11.14 um 16:06 schrieb Haroune ZAGHDAOUI > Hello everyone, > > > > I need your help please : >

Re: [Help-glpk] GLPK on Android

2014-11-18 Thread Heinrich Schuchardt
next step. In GLPK for Java you will find file examples/java/GmplSwing.java which could serve as a starting point. Adding some example files and a GMPL cheatsheet would also be helpful. Best regards Heinrich Schuchardt On 16.11.2014 20:25, Joey Rios wrote: Hi GLPKers, Just wanted to announce

Re: [Help-glpk] [Fwd: Build glpk as a shared library on Cygwin, MinGW and similar systems]

2014-11-03 Thread Heinrich Schuchardt
release. Best regards Heinrich Schuchardt On 03.11.2014 21:29, Jean-Pierre Flori wrote: Hello, 2014-11-03 21:24 GMT+01:00 Heinrich Schuchardt : Hello Marco, why do you want to build with no-undefined? Why do you think this makes sense for Cygwin and MinGW only and not elsewhere? Because on

Re: [Help-glpk] [Fwd: problem glpk_4_55_java.dll for win32]

2014-11-03 Thread Heinrich Schuchardt
Hello Frédéric, your mail had to be forwarded manually because you have not joined the GLPK help list https://lists.gnu.org/mailman/listinfo/help-glpk If you want to run on 32bit Windows you need: 32bit Java runtime 32bit glpk_4_55.dll 32bit glpk_4_55_java.dll From where did you take the file

Re: [Help-glpk] [Fwd: Build glpk as a shared library on Cygwin, MinGW and similar systems]

2014-11-03 Thread Heinrich Schuchardt
Hello Marco, why do you want to build with no-undefined? Why do you think this makes sense for Cygwin and MinGW only and not elsewhere? Best regards Heinrich Schuchardt On 03.11.2014 17:16, Marco Atzeri wrote: On 11/3/2014 3:59 PM, Jean-Pierre Flori wrote: Hi Marco, Hi Jean-Pierre

Re: [Help-glpk] GMPL messaging

2014-10-24 Thread Heinrich Schuchardt
An example is available at http://sourceforge.net/p/glpk-java/code/HEAD/tree/trunk/examples/java/GmplSwing.java Best regards Heinrich Schuchardt http://www.xypron.de Am 24.10.14 um 21:50 schrieb technical forestry services > Hello Heinrich > > > > Thanks for your

Re: [Help-glpk] GMPL messaging

2014-10-24 Thread Heinrich Schuchardt
Hello LB, implement a GlpkTerminalListener and add it to GlpkTerminal. Return false in method output. Best regards Heinrich Schuchardt http://www.xypron.de Am 24.10.14 um 21:38 schrieb technical forestry services > Hello > > > > I am using GLPK via a Java wrapper that rea

Re: [Help-glpk] GMPL messaging

2014-10-24 Thread Heinrich Schuchardt
Hello LB, implement a GlpkTerminalListener and add it to GlpkTerminal. Return false in method output. Best regards Heinrich Schuchardt http://www.xypron.de Am 24.10.14 um 21:38 schrieb technical forestry services > Hello > > > > I am using GLPK via a Java wrapper that rea

Re: [Help-glpk] GUSEK - MPS format generation

2014-09-25 Thread Heinrich Schuchardt
the second the minimum. Cheers Lrb Here is an example: var x, >= -20, <= 10; maximize obj: x; solve; end; $ glpsol -m test.mod --wmps test.mps --nopresol obj = 1.0e+01 $ glpsol test.mps --nopresol obj = -2.0e+01 Best regards Heinrich Schu

Re: [Help-glpk] Java Wrapper for GLPK

2014-09-20 Thread Heinrich Schuchardt
>> Can't find dependent libraries This indicates that the GLPK library glpk_4_55.dll is not in the search path for binaries. Best regards Heinrich Schuchardt http://www.xypron.de technical forestry services schrieb: Hello I am encountering the following linker

Re: [Help-glpk] [Fwd: Syntax error]

2014-09-11 Thread Heinrich Schuchardt
of the source distribution for more details. Best regards Heinrich Schuchardt On 11.09.2014 18:17, Andrew Makhorin wrote: Forwarded Message From: Przemek Przybyszewski To: help-glpk@gnu.org Subject: Syntax error Date: Thu, 11 Sep 2014 17:19:53 +0200 Hi, do you know wha

Re: [Help-glpk] setting the iteration limit for interior point

2014-09-10 Thread Heinrich Schuchardt
Hello Marc, in GLPK 4.54, glpipm.c #define ITER_MAX 100 You might want to change this line. Best regards Heinrich Schuchardt http://www.xypron.de Am 09.09.14 um 17:15 schrieb Meketon, Marc > Hi fellow GLPK'ers > > > > I'm using the interior point method in glp

Re: [Help-glpk] Java Interface for GLPK

2014-09-04 Thread Heinrich Schuchardt
Hello Norman, different Java bindings have been created. The only one currently maintained is the one available at http://glpk-java.sourceforge.net Precompiled Windows binaries are available at http://winglpk.sourceforge.net For Debian and Ubuntu a package is available. Best regards Heinrich

Re: [Help-glpk] glpk 4.55 release information

2014-08-22 Thread Heinrich Schuchardt
n Jessie (the testing version of Debian). I suggest to use https://packages.debian.org/stable/libglpk-dev as reference in future release notes. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

Re: [Help-glpk] ecyglpki 0.1.0: A Cython GLPK interface

2014-08-05 Thread Heinrich Schuchardt
Hello Erik, thank you for your contribution. It would be great if you could add the relevant information on http://en.wikibooks.org/wiki/GLPK/Python possibly with some small usage example. Best regards Heinrich Schuchardt On 03.08.2014 14:59, Erik Quaeghebeur wrote: Dear List, The package

Re: [Help-glpk] Objective value issue

2014-07-11 Thread Heinrich Schuchardt
Hello Mattia, please, provide an example model. Best regards Heinrich Schuchardt http://www.xypron.de Am 11.07.14 um 17:41 schrieb Mattia Buccarella > Thanks for your answer. > > The link you suggested is the one I already saw and discussed in my first > > email. > >

Re: [Help-glpk] Objective value issue

2014-07-11 Thread Heinrich Schuchardt
Hello Mattia, please, read http://en.wikibooks.org/wiki/GLPK/Troubleshooting#Objective_shift_term_ignored_when_exported Best regards Heinrich Schuchardt http://www.xypron.de Am 11.07.14 um 17:20 schrieb Mattia Buccarella > Hello everyone, > > > > my name is Mattia and I am

Re: [Help-glpk] constraint variable only 0.

2014-06-21 Thread Heinrich Schuchardt
Hello Joko, what do you think is wrong about the solution? Best regards Heinrich On 21.06.2014 07:11, Joko Bintarto wrote: the constraint in my code like this ... var u {i in 1..CM, j in 1..TM} binary; var x {i in 1..CM} integer; #1 if x[i] = j and 0 otherwise ... minimize cost: sum{i in 1.

Re: [Help-glpk] Linking errors when using cfg.h in a MacOs X

2014-06-18 Thread Heinrich Schuchardt
17, 2014, at 11:50 PM, "Heinrich Schuchardt" wrote: Hello Jose, The errors you report look like you are linking to an old version of GLPK which does not contain the library function you want to use, You could check the output of glp_version. You can influence the library loadpath on OS

Re: [Help-glpk] Linking errors when using cfg.h in a MacOs X

2014-06-17 Thread Heinrich Schuchardt
Heinrich Schuchardt http://www.xypron.de Jose L Walteros schrieb: Hi all,  I tried to send this before and I think it didn't work. I am sorry if you receive it again. I have been worki

Re: [Help-glpk] [Fwd: jar files and libglpk.so]

2014-06-14 Thread Heinrich Schuchardt
java.library.path in an Eclipse project (project property "Native library location"). Best regards Heinrich Schuchardt On 14.06.2014 20:18, João Campos wrote: Dear Mr. Heinrich Schuchardt: It is true that I have the .so files and the .jar files. Right now I have a little program written

Re: [Help-glpk] [Fwd: jar files and libglpk.so]

2014-06-14 Thread Heinrich Schuchardt
les on your computer. What was your procedure to install GLPK for Java? Which operating system do you use? Best regards Heinrich Schuchardt On 12.06.2014 15:54, Andrew Makhorin wrote: Forwarded Message From: João Campos To: help-glpk@gnu.org Subject: jar files and libglpk.s

Re: [Help-glpk] I am not sure if it falls under the issue of "Thread Safety of GLPK"

2014-05-21 Thread Heinrich Schuchardt
Hello Amit, GLPK is not thread safe. So no two threads should try to call the GLPK library at the same time. What you can do is run multiple processes using GLPK at the same time. Best regards Heinrich Schuchardt On 21.05.2014 14:18, Amit Gurung wrote: I have created a simple class

Re: [Help-glpk] question about GLP_BV

2014-05-20 Thread Heinrich Schuchardt
Hello Onor, glp_simplex is the LP solver so you cannot expect integer results. You have to use glp_intopt to get integer results.. Best regards Heinrich https://www.xypron.de On 21.05.2014 05:13, Aaron wrote: Hello, I have a very strange problem. I solve an LP problem. We set the each c

Re: [Help-glpk] go-glpk: Go bindings for GLPK (GNU Linear Programming Kit)

2014-05-02 Thread Heinrich Schuchardt
generate them automatically. You may want to add information about your binding to the GLPK wikibook http://en.wikibooks.org/wiki/GLPK Best regards Heinrich Schuchardt http://www.xypron.de "Łukasz Pankowski" schrieb: Hi, I released my Go (http://golang.org/) bindings fo

<    1   2   3   4   >