Re: configure under windows

2023-06-07 Thread Heinrich Schuchardt
On 6/7/23 11:35, endre.rev wrote: Can you help me in installing and configuring glpk under Windows? I could not find any hint. I have tried running the configure file from command prompt. For this aim I had to rename the configure file to configure.bat. It started but complained during the run.

Re: Requesting Repo access regd

2023-04-13 Thread Heinrich Schuchardt
Am 13. April 2023 09:25:54 MESZ schrieb PRANJAL PRAGYA VERMA : >Dear GLPK > >Can someone please point me to the code repo for GLPK- like github where >the code is currently being maintained. There is none. Of course the survival chances of the project would increase with a more collaborative

Re: GLPK CMake support

2021-11-11 Thread Heinrich Schuchardt
On 11/11/21 13:37, Kyle McLachlan wrote: My apologies if this is not the correct forum; GLPK 5.0 is currently being given CMake support at the following GitHub repository: https://github.com/Mizux/GLPK This is being done to make it more compatible with other

Re: Output to GMPL data file

2021-07-27 Thread Heinrich Schuchardt
Am 27. Juli 2021 20:06:53 MESZ schrieb Philippe Jugla : >Hello everyone, > >I am looping with a .bat file to run N simulations with glpsol. >At the end of each simulation, I would like to use the value of a variable >which is calculated, as an input for the next simulation. >What I have written

Re: Constraint on a binary variable

2021-06-30 Thread Heinrich Schuchardt
On 6/30/21 5:24 PM, Philippe Jugla wrote: Hi everyone, In my model, I have a variable "p" which has an upper bound pmax := 2.5 and a lower bound pmin := -2.5. I would simply like to add a binary variable "sign" which takes the values : 1 if variable p is positive 0 if variable p is negative

Re: [Fwd: Include Examples in Documentation Showing Usage]

2021-06-09 Thread Heinrich Schuchardt
On 6/10/21 6:52 AM, Andrew Makhorin wrote: Forwarded Message From: Dario Strbenac To: help-glpk@gnu.org Subject: Include Examples in Documentation Showing Usage Date: Wed, 9 Jun 2021 07:00:09 + Good day, The README and INSTALL files contain only details to compile the

Re: Scheduling problem - cost function

2021-04-01 Thread Heinrich Schuchardt
On 01.04.21 17:07, Philippe Jugla wrote: > Hello everyone, > >   > > I have some difficulties to add a cost parameter that depends on 2 > variables to a scheduling model in GLPK.  > >   > > The problem is as follows :  > >   > > If the unit has started up and been active for less than k hours than

Re: Constraint modelling on a subset

2021-03-23 Thread Heinrich Schuchardt
On 23.03.21 22:28, Philippe Jugla wrote: > Hello,  > >   > > I am rather new to GLPK and I am seeking help regarding the modelling of > a constraint in a unit commitment problem.  > > I hope someone will kindly help me on this one.  > >   > > I am trying to model a constraint which constrains a

Re: Solver delivers wrong answer when 2 constraints are close

2021-03-04 Thread Heinrich Schuchardt
On 3/4/21 4:44 PM, Antti Lehtila wrote: Hi, I think it works fully as documented, and so *per design*. Singleton rows are treated as column bounds by the preprocessor. See documentation for *npp_implied_lower*: *--- *  Processing implied column lower bound l'[q] includes the

Re: [Fwd: Question for infeasible LP problem]

2021-01-04 Thread Heinrich Schuchardt
Dear Jeanette, Consider using library functions glp_get_unbnd_ray() and glp_get_row_stat() to determine *one* of the rows leading to infeasibility. See file doc/glpk.pdf of the GPLK source. Best regards Heinrich On 1/5/21 2:44 AM, Mate Hegyhati wrote: Hi! Maybe I'm wrong, but I don't think

Re: HELP: Reading table from CSV

2020-12-05 Thread Heinrich Schuchardt
On 12/5/20 2:11 PM, Manuel Castro wrote: Hi all, First, I would like to thank you for the constant support as you have always addressed my questions very promptly. Second, I would like to ask you a question as I am really stuck on this one. I have defined the following in the code: set

Re: Help: “current directory” function

2020-12-03 Thread Heinrich Schuchardt
On 12/3/20 2:48 PM, Manuel Castro wrote: > Hi glpk wizards, > > I wonder if there a kind of function or workaround that returns the > directory path of where the ‘.mod’ file is?? > > Basically in the folder where the ‘.mod’ file is, I have created another > folder called “data” where I have all my

Re: Help: read single value from CSV

2020-11-28 Thread Heinrich Schuchardt
Am 28. November 2020 18:08:01 MEZ schrieb Manuel Castro : >Hi there, > > > >What does the syntax statement look like to read a single value from >the CSV file? > >My CSV has the following: > >RowIndex   Capacity > >   1                   33 > > > >I read it as follows: > >param Z {i in I}; >

Re: Help: Switching between different objective function

2020-11-26 Thread Heinrich Schuchardt
On 11/26/20 7:55 PM, Manuel Castro wrote: Hi there, I am wondering how I can use an if statement to switch between different objective functions. For example, how do I represent the following: If (StatusFlag_X == 1 && StatusFlag_Y == 0) then   minimize cost: sum{i in I, j in J} c[i,j] *

Re: Help: read from txt files

2020-11-26 Thread Heinrich Schuchardt
On 11/26/20 7:48 PM, Manuel Castro wrote: Hi there, Is it possible to get GLPK to read/write data from/to text files? If yes: * what is the syntax statement one should use for that purpose? * what is the format the input data in the text file should be in? Many thanks in advance for

Re: Help: Switch constraints on or off

2020-11-24 Thread Heinrich Schuchardt
On 11/24/20 9:30 PM, Heinrich Schuchardt wrote: On 11/24/20 8:42 PM, Andrew Makhorin wrote: On Tue, 2020-11-24 at 18:59 +, Manuel Castro wrote: Hi there, I am wondering how I can use an if statement to turn a constraint on or off. For example in my problem I have the following constraint

Re: Help: Switch constraints on or off

2020-11-24 Thread Heinrich Schuchardt
On 11/24/20 8:42 PM, Andrew Makhorin wrote: On Tue, 2020-11-24 at 18:59 +, Manuel Castro wrote: Hi there, I am wondering how I can use an if statement to turn a constraint on or off. For example in my problem I have the following constraint: subject to linctr14 {i in PeriodsCount: i ==

Re: AW: [Fwd: Portable version]

2020-11-02 Thread Heinrich Schuchardt
You can use the ldd command to find all linked shared libraries. Best regards Heinrich > > > Thanks > > Bernhard > > > > -------- > *Von:* Heinrich Schuchardt > *Gesendet:* Montag, 2. November 20

Re: [Fwd: Portable version]

2020-11-02 Thread Heinrich Schuchardt
Am 2. November 2020 10:53:06 MEZ schrieb Andrew Makhorin : > Forwarded Message >From: "Andraschko, Bernhard" >To: help-glpk@gnu.org >Subject: Portable version >Date: Mon, 2 Nov 2020 07:21:45 + > >> Hi, >> >> I'm currently working for the Chair of Symbolic Computation in

Re: [Fwd: Help please]

2020-10-17 Thread Heinrich Schuchardt
On 10/17/20 7:24 PM, Andrew Makhorin wrote: > Forwarded Message > From: Manuel Castro > To: help-glpk@gnu.org > Subject: Help please > Date: Sat, 17 Oct 2020 17:02:16 - > >> Hi there, >> >> I have the following constraint: >> >> >> subject to linctr20 {i in 1..365}:  >>    

Re: GLPSOL in webassemby faster than native ?

2020-09-30 Thread Heinrich Schuchardt
On 9/30/20 10:02 PM, Michael Hennebry wrote: > On Tue, 29 Sep 2020, Domingo Alvarez Duarte wrote: > >> I found why GLPK in wasm was faster with "--cuts" option than native, >> it was due wasm using qsort from muslc that is a "stable sort", I've >> added it to my GLPK repository and running all

Re: Adding if/then/else statement to GMPL

2020-08-25 Thread Heinrich Schuchardt
for { (col,p) in { cols, 1 }: card({ s in rows: s = row }) = 1 } { >     printf{0..0: card({(i,j,k,l,m,n) in B: >     row >= k and row < m and (col = l or col = n) and >     x[i,j,k,l,m,n] = 1}) > 0} "|"; >     printf{0..0: card({(i,j,k,

Re: best Python interface for GLPK

2020-08-24 Thread Heinrich Schuchardt
Am 24. August 2020 19:35:25 MESZ schrieb Joshua Friedman : >I have tried pymprog and while 0-1 integer programs and linear programs >seems to work great, there might be a bug in integer programs. Is there >a >good interface for python I can use to teach my students. I also need >to >use

Re: Adding if/then/else statement to GMPL

2020-08-24 Thread Heinrich Schuchardt
On 24.08.20 16:33, Domingo Alvarez Duarte wrote: > Hello Meketon ! > > Could you share your view of how it would be expressed (an ideal model > sample) ? > > If you want to talk about it, maybe I'll be interested in implement it ! > > Can you share a collection of models data to be used as base

Re: [Fwd: installation help]

2020-07-16 Thread Heinrich Schuchardt
On 7/15/20 11:06 PM, Andrew Makhorin wrote: > Forwarded Message > From: "Pandey, Sanjit" > To: help-glpk@gnu.org > Subject: installation help > Date: Wed, 15 Jul 2020 20:45:19 + > >> Hi, >>   >> I keep getting following error when I try to install glpk for java. >> Any idea

Re: [Fwd: Need help in Fixing GUSEK Code]

2020-04-10 Thread Heinrich Schuchardt
On 4/10/20 11:57 AM, Andrew Makhorin wrote: > Forwarded Message > From: sahani rathnasiri > To: help-glpk@gnu.org > Subject: Need help in Fixing GUSEK Code > Date: Fri, 10 Apr 2020 19:08:39 +1000 > >> Hi All, >> >> I am running code in GUSEK and I need to define three indexes. I

Re: Submittingjob to NEOS Server using GUSEK and/or GLPSOL

2020-03-20 Thread Heinrich Schuchardt
On 3/20/20 8:53 AM, Heinrich Schuchardt wrote: > On 3/20/20 3:37 AM, Deb Midya wrote: >> >>     Hi, >> >> >> Thanks in advance. >> >> I'm using GUSEK on windows 10. I can submit a job and get solution >> locally. >> >> Is it possible t

Re: Submittingjob to NEOS Server using GUSEK and/or GLPSOL

2020-03-20 Thread Heinrich Schuchardt
On 3/20/20 3:37 AM, Deb Midya wrote: Hi, Thanks in advance. I'm using GUSEK on windows 10. I can submit a job and get solution locally. Is it possible to submit a job to NEOS using GUSEK and/or GLPSOL? Regards, Deb Hello Deb, do you refer to the content management system NEOS

Re: [Help-glpk] is this list (help-glpk) still active?

2020-03-03 Thread Heinrich Schuchardt
On 3/3/20 1:17 PM, Rémi Lapeyre wrote: Le 26 juil. 2019 à 21:54, Heinrich Schuchardt a écrit : On 7/26/19 8:20 PM, Meketon, Marc via Help-glpk wrote: I don’t recall receiving any emails for a few months. I sent out a request back in early June (https://lists.gnu.org/archive/html/help

Re: Help with slow model translation

2020-02-21 Thread Heinrich Schuchardt
On 2/21/20 6:26 PM, Heinrich Schuchardt wrote: On 2/21/20 5:46 PM, Greg Gruber wrote: Hello, I have a model that I have developed using MathProg, that I am using regularly. Some problem datasets result in very large models. The problem itself is solving very quickly, but I am finding the model

Re: Help with slow model translation

2020-02-21 Thread Heinrich Schuchardt
On 2/21/20 5:46 PM, Greg Gruber wrote: Hello, I have a model that I have developed using MathProg, that I am using regularly. Some problem datasets result in very large models. The problem itself is solving very quickly, but I am finding the model translation (reading the .mod file, data files,

Re: Off-by-one error when solving integer linear program

2019-12-17 Thread Heinrich Schuchardt
On 12/18/19 12:12 AM, Matthew Keeter wrote: Hi folks, I used GLPK to solve a problem in this year’s Advent of Code [1], and noticed that it produces a very slightly wrong answer for one of the examples. It’s an integer linear programming problem, pasted below the fold in CPLEX LP format. The

Aw: GLPK Java on Android

2019-12-11 Thread Heinrich Schuchardt
Please, have a look at https://en.m.wikibooks.org/wiki/GLPK/Android_app Best regards Heinrich Am 11.12.19, 23:57 schrieb "Yasmin M." : I'm trying to use the GLPK's library in the Android Studio adding it at the directory “libs” of the Project, however when I try to execute the

Re: Issue with reading from Excel

2019-12-09 Thread Heinrich Schuchardt
Hello Marc, which driver are you using? Your current directory is assumed to be examples\sql. Did you cd to that directory? Best regards Heinrich Schuchardt http://www.xypron.de Am 09.12.19 um 16:23 schrieb Meketon, Marc\ via \Users list for GLPK (GNU Linear Programming Kit) > He

Re: [Help-glpk] Interrupting GLPK on demand

2019-10-14 Thread Heinrich Schuchardt
handling for multi-threaded applications. Best regards Heinrich Best regards, Szabolcs On Mon, 14 Oct 2019 at 19:11, Heinrich Schuchardt wrote: Hello Szabolcs, you can create a terminal hook function (see glp_term_hook()). In this hook function you can trigger an abort using glp_error(). Use

Re: [Help-glpk] Interrupting GLPK on demand

2019-10-14 Thread Heinrich Schuchardt
Hello Szabolcs, you can create a terminal hook function (see glp_term_hook()). In this hook function you can trigger an abort using glp_error(). Use a error hook function (see glp_error_hook()) to catch the error and longjmp() to return to the setjmp() in the calling program. An example in Java

Re: [Help-glpk] is this list (help-glpk) still active?

2019-07-26 Thread Heinrich Schuchardt
On 7/26/19 8:20 PM, Meketon, Marc via Help-glpk wrote: I don’t recall receiving any emails for a few months.  I sent out a request back in early June (https://lists.gnu.org/archive/html/help-glpk/2019-06/msg0.html) that did not generate any response, and prior to that there was some traffic

Re: [Help-glpk] [Fwd: Installation of software]

2019-04-07 Thread Heinrich Schuchardt
On 4/7/19 7:21 PM, Andrew Makhorin wrote: > Forwarded Message > To: m...@gnu.org > Subject: Installation of software > Date: Sat, 6 Apr 2019 16:30:11 +0430 > >> Dear GLPK team, >> I have downloaded GLPK package (version 4.65) and wanted to run it on >> a 64-bit windows. However,

Re: [Help-glpk] stalled GLPK when launching ret = glp_simplex in VBA

2019-02-27 Thread Heinrich Schuchardt
Hello Jean-Christophe, the data you provide is insufficient for an analysis. What is needed is the actual problem or at least the relevant debug output of glp_simplex(). The term_hook() function in https://sourceforge.net/p/winglpk/code/HEAD/tree/trunk/examples/vba/glpk.bas is printing to the

Re: [Help-glpk] Use of GLPK with other software

2018-12-28 Thread Heinrich Schuchardt
On 12/29/18 8:15 AM, Federico Miyara wrote: > > Hi, > > I've just subscribed to this list. My field is acoustics and I plan to > use the solver to optimize combinations of sounds to comply with certain > constraints for their use in experiments. The problem boils down to a > mixed integer linear

Re: [Help-glpk] GLPK input format

2018-08-29 Thread Heinrich Schuchardt
On 03/12/2018 07:09 AM, aku...@tezu.ernet.in wrote: > Hi, I am a beginner with glpk and wanted to know if we can input a .tsv > file into glpsol. You can read a comma separated file via the table command. See the examples/csv folder and doc/gmpl.pdf. Tab separated files are not supported. For

Re: [Help-glpk] Help solving a scheduling optimisation problem

2018-07-12 Thread Heinrich Schuchardt
Hello Joaquim, I guess the constraints are easier to write, if a binary is 1 if it matches the first occupied timeslot of a job and zero for all other timeslots. Best regards Heinrich Am 12.07.18, 23:34, "Joaquim Leitão" schrieb: Hi All, I am fairly new to glpk and linear

Re: [Help-glpk] [Fwd: WINGLPK-4.57]

2018-06-10 Thread Heinrich Schuchardt
, the Java and the CLI/C# bindings. You will additionally need a Python binding if you want to call GLPK from Python 3. See https://en.wikibooks.org/wiki/GLPK/Python for options. Best regards Heinrich Schuchardt On 06/10/2018 01:39 PM, Andrew Makhorin wrote: > Forwarded Mess

Re: [Help-glpk] [Fwd: Hello. I need a example to use GLPK java for MIP.]

2018-05-16 Thread Heinrich Schuchardt
On 05/16/2018 01:39 PM, Andrew Makhorin wrote: Forwarded Message To: help-glpk@gnu.org Subject: Hello. I need a example to use GLPK java for MIP. Date: Wed, 16 May 2018 10:39:46 + (UTC) Dear help-glpk. I'm a student learning optimization. I'm

Re: [Help-glpk] [Fwd: Hi. Can you tell me how to limit on variables GLPK has?]

2018-05-15 Thread Heinrich Schuchardt
Hello Min-jun, your mail had to be forwarded manually because you are not subscribed to the GLPK help list, cf. https://lists.gnu.org/mailman/listinfo/help-glpk I am not sure whether I have correctly understood your questions. So maybe the answers below are not what you were looking for. Don't

Re: [Help-glpk] Requesting for help

2018-05-11 Thread Heinrich Schuchardt
Hello Megersa, if your problem is infeasable than with and without presolver there simply is no solution to retrieve. If you are calling GLPK via the API you could use glp_get_unbnd_ray() to determine which variable causes your problem to be infeasable. Next you could relax the constraints on

Re: [Help-glpk] [Fwd: Requesting for help]

2018-05-11 Thread Heinrich Schuchardt
Hello Megersa, your message had to be forwarded manually because you are not subscribed to the GLPK help list, cf. https://lists.gnu.org/mailman/listinfo/help-glpk NO PRIMAL OPTIMUM SOLUTION simply indicates that you try to solve problem for which no solution exists. You are using OSeMOSYS to

Re: [Help-glpk] How to linearize a weighted average with a decision variable?

2018-04-26 Thread Heinrich Schuchardt
On 04/25/2018 03:15 AM, Matt wrote: > Hi all, > > I'm trying to model a problem but it turned out to be non linear. > > A simplified version of the model is written below. Basically it > averages the weighted value of all enabled points, provided there are > exactly M enabled points. > > *max

Re: [Help-glpk] [Fwd: Help for GLPK Java program]

2018-04-12 Thread Heinrich Schuchardt
Dear Titouan, the library functions are described in detail in file doc/glpk.pdf of the GLPK source distribution. Have a look at the chapter "Problem retrieving routines". See for instance glp_get_mat_row() and glp_get_mat_col(). Best regards Heinrich On 04/12/2018 12:12 PM, Andrew

Re: [Help-glpk] Controlling Precision of Variable Bounds

2018-04-04 Thread Heinrich Schuchardt
In src/api/prmip.c the output is limited to 6 digits of precision (%13.6g). So this is only an output issue. If you use the GMPL language to specify your problem you can indicate the output precision in the printf statement. Best Regards Heinrich var P, integer >= 0, <=33; var x0, integer, >=

Re: [Help-glpk] Compiling and linking problems

2018-03-16 Thread Heinrich Schuchardt
Hello Mike, https://stackoverflow.com/questions/6394512/standard-c-library-in-mingw writes: "MinGW is designed to build native Windows code, and as such it builds against Windows' native libc." So probably you want to change this line in src/env/stdc.c: -#elif defined(__WOE__) +#elif

Re: [Help-glpk] scaling in glpk_4_64.dll

2018-03-16 Thread Heinrich Schuchardt
Hello Jean-Christophe, I have now installed a 64bit Excel 2010. I observed the following: I open a new Excel, import modules lp.bas and glpk.bas, and run routine lp(). Excel crashes. I open a new Excel, import modules lp.bas and glpk.bas, I comment the lines setting the callbacks and run

Re: [Help-glpk] scaling in glpk_4_64.dll

2018-03-16 Thread Heinrich Schuchardt
Double ' scale problem data Declare PtrSafe Sub glp_scale_prob(ByVal lp As LongPtr, ByVal flags As Long) ' unscale problem data Declare PtrSafe Sub glp_unscale_prob(ByVal lp As LongPtr) Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

Re: [Help-glpk] scaling in glpk_4_64.dll

2018-03-16 Thread Heinrich Schuchardt
Hello Jean-Christophe, VBA is a 32bit stdcall application. You cannot call 64bit libraries. Is your problem too big for 32bit? Best regards Heinrich Schuchardt http://www.xypron.de Am 16.03.18 um 15:39 schrieb Huber, Jean-Christophe > Dear GLPK-team, > > I'm using GLPK64 from

Re: [Help-glpk] [Fwd: Antonio Carlos Moretti <moretti+dated+1521124706.e2c...@ime.unicamp.br>]

2018-03-12 Thread Heinrich Schuchardt
the following pages help you: https://en.wikibooks.org/wiki/GLPK/Fortran https://github.com/ArmstrongJ/GLPK-Fortran Best regards Heinrich Schuchardt On 03/11/2018 05:10 AM, Andrew Makhorin wrote: > Forwarded Message > From: Antonio Carlos Moretti <moretti+dated > +15

Re: [Help-glpk] GLPK input format

2018-03-12 Thread Heinrich Schuchardt
The table command can be used to read a csv file or to connect to any ODBC data base. Have a look at the directories doc and examples of the source distribution. Regards Heinrich -- Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.On 3/12/18, 7:09 AM

Re: [Help-glpk] Glpk java in android

2018-02-25 Thread Heinrich Schuchardt
This may be helpful https://github.com/alotau/GLPKAndroid Am 26.02.18, 04:31, Syed Reazul Elahee <reazul.ela...@sysnova.com> schrieb: Still confuse . Do not know what to do for using glpk in android application . On মঙ্গলবার 20 ফেব্রু 2018 05:02 অপরাহ্ণ, Heinrich Schuchardt wrote: &g

Re: [Help-glpk] Glpk java in android

2018-02-25 Thread Heinrich Schuchardt
g glpk in android application . On মঙ্গলবার 20 ফেব্রু 2018 05:02 অপরাহ্ণ, Heinrich Schuchardt wrote: > Please, read > http://glpk-java.sourceforge.net/architecture.html > > Best regards > > Heinrich Schuchardt > > http://www.xypron.de > > Am 20.02.18 um 11:11 s

Re: [Help-glpk] Glpk java in android

2018-02-20 Thread Heinrich Schuchardt
Please, read http://glpk-java.sourceforge.net/architecture.html Best regards Heinrich Schuchardt http://www.xypron.de Am 20.02.18 um 11:11 schrieb Syed Reazul Elahee > Hello , > > I am trying to make an android app which includes linear programming . I > have included glpk-ja

Re: [Help-glpk] piecewise linear function

2018-02-15 Thread Heinrich Schuchardt
Hello Giovanni, please, read doc/gmpl.pdf which comes with the GLPK source. The <<>> syntax may exist in AMPL but it does not exist in GMPL. Depending on your piecewise linear function being concave or convex you can replace it with some linear constraints or you will have to introduce extra

Re: [Help-glpk] Issue with symbolic parameters input from csv files

2018-02-07 Thread Heinrich Schuchardt
Hello Joel, please, provide the model file and the csv file that show the error. Otherwise it is hard to figure out what your problem is. Best regards Heinrich On 02/07/2018 09:19 PM, joel mortyn wrote: > Hi, > > I have a MIP model and am running into an issue when inputting data from > csv

Re: [Help-glpk] [Fwd: Unable to resolve installation of GLPK on MacOS 10]

2018-01-27 Thread Heinrich Schuchardt
see https://en.wikibooks.org/wiki/GLPK/R Am 27.01.18, 13:26, Andrew Makhorin schrieb: Forwarded Message From: reynold tan To: m...@gnu.org , g...@gnu.org Subject: Unable to resolve installation of GLPK on MacOS

Re: [Help-glpk] Need help in installing GLPK-java in mac os x 10.7.5

2018-01-25 Thread Heinrich Schuchardt
library.path is : > /Users/elahee/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.*" > > > any solution ? > > > On বুধবার 24 জানু 2018 03:25 অপরাহ্ণ, Heinrich Schuchardt wrote: >>

Re: [Help-glpk] Need help in installing GLPK-java in mac os x 10.7.5

2018-01-24 Thread Heinrich Schuchardt
k-java-1.11.0 and tried to configure . but it is giving an error , saying "jni.h not found " . What to do next ? On বুধবার 24 জানু 2018 11:17 পূর্বাহ্ণ, Heinrich Schuchardt wrote: Hello Syed, b

Re: [Help-glpk] Need help in installing GLPK-java in mac os x 10.7.5

2018-01-23 Thread Heinrich Schuchardt
Hello Syed, brew install swig then build GLPK for Java from source available at http://glpk-java.sourceforge.net/ Best regards Heinrich Am 24.01.18, 06:00, Syed Reazul Elahee schrieb: Hello , I have successfully installed glpk in mac osx 10.7.5 by

Re: [Help-glpk] [Fwd: Re: [Fwd: GLPK-java on mac 10.7.5]]

2018-01-23 Thread Heinrich Schuchardt
You should be able to install GLPK and Swig with brew. Then build GLPK for Java according to the INSTALL file. Am 23.01.18, 11:01, Andrew Makhorin schrieb: Forwarded Message From: sindhu nir To: Andrew Makhorin Subject: Re:

Re: [Help-glpk] [Fwd: is there a dll edition of glpk mip solver?]

2017-12-07 Thread Heinrich Schuchardt
On 12/07/2017 07:11 AM, Liujianxin (Jason) wrote: > Dear Heinrich, > >   > > Thank you very much for the help document recommended. It helped me a lot. > > Right now I’m trying to use ctypes library of Python 3.5.4 to load > glpk_4_64.dll to solve lp and mip problems. > Please, find appended

Re: [Help-glpk] [Fwd: is there a dll edition of glpk mip solver?]

2017-12-06 Thread Heinrich Schuchardt
Have a look at the chapter on glp_intopt. Best regards Heinrich -- Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 07.12.17, 07:11, "Liujianxin (Jason)" schrieb: Dear Heinrich,   Thank you very much for the help document recommended. It

Re: [Help-glpk] [Fwd: is there a dll edition of glpk mip solver?]

2017-12-04 Thread Heinrich Schuchardt
on...@163.com> schrieb: Dear Heinrich, Thank you very much for your quick response. I found more documents from the url  you sent me. It seems that the glpk function could be called without the executable, am I right? thx 发自我的小米手机在 Heinrich Schuchardt <xypron.g...@gmx.de>,2017年12月4日 20:10

Re: [Help-glpk] [Fwd: is there a dll edition of glpk mip solver?]

2017-12-04 Thread Heinrich Schuchardt
Dear Jason, GLPK consists of a executable glpsol.exe and a dll with the GLPK library. The ways PuLP was written is that it calls the executable and does not interface to the API exposed by the dll in class solvers.py. See https://en.wikibooks.org/wiki/GLPK/Python for alternatives. Best regards

Re: [Help-glpk] Gusek - release 0.2.23

2017-12-04 Thread Heinrich Schuchardt
On 12/04/2017 12:39 PM, Luiz Bettoni wrote: > Gusek project was updated on SourceForge: >    http://gusek.sourceforge.net > > Release changes: >  - GLPK updated to 4.63 (0.2.23) Actually updated to 4.64 Regards Heinrich >  - Minor fixes on run and convert

Re: [Help-glpk] lp/mip preprocessor api

2017-12-02 Thread Heinrich Schuchardt
On 12/02/2017 05:54 PM, Andrew Makhorin wrote: > Hi Heinrich, > >> >> the API should allow the user to add his own simplifications. >> >> This may require access to the npp internal structure. > > It would be problematic. I only plan to include a set of preprocessing > operations sufficient in

Re: [Help-glpk] [Fwd: a polite question] GLPKmex 64bit

2017-11-24 Thread Heinrich Schuchardt
Dear František, it seems that the only maintained version of GLPKmex is to be found at https://github.com/blegat/glpkmex. It includes 64bit support. Cf. https://en.wikibooks.org/wiki/GLPK/Matlab Please, contact the maintainer Benoît Legat if you run into problems. Best regards Heinrich On

Re: [Help-glpk] GLPK 4.63 Windows. "no glpk_java in java.library.path"

2017-10-23 Thread Heinrich Schuchardt
Hello Chris, what is the bitness of the Java engine you use? Does the bitness of the Java engine match the bitness of the DLLs that are in the PATH? Please, provide the complete error output. Best regards Heinrich On 10/23/2017 12:18 AM, Chris Jones wrote: > Installed glpk 4.63 via the

Re: [Help-glpk] MathProg two-dimensional array

2017-10-08 Thread Heinrich Schuchardt
Hello Ralf, please, have a look at the examples directory of the source distribution, e.g. sudoku.mod and at gmpl.pdf. Regards Heinrich Am 08.10.17, 09:43, "r...@jazzcon.de" schrieb: Hello everyone, trying to define arrays with two dimensions, I could not solve this topic

Re: [Help-glpk] [Fwd: Re: [Fwd: graceful tree labeling example]]

2017-10-05 Thread Heinrich Schuchardt
Hello Mike, your model uses more integers than needed. This typically makes problems harder to solve. You just need the binaries gt, vx, and ex. All other variables can be float. The constraints enforce that they will be integer. Best regards Heinrich Schuchardt On 10/05/2017 09:28 PM, Andrew

Re: [Help-glpk] [Fwd: GLPK for Java]

2017-09-16 Thread Heinrich Schuchardt
On 09/16/2017 03:01 PM, Andrew Makhorin wrote: > Forwarded Message > From: schwa...@googlemail.com > To: help-glpk@gnu.org > Subject: GLPK for Java > Date: Sat, 16 Sep 2017 14:03:45 +0200 > > Dear All -- > In many aspects your code does not correlate to the

Re: [Help-glpk] High-dimensinal outer totalistic rule CA genetator for Wolfram CA emulation

2017-09-12 Thread Heinrich Schuchardt
On 09/12/2017 10:33 AM, v...@cs.elte.hu wrote: > Greetings! > > I would like to contribute the attached example CPLEX LP model in the > next release of GLPK. Reviews, opinions, suggestions and bug reports are > kindly welcome! > > This is an automatically generated model file, which was a part

Re: [Help-glpk] Thread Safety of GLPK

2017-08-30 Thread Heinrich Schuchardt
of the one manually > compiled by me. > > So it’s all good now. Nice to hear. Still I heavily recommend to use an error hook function. Otherwise an error in GLPK will stop your whole application. Best regards. Heinrich > > Thanks for your help! > Best, > Simone > >&

Re: [Help-glpk] Thread Safety of GLPK

2017-08-30 Thread Heinrich Schuchardt
you should be able identify the responsible line of code by setting a variable after each line and writing it to the console in the error hook function. Regards Heinrich > > Thanks, > Simone > > >> On Aug 30, 2017, at 11:05, Heinrich Schuchardt <xypron.g...@gmx.de&

Re: [Help-glpk] Thread Safety of GLPK

2017-08-30 Thread Heinrich Schuchardt
in multithreaded applications. The example code creates one thread per problem. In a real world program you should use a thread pool. Best regards Heinrich Schuchardt On 08/30/2017 05:51 AM, Simone Atzeni wrote: > Hi all, > > thanks for your answers. > I updated to version 4.63, but I

Re: [Help-glpk] [Fwd: C# API Exception]

2017-06-13 Thread Heinrich Schuchardt
is just a wrapper for the GLPK library. It calls the libglpk_cli_native.dll library which in turn calls the glpk_4_61.dll library. Best regards Heinrich Schuchardt On 06/13/2017 07:33 AM, Andrew Makhorin wrote: > Forwarded Message > To: 'help-glpk@gnu.org' <help-glp

Re: [Help-glpk] glp_intopt runs forever (related to Dusan Plavak's issue)

2017-06-10 Thread Heinrich Schuchardt
.; Best regards Heinrich Schuchardt Writing problem data to 'problem.lp'... 51 lines were written GLPK Integer Optimizer, v4.62 13 rows, 9 columns, 73 non-zeros 5 integer variables, none of which are binary Preprocessing... 9 rows, 9 columns, 53 non-zeros 5 integer variables, none of which

Re: [Help-glpk] Loading matrix param from Excel table in GLPK

2017-03-10 Thread Heinrich Schuchardt
Hello Rodolfo, I guess it would be a better idea to format the CSV such that C1 and C2 values go into columns: ITU,AGU,5 ITU,CEN,6 PMO,AGU,7 PMO,CEN,8 Otherwise use: set D, dimen 3; set C2; set C1 := setof{(i,j,k) in D} i; param traffic_st{i in C1, j in C2} >=0 := if j = "AGU" then

Re: [Help-glpk] [Fwd: Download help]

2017-02-16 Thread Heinrich Schuchardt
Hello Christian, see https://en.m.wikibooks.org/wiki/GLPK Best regards Heinrich Schuchardt http://www.xypron.de Am 15.02.17 um 17:49 schrieb Andrew Makhorin > Forwarded Message > From: Christian Samatis <cgsama...@gmail.com> > To: help-glpk@gnu.org > Subj

[Help-glpk] xstrerror

2017-01-31 Thread Heinrich Schuchardt
Hello Andrew, the glibc implementation of strerror uses a buffer of 1024 bytes. See https://sourceware.org/git/?p=glibc.git;a=blob;f=string/strerror.c;h=0d235c6b6b7f720ae1b8839b7dc00222b29a4717;hb=HEAD I suggest that you use the same size in xstrerror. Best regards Heinrich

Re: [Help-glpk] things I don't understand in src/env/time.c + bugs + suggested patch

2017-01-29 Thread Heinrich Schuchardt
char *strtok_s(char *strToken, const char *strDelimit, char **context); We can use __WOE__ to decide which function to use. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

[Help-glpk] Thred safety

2017-01-28 Thread Heinrich Schuchardt
if dlsup.c is thread safe. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

[Help-glpk] GLPK for Windows 4.61

2017-01-28 Thread Heinrich Schuchardt
#/CLI 1.8.0 providing a .NET/Mono wrapper for GLPK 4.61 and Glpk for Java 1.8.0 providing a Java binding for GLPK 4.61. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

Re: [Help-glpk] things I don't understand in src/env/time.c + bugs + suggested patch

2017-01-28 Thread Heinrich Schuchardt
On 01/28/2017 01:31 PM, David Monniaux wrote: > Over glpk-4.61 > > src/env/time.c contains: > > double glp_time(void) > { struct timeval tv; > struct tm *tm; > int j; > double t; > gettimeofday(, NULL); > tm = gmtime(_sec); > j = jday(tm->tm_mday,

Re: [Help-glpk] [Fwd: GLPK Infeasibility set inquiry]

2017-01-23 Thread Heinrich Schuchardt
regards Heinrich Schuchardt On 01/23/2017 05:23 PM, Andrew Makhorin wrote: > Forwarded Message > To: help-glpk@gnu.org > Subject: GLPK Infeasibility set inquiry > Date: Mon, 23 Jan 2017 10:46:54 -0500 > > Dear All, > > > I just started learning usi

Re: [Help-glpk] 1024 bit key used to sign GLPK distribution package

2017-01-23 Thread Heinrich Schuchardt
The procedure to upload new keys is described here https://www.gnu.org/prep/maintain/maintain.html If in doubt contact the GNU administrators. Best regards Heinrich Schuchardt http://www.xypron.de Am 23.01.17 um 10:25 schrieb Andrew Makhorin > Hi Heinrich, > > > you are using a

[Help-glpk] 1024 bit key used to sign GLPK distribution package

2017-01-23 Thread Heinrich Schuchardt
. Please, create a signing key of at least and cross sign it with your old 1024 bit key. You might use SHA-256 for signing. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

[Help-glpk] TLS example

2017-01-17 Thread Heinrich Schuchardt
Hello Andrew, I suggest to rename examples/tls to examples/multithreading. This will make it more obvious what can be found here. Best regards Heinrich ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

Re: [Help-glpk] [Fwd: Solutions upon timeout]

2017-01-17 Thread Heinrich Schuchardt
Hello Pietro, your message had to be forwarded manually because you are not subscribed to the GLPK help list, cf. https://lists.gnu.org/mailman/listinfo/help-glpk Yes, glp_mip_col_val will return the best known integer feasible solution. You can use glp_mip_status to find out if any integer

Re: [Help-glpk] Fwd: Re: Infinite cycles

2017-01-16 Thread Heinrich Schuchardt
On 01/16/2017 11:59 PM, Andrew Makhorin wrote: > >> the interesting thing about Matheu's example is that the infeasability >> is constantly increasing over multiple orders of magnitude. > > I'm unable to reproduce the effect. Glpsol with default options has no > problem on solving Mathieu's

[Help-glpk] VBA examples

2017-01-15 Thread Heinrich Schuchardt
an XML based file format like OpenDocument (odf) or open XML (xlsx) if the file is not password protected. Best regards Heinrich Schuchardt ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk

[Help-glpk] glp_version: do not initialize env

2017-01-14 Thread Heinrich Schuchardt
Hello Andrew, if a multithreaded application wants to determine if GLPK supports a feature we now supply glp_config which does not initialize env. I guess we should do the same for glp_version. This makes env smaller and can safely be called even if the library is not TLS enabled. #define

[Help-glpk] Fwd: Re: Determining if the GLPK library is compiled to be reentrant.

2017-01-14 Thread Heinrich Schuchardt
t;); pthread_exit(NULL); } Best regards Heinrich Schuchardt Forwarded Message Subject: Re: [Help-glpk] Determining if the GLPK library is compiled to be reentrant. Date: Sat, 14 Jan 2017 10:25:25 +0100 From: Heinrich Schuchardt <xypron.g...@gmx.de> To: Andrew Makhorin

Re: [Help-glpk] Determining if the GLPK library is compiled to be reentrant.

2017-01-14 Thread Heinrich Schuchardt
calls the GLPK library. Either simply return NULL. Or define a value with signifies an error: glpk.h: #define GLP_INVALID ((const void *) -1) env/env.c: const char *glp_config(const char *option) { ... return GLP_INVALID; ... } Best regards Heinrich Schuchardt On 01/14/2017 03:27 AM

  1   2   3   >