Re: [Help-glpk] GLPK 4.38 for Java under Linux

2009-05-23 Thread xypron

Hello Sylvain,

Sylvain Fournier wrote:
 
 I then saw that there is a glpk_4_38_java library available (
 http://winglpk.sourceforge.net/), I tried it on Windows and it seems to
 work
 fine. But there is a problem of organization in my code, as I use a
 different Java interface when running on Linux and when running on
 Windows.
 So finally, my question on this subject is: is there a Java interface
 equivalent as the one found at http://winglpk.sourceforge.net/, but for
 Linux? In other words, has the glpk_4_38_java.dll also been compiled under
 Linux as a .so?
 

The commands below can be used to create the libraries.
Currently I am puzzled because the call to GLPK.glp_create_prob() works
fine, while 
GLPK.glp_mpl_alloc_wksp() fails with
java: symbol lookup error: /usr/local/lib/libglpk_4_38_java.so: undefined
symbol: glp_mpl_alloc_wksp

Best regards

Xypron


# download and unzip
wget ftp://ftp.gnu.org/gnu/glpk/glpk-4.38.tar.gz
tar -xzf glpk-4.38.tar.gz
wget
http://freefr.dl.sourceforge.net/sourceforge/winglpk/glpsol_dll-4.38-32bit.zip
unzip -o glpsol_dll-4.38-32bit.zip

# make and install glpk
cd glpk-4.38
./configure --enable-dl --enable-odbc
sudo make install

# create libraries with swig
cd swig
mkdir src
mkdir src/java
mkdir java
mkdir java/org
mkdir java/org/gnu
mkdir java/org/gnu/glpk
swig -c++ -java -package org.gnu.glpk -o src/java/glpk_wrap.c -outdir
java/org/gnu/glpk glpk.i
g++ -c -fpic src/java/glpk_wrap.c -I../include
-I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux
g++ -shared glpk_wrap.o -lglpk -lltdl -lgmp -o libglpk_4_38_java.so
sudo cp libglpk_4_38_java.so /usr/local/lib
cd java/org/gnu/glpk
javac *.java
cd ../../..
jar cf glpk.jar *

# make and try example
cd ../../examples
javac -cp ../swig/java/glpk.jar GLPKSwig.java
java --cp ../swig/java/glpk.jar:. GLPKSwig

-- 
View this message in context: 
http://www.nabble.com/GLPK-4.38-for-Java-under-Linux-tp23671681p23686380.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] GLPK 4.38 for Java under Linux

2009-05-25 Thread Sylvain Fournier
Many thanks Xypron for the way to compile the library. I will try it and get
back to you if something is going wrong.

Sylvain


 Date: Sat, 23 May 2009 10:04:09 -0700 (PDT)
 From: xypron xypron.g...@gmx.de
 Subject: Re: [Help-glpk] GLPK 4.38 for Java under Linux
 To: Help-glpk@gnu.org
 Message-ID: 23686380.p...@talk.nabble.com
 Content-Type: text/plain; charset=us-ascii


 Hello Sylvain,

 Sylvain Fournier wrote:
 
  I then saw that there is a glpk_4_38_java library available (
  http://winglpk.sourceforge.net/), I tried it on Windows and it seems to
  work
  fine. But there is a problem of organization in my code, as I use a
  different Java interface when running on Linux and when running on
  Windows.
  So finally, my question on this subject is: is there a Java interface
  equivalent as the one found at http://winglpk.sourceforge.net/, but for
  Linux? In other words, has the glpk_4_38_java.dll also been compiled
 under
  Linux as a .so?
 

 The commands below can be used to create the libraries.
 Currently I am puzzled because the call to GLPK.glp_create_prob() works
 fine, while
 GLPK.glp_mpl_alloc_wksp() fails with
 java: symbol lookup error: /usr/local/lib/libglpk_4_38_java.so: undefined
 symbol: glp_mpl_alloc_wksp

 Best regards

 Xypron


 # download and unzip
 wget ftp://ftp.gnu.org/gnu/glpk/glpk-4.38.tar.gz
 tar -xzf glpk-4.38.tar.gz
 wget

 http://freefr.dl.sourceforge.net/sourceforge/winglpk/glpsol_dll-4.38-32bit.zip
 unzip -o glpsol_dll-4.38-32bit.zip

 # make and install glpk
 cd glpk-4.38
 ./configure --enable-dl --enable-odbc
 sudo make install

 # create libraries with swig
 cd swig
 mkdir src
 mkdir src/java
 mkdir java
 mkdir java/org
 mkdir java/org/gnu
 mkdir java/org/gnu/glpk
 swig -c++ -java -package org.gnu.glpk -o src/java/glpk_wrap.c -outdir
 java/org/gnu/glpk glpk.i
 g++ -c -fpic src/java/glpk_wrap.c -I../include
 -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux
 g++ -shared glpk_wrap.o -lglpk -lltdl -lgmp -o libglpk_4_38_java.so
 sudo cp libglpk_4_38_java.so /usr/local/lib
 cd java/org/gnu/glpk
 javac *.java
 cd ../../..
 jar cf glpk.jar *

 # make and try example
 cd ../../examples
 javac -cp ../swig/java/glpk.jar GLPKSwig.java
 java --cp ../swig/java/glpk.jar:. GLPKSwig

___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Example of Java program using GLPK

2009-07-29 Thread xypron

Hello Alexandre,


Alexandre.Depire wrote:
 
 I'm looking for a simple code of Java program using Glpk to resolve an MIP 
 problem.
 

a  http://glpk-java.sourceforge.net GLPK Java interface  is available at
http://glpk-java.sourceforge.net. Examples are provided.

It is available as package  http://packages.debian.org/source/sid/glpk-java
glpk-java  for Debian Sid.

The GLPK Java interface is also included in  http://winglpk.sourceforge.net
GLPK for Windows .

Best regards

Xypron
-- 
View this message in context: 
http://www.nabble.com/Example-of-Java-program-using-GLPK-tp24719220p24723749.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] The dynamic link library for GLPK for Java could not beloaded.

2011-07-27 Thread name name
Hello,

I have just change my java version and I can't run any more glpk
I got
The dynamic link library for GLPK for Java could not beloaded.
Consider using
java -Djava.library.path=

whot should i do?
how can I change java -Djava.library.path? where is it and where should I
put it?

thank you

Onor
___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] glpk and glpk-java

2009-11-25 Thread Torben Frøberg

Hi

I am using Ubuntu 9.04 and I have installed the glpk version 4.39. I 
would like to install the java interface glpk-java version 1.0.6 
(http://sourceforge.net/projects/glpk-java/). When trying to compile the 
package I get the compiler error:




mkdir -p src/java
mkdir -p java/org/gnu/glpk
swig -I/usr/local/include -I/usr/include -java -package org.gnu.glpk -o 
src/java/glpk_wrap.c -outdir java/org/gnu/glpk glpk.i

libtool --mode=compile gcc -c -fPIC src/java/glpk_wrap.c
libtool: compile: gcc -c -fPIC src/java/glpk_wrap.c -fPIC -DPIC -o 
.libs/glpk_wrap.o

src/java/glpk_wrap.c: In function ‘Java_org_gnu_glpk_GLPKJNI_glp_1vprintf’:
src/java/glpk_wrap.c:7672: error: incompatible types in assignment
make: *** [all] Error 1


I am not an experienced c/c++ programmer, and can not immediately see 
the problem. The source code for the function 
Java_org_gnu_glpk_GLPKJNI_glp_1vprintf


SWIGEXPORT void JNICALL Java_org_gnu_glpk_GLPKJNI_glp_1vprintf(JNIEnv 
*jenv, jclass jcls, jstring jarg1, jlong jarg2) {

char *arg1 = (char *) 0 ;
va_list arg2 ;
va_list *argp2 ;

(void)jenv;
(void)jcls;
arg1 = 0;
if (jarg1) {
arg1 = (char *)(*jenv)-GetStringUTFChars(jenv, jarg1, 0);
if (!arg1) return ;
}
argp2 = *(va_list **)jarg2;
if (!argp2) {
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, Attempt to 
dereference null va_list);

return ;
}
arg2 = *argp2;
glp_vprintf((char const *)arg1,arg2);
if (arg1) (*jenv)-ReleaseStringUTFChars(jenv, jarg1, (const char *)arg1);
}

and line 7672 is
arg2 = *argp2;

Any ideas to what is wrong, would be appreciated.

Best regards
Torben


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


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

2011-07-27 Thread Xypron

Dear Onor,

the Java system parameter java.library.path defines the directories that 
are searched for native libraries.


java.library.path should point to the directory where you have stored
Linux: libglpk_java.so
Windows: glpk_4_45_java.dll

On Linux this path typically is /usr/local/lib/jni, or /usr/lib/jni.

For example you could call your Java class like this:

java -Djava.library.path=/usr/local/lib/jni MyClass

If you start your program from Netbeans or Eclipse, you can save the 
parameter value in the project properties.


Best regards

Xypron


On 27.07.2011 19:27, name name wrote:

Hello,

I have just change my java version and I can't run any more glpk
I got
The dynamic link library for GLPK for Java could not beloaded.
Consider using
java -Djava.library.path=

whot should i do?
how can I change java -Djava.library.path? where is it and where 
should I put it?


thank you

Onor


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK 4.40 - Windows executables, Java libraries

2009-11-04 Thread xypron

GLPK for Windows has been updated to use GLPK 4.40.

A package including precompiled binaries for 32 and 64 bit Windows can be
found at:
http://sourceforge.net/projects/winglpk/

It includes the Java language binding (GLPK-Java).

Best regards

Xypron
-- 
View this message in context: 
http://old.nabble.com/GLPK-4.40---Windows-executables%2C-Java-libraries-tp26204974p26204974.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK 4.41 - Windows executables, Java libraries

2009-12-22 Thread xypron

GLPK for Windows has been updated to use GLPK 4.41.

A package including precompiled binaries for 32 and 64 bit Windows can be
found at:
http://sourceforge.net/projects/winglpk/

It includes the Java language binding GLPK-Java.

Best regards

Xypron

-- 
View this message in context: 
http://old.nabble.com/GLPK-4.41---Windows-executables%2C-Java-libraries-tp26894173p26894173.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK 4.45 - Windows executables, Java libraries

2010-12-07 Thread glpk xypron
GLPK for Windows has been updated to use GLPK 4.45.

A package including precompiled binaries for 32 and 64 bit Windows can be
found at:
http://sourceforge.net/projects/winglpk/

It includes the Java language binding GLPK-Java available at:
http://sourceforge.net/projects/glpk-java/

Best regards

Xypron
-- 
GMX DSL Doppel-Flat ab 19,99 euro;/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl

___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Help

2013-08-23 Thread Raniere Silva
Hi Abhishek,

 Can I run a glpsol program and get it to run a java program?

No. `glpsol` is a C program that uses GLPK C-API.

 Can my data file be a java file and my code be a mod file?

Maybe you can write a Java program that read your model and use the data from
your other Java program.

Raniere

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Java Interface for GLPK 4.8

2005-08-27 Thread Björn

Hello!

If anybody happens to be in need of a Java Interface for GLPK, allowing to 
use GLPK 4.8 in Java programs, please refer to

http://bjoern.dapnet.de/glpk/index.htm

Regards,
Bjoern 








___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de




___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] java glpk 4.45 for linux

2011-03-19 Thread glpk xypron
Hello Ramón,

GLPK for Java is hosted at 
http://glpk-java.sourceforge.net/

For Ubuntu and Debian there is a package libglpk-java.
For Windows GLPK for Java is contained in the GLPK for Windows
available at
http://winglpk.sourceforge.net/

A GLPK for Java application consist of
- the Java application libary
- the GLPK for Java class library (e.g. glpk-java.jar)
- the GLPK for Java JNI library (e.g. libglpk_java.so)
- the GLPK library (e.g. libglpk.so)
See glpk-java-1.0.16/doc/glpk-java.pdf for details

If you want to deploy a web application which executes GLPK
on the client, you must provide the binary libraries to the
client, which match the client operating system and processor
architecture.

As client can be very diverse, e.g. 32bit and 64bit,
and operating systems including Windows, Linux, OS X, NetBSD,
deploying the binary libraries can be challenging.

glpk-java.jar itself does not depend on the operating system and
processor architecture.

Alternatively you could deploy a web application which calls
a Java written webservice on your server. The challenge here
will be that the GLPK library is not threadsafe.

Best regards

Xypron


 Original-Nachricht 
 Datum: Sat, 19 Mar 2011 13:00:16 +0300
 Betreff: [Help-glpk] java glpk 4.45 for linux

 Hi Andrew.
 Would you please help with the link to download this version of java glpk
 for linux?
 Thank you for your help.
 Bye

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!   
Jetzt informieren: http://www.gmx.net/de/go/freephone

___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] installing glpk in java

2011-07-16 Thread name name
Hello,

I would like to use glpk in java could you tell me how can i do it?

Is there only one .so file to put in the pacege in java or two and where can
i find them.

Thank you

Onor
___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Some question about installing GLPK for Java in Linux

2012-06-21 Thread glpk xypron
Hello Chung

 I check in my java folder /usr/java/jdk1.6.0_33/include .
 It has this file and my JAVA_HOME also setuped this path.
export JAVA_HOME=/usr/java/jdk1.6.0_33

Best regards

Xypron
 Original-Nachricht 
 Datum: Thu, 21 Jun 2012 19:43:11 +0800
 Betreff: Re: [Help-glpk] Some question about installing GLPK for Java in  
 Linux

 Dear all ,
 
 now I change the java version to sun-version
 
 java version 1.6.0_33
 Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
 Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
 
 and tried to re-installed libglpk-java.
 
 But when I setuped configure , it occured that
 
 checking jni.h usability... no
 checking jni.h presence... no
 checking for jni.h... no
 
 Where does this file should be ?
 
 I check in my java folder /usr/java/jdk1.6.0_33/include .
 
 It has this file and my JAVA_HOME also setuped this path.
 
 Do I miss something here? Or I made other stupid mistake?
 
 Thank you!
 
 Best regards
 
 Chung Yi

-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!  

Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK for Windows 4.51, GLPK for Java 1.0.29

2013-06-20 Thread Heinrich Schuchardt
GLPK for Java 1.0.29 has been released. It is available from
http://glpk-java.sourceforge.net

GLPK for Windows 4.51 has been released. It is available from
http://winglpk.sourceforge.net
It includes 32bit and 64bit Windows executables of GLPK 4.51 and GLPK for
Java 1.0.29.

Best regards

Heinrich Schuchardt

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Help

2013-08-23 Thread Andrew Makhorin
 Can I run a glpsol program and get it to run a java program?
 Can my data file be a java file and my code be a mod file?
 

You may create a data file with a computer program and then pass it to
glpsol along with your model file. 

See also http://en.wikibooks.org/wiki/GLPK/Java .


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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

2015-07-13 Thread Heinrich Schuchardt
Dear Tayyar,

your message had to be forwared manually because you have not subscribe to the 
GLPK help list, see https://lists.gnu.org/mailman/listinfo/help-glpk.

https://en.wikibooks.org/wiki/GLPK/Java provides an overview about Java 
bindings for GLPK.

The GLPK for Java project hosted at http://glpk-java.sourceforge.net uses Swig 
to generate the JNI code needed to call the C library from Java, covering all 
functions of the GLPK library.
It is not under supervision by Andrew.
Debian and Ubuntu provide package libglpk-java built from the GLPK for Java 
sources, see https://packages.debian.org/jessie/libglpk-java
An example of an academic project using GLPK for Java can be found at 
http://most.ccib.rutgers.edu/help.html

If you are a Windows user you can find binaries at 
http://winglpk.sourceforge.net
If you don't like binaries, all files necessary for building from source 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 GLPK,
 
 First of all I would like to thank you for your attention..
 
 Actually, I would like to use an optimization Java library to solve my
 optimization model.
 When I was searching for a library, I found your product. It is quite
 interesting for me. But as I found from your official web page, it is
 written in C. I searched for Java versions. Thesre is a web site
 ( http://glpk-java.sourceforge.net/ ) that proposes the sourcd files of
 GLPK for Java by the following link,
  http://sourceforge.net/projects/glpk-java/. Actually, I would like to
 know, please, if the source files from this site are under your
 supervision and if they are reliable to work with them?  
 
 I thank you again for your attention
 
 Best regards,
 Tayyar


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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

2018-01-21 Thread Andrew Makhorin
 Forwarded Message 
From: sindhu nir <sindhu.nir...@gmail.com>
To: help-glpk@gnu.org
Subject: GLPK-java on mac 10.7.5
Date: Sun, 21 Jan 2018 16:21:09 +0600

Hello ,


I need to install glpk-java on mac 10.7.5 . Is there any procedure for
it ?


Regards

Elahee




___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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

2018-01-21 Thread Andrew Makhorin

> I need to install glpk-java on mac 10.7.5 . Is there any procedure for
> it ?
> 

Please see http://en.wikibooks.org/wiki/GLPK/Java .


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK 4.42 - Windows executables, Java libraries

2010-01-13 Thread xypron

GLPK for Windows has been updated to use GLPK 4.42.

A package including precompiled binaries for 32 and 64 bit Windows can be
found at:
http://sourceforge.net/projects/winglpk/

It includes the Java language binding GLPK-Java available at:
http://sourceforge.net/projects/glpk-java/

Best regards

Xypron 
-- 
View this message in context: 
http://old.nabble.com/GLPK-4.42---Windows-executables%2C-Java-libraries-tp27149437p27149437.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK 4.43 - Windows executables, Java libraries

2010-02-21 Thread xypron

GLPK for Windows has been updated to use GLPK 4.43.

A package including precompiled binaries for 32 and 64 bit Windows can be
found at:
http://sourceforge.net/projects/winglpk/

It includes the Java language binding GLPK-Java available at:
http://sourceforge.net/projects/glpk-java/

Best regards

Xypron 
-- 
View this message in context: 
http://old.nabble.com/GLPK-4.43---Windows-executables%2C-Java-libraries-tp27677088p27677088.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


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

2011-08-11 Thread name name
I'm using from bst first run works but second I got

The dynamic link library for GLPK for Java could not beloaded.
Consider using
java -Djava.library.path=


I run as follow: java -Djava.library.path=/opt/glpk -Xmx512M -jar
/bin/sbt-launch.jar




On Wed, Jul 27, 2011 at 9:06 PM, Xypron xypron.g...@gmx.de wrote:

 **
 Dear Onor,

 the Java system parameter java.library.path defines the directories that
 are searched for native libraries.

 java.library.path should point to the directory where you have stored
 Linux: libglpk_java.so
 Windows: glpk_4_45_java.dll

 On Linux this path typically is /usr/local/lib/jni, or /usr/lib/jni.

 For example you could call your Java class like this:

 java -Djava.library.path=/usr/local/lib/jni MyClass

 If you start your program from Netbeans or Eclipse, you can save the
 parameter value in the project properties.

 Best regards

 Xypron



 On 27.07.2011 19:27, name name wrote:

 Hello,

 I have just change my java version and I can't run any more glpk
 I got
 The dynamic link library for GLPK for Java could not beloaded.
 Consider using
 java -Djava.library.path=

 whot should i do?
 how can I change java -Djava.library.path? where is it and where should I
 put it?

 thank you

 Onor


 ___
 Help-glpk mailing 
 listHelp-glpk@gnu.orghttps://lists.gnu.org/mailman/listinfo/help-glpk



___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] [Fwd: input file to glpk sample code in java]

2011-11-28 Thread glpk xypron
Hello Paul,

you mail had to be forwarded to the help-glpk list manually
because you did not subscribe to it as described on 
https://lists.gnu.org/mailman/listinfo/help-glpk

GlpkHookIFC is part of a Java binding for GLPK developped by
Björn Frank. As described on
http://en.wikibooks.org/w/index.php?title=GLPK/Java
it has not been maintained in the last years.

If you want to use the current version of GLPK I suggest you
use GLPK for Java available at
http://glpk-java.sourceforge.net

Binaries for Windows are available at
http://winglpk.sourceforge.net

GLPK for Java is also available as Debian or Ubuntu package
libglpk-java.

 Is there a readFrom_File(“myLPFile”) function or similar call
 available
 in glpk.jar ?
In Björn's implementation there is a method GLPK.readCpxlp as
documented on his webpage.

In GLPK for Java you will find method GLPK.glp_read_lp which is
documented in file glpk-4.47/doc/glpk.pdf of the source
distribution of GLPK available at
ftp://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz

If you want to see how hook functions can be used in GLPK
for Java, have a look at the examples in examples/java
and at the documentation in doc/glpk-java.pdf.

Best regards

Xypron

  Forwarded Message 
 Subject: input file to glpk sample code in java
 Date: Mon, 28 Nov 2011 15:38:30 +
 
 Sir/lady,
 
  
 
 I have an input file, myLPFile,  in CPLEX LP format, I import
 org.gnu.glpk.* to my java code (as GnuLPSolver.java under netbeans)
 
  
 
 Could you show me how to pass my CPLEX format input file to
 GlpkHookIFC ?
 
 In particular, what I do after the statement:
 
  
 
 GnuLPK_solver lpsov= new GnuLP_Solver();
 
  
 
 Is there a readFrom_File(“myLPFile”) function or similar call
 available
 in glpk.jar ?
 
  
 
 Thanks,
 
  
 
 Paul 
 
 11/28/11

-- 
Follow me at http://twitter.com/#!/xypron

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Getting null object when using read_model()

2010-04-16 Thread glpk xypron
Hello Jordan,

in glpk-java 1.0.13 there is no method
read_model(.modFile, data, output)

Method GLPK._lpx_read_model() is deprecated.

Please, have a look at examples/java/Gmpl.java
which uses method GLPK.glp_mpl_read_model()

Best regards

Xypron

 Original-Nachricht 

 Hello all,
 
 I am an intermediate Java programmer and am using glpk-java too import a
 model written in MathProg and run it inside of a Java GUI application. The
 model runs just fine if tested in GUSEK, but when I try to create an object
 of the model in java using the read_model(.modFile, data, output) method, I
 get a nullpointer exception because the object being created is null.
 
 The model imports multiple .csv files to use as data sources, but no .dat
 files, thus the second parameter in the read_model method is null. Is there
 an issue with glpk-java creating an object from a model that imports .csv
 files? How can I work around this? Thanks so much for all of your help.
 
 Jordan Stone

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] installing glpk in java

2011-07-17 Thread glpk xypron
Dear Onor,

a Java binding for GLPK is available as project
GLPK for Java at
http://glpk-java.sourceforge.net/

If you are using Ubuntu or Debian you can install package
libglpk-java.

If you are using Windows you can download precompiled
binaries from
http://sourceforge.net/projects/winglpk/

Best regards

Xypron


 Original-Nachricht 
 Datum: Sat, 16 Jul 2011 20:40:29 +0200
 Betreff: [Help-glpk] installing glpk in java

 Hello,
 
 I would like to use glpk in java could you tell me how can i do it?
 
 Is there only one .so file to put in the pacege in java or two and where
 can
 i find them.
 
 Thank you
 
 Onor

-- 
NEU: FreePhone - kostenlos mobil telefonieren!  
Jetzt informieren: http://www.gmx.net/de/go/freephone

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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 huynh.rom...@gmail.comschrieb:


  Hello everyone, first sorry for my bad grammar english isnt my native language.
  

  
  
Im using GLPK-java on Eclipse, Ive set every path as told on some topic i could find on this help list, and everything was working fine.
  
  

  
  
After an automatic java update, Im now encountering this :
  
  

  
  

  The dynamic link library for GLPK for Java could not be loaded.


  Consider using


  java -Djava.library.path=


  The current value of system property java.library.path is:


  C:UsersMarksworkspaceTERlibrairiesjdom;C:UsersMarksworkspaceTERlibrairiesglpkw64

  
  

  
  
I believe JDOM is working otherwise the compilation would tell it, but I cant figure how to make GLPK work again, Ive tried everything.
  
  

  
  
Thanks for answers
  

___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk
  


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Some question about installing GLPK for Java in Linux

2012-06-21 Thread 周宗毅
Dear all ,

now I change the java version to sun-version

java version 1.6.0_33
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)

and tried to re-installed libglpk-java.

But when I setuped configure , it occured that

checking jni.h usability... no
checking jni.h presence... no
checking for jni.h... no

Where does this file should be ?

I check in my java folder /usr/java/jdk1.6.0_33/include .

It has this file and my JAVA_HOME also setuped this path.

Do I miss something here? Or I made other stupid mistake?

Thank you!

Best regards

Chung Yi


2012/6/21 周宗毅 mrcup...@gmail.com

 Dear Author ,

 I met some question about using this in server.

 I followed the web page http://glpk
 -java.sourceforge.net/gettingStarted.html to get started.

 However when I wanted to install this in Linux (Fedora 14 64bit), it
 failed again.

 GLPK for Java

 Download GLPK for Java from
 https://sourceforge.net/projects/glpk-java/files/.

 Unzip the archive with:

  tar -xzf glpk-java-1.0.21.tar.gz

 Make and install with:

  cd glpk-java-1.0.21
  ./configure
  make
  make check
  sudo make install

 When I typed make , the information is below (It looks fine!)

 [mrcupids@SCOPE libglpk-java-1.0.21]$ make
 make  all-recursive
 make[1]: Entering directory `/home/mrcupids/libglpk-java-1.0.21'
 Making all in doc
 make[2]: Entering directory `/home/mrcupids/libglpk-java-1.0.21/doc'
 gzip -c libglpk-java.3  libglpk-java.3.gz
 make[2]: Leaving directory `/home/mrcupids/libglpk-java-1.0.21/doc'
 Making all in swig
 make[2]: Entering directory `/home/mrcupids/libglpk-java-1.0.21/swig'
 mkdir -p target/classes
 mkdir -p target/apidocs
 mkdir -p src/c
 mkdir -p src/main/java/org/gnu/glpk
 cp *.java src/main/java/org/gnu/glpk
 /usr/bin/swig -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include
 -I/usr/lib/jvm/java-1.6.0-openjdk.

x86_64/include/linux -I/usr/include
 -I/usr/local/include  -java -package org.gnu.glpk \
   -o src/c/glpk_wrap.c -outdir src/main/java/org/gnu/glpk glpk.i
 /bin/sh ../libtool --mode=compile gcc
 -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include -I/usr/lib


  /jvm/java-1.6.0-openjdk.x86_64/include/linux -I/usr/include
 -I/usr/local/include  -I. -c -fPIC \
   src/c/glpk_wrap.c
 libtool: compile:  gcc -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include
 -I/usr/lib/jvm/java-1.6.0

  -openjdk.x86_64/include/linux -I/usr/include
 -I/usr/local/include -I. -c -fPIC src/c/glpk_wrap.c

  -fPIC -DPIC -o .libs/glpk_wrap.o
 libtool: compile:  gcc -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include
 -I/usr/lib/jvm/java-1.6.0

  -openjdk.x86_64/include/linux -I/usr/include
 -I/usr/local/include -I. -c -fPIC src/c/glpk_wrap.c

 -o glpk_wrap.o /dev/null 21
 /bin/sh ../libtool --mode=link \
   gcc -version-info 32:0:32 -revision 1.0.21 \
   -g -O -o libglpk_java.la -rpath /usr/local/lib/jni glpk_wrap.lo -lglpk
  libtool: link: rm -fr  .libs/libglpk_java.a 
 .libs/libglpk_java.la.libs/libglpk_java.lai .libs/li

bglpk_java.so .libs/libglpk_java.so.0
 .libs/libglpk_java.so.0.32.0
 libtool: link: gcc -shared  .libs/glpk_wrap.o   -lglpk-Wl,-soname
 -Wl,libglpk_java.so.0 -o .l

ibs/libglpk_java.so.0.32.0
 libtool: link: (cd .libs  rm -f libglpk_java.so.0  ln -s
 libglpk_java.so.0.32.0 libglp

  k_java.so.0)
 libtool: link: (cd .libs  rm -f libglpk_java.so  ln -s
 libglpk_java.so.0.32.0 libglpk_

java.so)
 libtool: link: ar cru .libs/libglpk_java.a  glpk_wrap.o
 libtool: link: ranlib .libs/libglpk_java.a
 libtool: link: ( cd .libs  rm -f libglpk_java.la  ln -s ../
 libglpk_java.la libglpk_jav

a.la )
 /usr/bin/javadoc -sourcepath ./src/main/java org.gnu.glpk -d
 ./target/apidocs
 Loading source files for package org.gnu.glpk...
 Constructing Javadoc information...
 Standard Doclet version 1.6.0_20
 Building tree for all the packages and classes...
 Generating ./target/apidocs/org/gnu/glpk//_glp_arc.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_graph.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_java_arc_data.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_java_vertex_data.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_vertex.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_attr.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_bfcp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_cpxcp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_data.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_iocp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_iptcp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_long.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_mpscp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_prob.html...
 Generating ./target/apidocs/org/gnu/glpk

Re: [Help-glpk] glpk java

2010-03-02 Thread glpk xypron
Hello Fabrizio,

a package libglpk-java is available for Ubuntu lucid,
unfortunately it is the glpk-java 1.0.1 version.

When I compile glpk-java on Debian Squeeze
jni.h is taken from:
/usr/lib/gcc/i486-linux-gnu/4.4/include/jni.h

This file is included in package libgcj10-dev which is
part of package java-gcj-compat-dev.

Hence I suggest you install the following packages:
sudo apt-get install java-gcj-compat-dev
sudo apt-get install swig
sudo apt-get install libtool

With these packages installed glpk-java should 
compile without changes to the Makefile.

Best regards

Xypron

 Original-Nachricht 
 Datum: Tue, 2 Mar 2010 18:10:11 +0300
 Von: Fabrizio Caruso car...@dm.unipi.it
 An: help-glpk@gnu.org
 Betreff: [Help-glpk] glpk java

 I am trying to install a java interface
 for glpk.
 
 I first found the one at http://bjoern.dapnet.de/glpk/
 which does not really work: it loads
 the problem and correctly reports the number of rows
 but when asked to solve the problem it says
 the problem has no rows.
 
 I later found out about the newer interface
 at http://glpk-java.sourceforge.net/ which
 requires compilation but fails to compile:
 
 I followed the instructions found in the file INSTALL
 (Makefile in the swig directory seemed ok to me and
 therefore I only run makefile in the main directoryB)
 
 
 The problem is that make produces the following error:
 
 src/java/glpk_wrap.c:133:17: error: jni.h: No such file or directory
 
 (despite the fact that jni.h is in my system)
 
 I have:
 Ubuntu 9.10
 latest glpk (4.43) installed and working 
 java version 1.6.0_0
 gcc 4.4.1
 
 
 I have also tried to include in Makefile
 the directory where jni.h
 is found (/usr/lib/jvm/java-6-sun/include):
 
 # installation path of the include files
 SWIG_FLAGS := -I/usr/local/include -I/usr/include
 -I/usr/lib/jvm/java-6-sun/include
 # copy version-info from glpk package: src/Makefile.am
 VERSION_INFO := 28:0:28
 # copy revision from glpk package: configure.ac
 REVISION := 4.43
 # installation path for package
 prefix = /usr/local
 ...
 
 but with the same result.
 
 
 Thanks a lot for any help!
 
 
 Fabrizio
 
 
 
 
 
 
 ___
 Help-glpk mailing list
 Help-glpk@gnu.org
 http://lists.gnu.org/mailman/listinfo/help-glpk

-- 
GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://portal.gmx.net/de/go/dsl02


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Some question about installing GLPK for Java in Linux

2012-06-21 Thread glpk xypron
Dear Chung,

You got this error:
Exception in thread main java.lang.UnsatisfiedLinkError: 
/home/mrcupids/libglpk-java-1.0.21/swig/.libs/libglpk_java.so.0.32.0: 
libglpk.so.0: cannot open shared object file: 

Where did you install libglpl.so.0?
(It should be in /usr/lib or /usr/local/lib.)
Did you run /sbin/ldconfig after installing GLPK?

Best regards

Xypron


 Original-Nachricht 
 Datum: Thu, 21 Jun 2012 17:00:48 +0800
 Betreff: [Help-glpk] Some question about installing GLPK for Java in Linux

 Dear Author ,
 
 I met some question about using this in server.
 
 I followed the web page
 http://glpk-java.sourceforge.net/gettingStarted.html to
 get started.
 
 However when I wanted to install this in Linux (Fedora 14 64bit), it
 failed
 again.
 
 GLPK for Java
 
 Download GLPK for Java from
 https://sourceforge.net/projects/glpk-java/files/.
 
 Unzip the archive with:
 
  tar -xzf glpk-java-1.0.21.tar.gz
 
 Make and install with:
 
  cd glpk-java-1.0.21
  ./configure
  make
  make check
  sudo make install
 
 When I typed make , the information is below (It looks fine!)
 
 [mrcupids@SCOPE libglpk-java-1.0.21]$ make
 make  all-recursive
 make[1]: Entering directory `/home/mrcupids/libglpk-java-1.0.21'
 Making all in doc
 make[2]: Entering directory `/home/mrcupids/libglpk-java-1.0.21/doc'
 gzip -c libglpk-java.3  libglpk-java.3.gz
 make[2]: Leaving directory `/home/mrcupids/libglpk-java-1.0.21/doc'
 Making all in swig
 make[2]: Entering directory `/home/mrcupids/libglpk-java-1.0.21/swig'
 mkdir -p target/classes
 mkdir -p target/apidocs
 mkdir -p src/c
 mkdir -p src/main/java/org/gnu/glpk
 cp *.java src/main/java/org/gnu/glpk
 /usr/bin/swig -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include
 -I/usr/lib/jvm/java-1.6.0-openjdk.
 
x86_64/include/linux -I/usr/include
 -I/usr/local/include  -java -package org.gnu.glpk \
   -o src/c/glpk_wrap.c -outdir src/main/java/org/gnu/glpk glpk.i
 /bin/sh ../libtool --mode=compile gcc
 -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include -I/usr/lib
 
 
  /jvm/java-1.6.0-openjdk.x86_64/include/linux -I/usr/include
 -I/usr/local/include  -I. -c -fPIC \
   src/c/glpk_wrap.c
 libtool: compile:  gcc -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include
 -I/usr/lib/jvm/java-1.6.0
 
  -openjdk.x86_64/include/linux -I/usr/include
 -I/usr/local/include -I. -c -fPIC src/c/glpk_wrap.c
 
  -fPIC -DPIC -o .libs/glpk_wrap.o
 libtool: compile:  gcc -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include
 -I/usr/lib/jvm/java-1.6.0
 
  -openjdk.x86_64/include/linux -I/usr/include
 -I/usr/local/include -I. -c -fPIC src/c/glpk_wrap.c
 
 -o glpk_wrap.o /dev/null 21
 /bin/sh ../libtool --mode=link \
   gcc -version-info 32:0:32 -revision 1.0.21 \
   -g -O -o libglpk_java.la -rpath /usr/local/lib/jni glpk_wrap.lo -lglpk
 libtool: link: rm -fr  .libs/libglpk_java.a
 .libs/libglpk_java.la.libs/libglpk_java.lai .libs/li
 
bglpk_java.so .libs/libglpk_java.so.0
 .libs/libglpk_java.so.0.32.0
 libtool: link: gcc -shared  .libs/glpk_wrap.o   -lglpk-Wl,-soname
 -Wl,libglpk_java.so.0 -o .l
 
ibs/libglpk_java.so.0.32.0
 libtool: link: (cd .libs  rm -f libglpk_java.so.0  ln -s
 libglpk_java.so.0.32.0 libglp
 
  k_java.so.0)
 libtool: link: (cd .libs  rm -f libglpk_java.so  ln -s
 libglpk_java.so.0.32.0 libglpk_
 
java.so)
 libtool: link: ar cru .libs/libglpk_java.a  glpk_wrap.o
 libtool: link: ranlib .libs/libglpk_java.a
 libtool: link: ( cd .libs  rm -f libglpk_java.la  ln -s ../
 libglpk_java.la libglpk_jav
 
  a.la )
 /usr/bin/javadoc -sourcepath ./src/main/java org.gnu.glpk -d
 ./target/apidocs
 Loading source files for package org.gnu.glpk...
 Constructing Javadoc information...
 Standard Doclet version 1.6.0_20
 Building tree for all the packages and classes...
 Generating ./target/apidocs/org/gnu/glpk//_glp_arc.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_graph.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_java_arc_data.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_java_vertex_data.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_vertex.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_attr.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_bfcp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_cpxcp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_data.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_iocp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_iptcp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_long.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_mpscp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_prob.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_smcp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_tran.html...
 Generating ./target/apidocs/org/gnu/glpk

[Help-glpk] Some question about installing GLPK for Java in Linux

2012-06-21 Thread 周宗毅
Dear Author ,

I met some question about using this in server.

I followed the web page http://glpk-java.sourceforge.net/gettingStarted.html to
get started.

However when I wanted to install this in Linux (Fedora 14 64bit), it failed
again.

GLPK for Java

Download GLPK for Java from
https://sourceforge.net/projects/glpk-java/files/.

Unzip the archive with:

 tar -xzf glpk-java-1.0.21.tar.gz

Make and install with:

 cd glpk-java-1.0.21
 ./configure
 make
 make check
 sudo make install

When I typed make , the information is below (It looks fine!)

[mrcupids@SCOPE libglpk-java-1.0.21]$ make
make  all-recursive
make[1]: Entering directory `/home/mrcupids/libglpk-java-1.0.21'
Making all in doc
make[2]: Entering directory `/home/mrcupids/libglpk-java-1.0.21/doc'
gzip -c libglpk-java.3  libglpk-java.3.gz
make[2]: Leaving directory `/home/mrcupids/libglpk-java-1.0.21/doc'
Making all in swig
make[2]: Entering directory `/home/mrcupids/libglpk-java-1.0.21/swig'
mkdir -p target/classes
mkdir -p target/apidocs
mkdir -p src/c
mkdir -p src/main/java/org/gnu/glpk
cp *.java src/main/java/org/gnu/glpk
/usr/bin/swig -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include
-I/usr/lib/jvm/java-1.6.0-openjdk.

   x86_64/include/linux -I/usr/include
-I/usr/local/include  -java -package org.gnu.glpk \
  -o src/c/glpk_wrap.c -outdir src/main/java/org/gnu/glpk glpk.i
/bin/sh ../libtool --mode=compile gcc
-I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include -I/usr/lib


 /jvm/java-1.6.0-openjdk.x86_64/include/linux -I/usr/include
-I/usr/local/include  -I. -c -fPIC \
  src/c/glpk_wrap.c
libtool: compile:  gcc -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include
-I/usr/lib/jvm/java-1.6.0

 -openjdk.x86_64/include/linux -I/usr/include
-I/usr/local/include -I. -c -fPIC src/c/glpk_wrap.c

 -fPIC -DPIC -o .libs/glpk_wrap.o
libtool: compile:  gcc -I/usr/lib/jvm/java-1.6.0-openjdk.x86_64/include
-I/usr/lib/jvm/java-1.6.0

 -openjdk.x86_64/include/linux -I/usr/include
-I/usr/local/include -I. -c -fPIC src/c/glpk_wrap.c

-o glpk_wrap.o /dev/null 21
/bin/sh ../libtool --mode=link \
  gcc -version-info 32:0:32 -revision 1.0.21 \
  -g -O -o libglpk_java.la -rpath /usr/local/lib/jni glpk_wrap.lo -lglpk
libtool: link: rm -fr  .libs/libglpk_java.a
.libs/libglpk_java.la.libs/libglpk_java.lai .libs/li

   bglpk_java.so .libs/libglpk_java.so.0
.libs/libglpk_java.so.0.32.0
libtool: link: gcc -shared  .libs/glpk_wrap.o   -lglpk-Wl,-soname
-Wl,libglpk_java.so.0 -o .l

   ibs/libglpk_java.so.0.32.0
libtool: link: (cd .libs  rm -f libglpk_java.so.0  ln -s
libglpk_java.so.0.32.0 libglp

 k_java.so.0)
libtool: link: (cd .libs  rm -f libglpk_java.so  ln -s
libglpk_java.so.0.32.0 libglpk_

   java.so)
libtool: link: ar cru .libs/libglpk_java.a  glpk_wrap.o
libtool: link: ranlib .libs/libglpk_java.a
libtool: link: ( cd .libs  rm -f libglpk_java.la  ln -s ../
libglpk_java.la libglpk_jav

 a.la )
/usr/bin/javadoc -sourcepath ./src/main/java org.gnu.glpk -d
./target/apidocs
Loading source files for package org.gnu.glpk...
Constructing Javadoc information...
Standard Doclet version 1.6.0_20
Building tree for all the packages and classes...
Generating ./target/apidocs/org/gnu/glpk//_glp_arc.html...
Generating ./target/apidocs/org/gnu/glpk//_glp_graph.html...
Generating ./target/apidocs/org/gnu/glpk//_glp_java_arc_data.html...
Generating ./target/apidocs/org/gnu/glpk//_glp_java_vertex_data.html...
Generating ./target/apidocs/org/gnu/glpk//_glp_vertex.html...
Generating ./target/apidocs/org/gnu/glpk//glp_attr.html...
Generating ./target/apidocs/org/gnu/glpk//glp_bfcp.html...
Generating ./target/apidocs/org/gnu/glpk//glp_cpxcp.html...
Generating ./target/apidocs/org/gnu/glpk//glp_data.html...
Generating ./target/apidocs/org/gnu/glpk//glp_iocp.html...
Generating ./target/apidocs/org/gnu/glpk//glp_iptcp.html...
Generating ./target/apidocs/org/gnu/glpk//glp_long.html...
Generating ./target/apidocs/org/gnu/glpk//glp_mpscp.html...
Generating ./target/apidocs/org/gnu/glpk//glp_prob.html...
Generating ./target/apidocs/org/gnu/glpk//glp_smcp.html...
Generating ./target/apidocs/org/gnu/glpk//glp_tran.html...
Generating ./target/apidocs/org/gnu/glpk//glp_tree.html...
Generating ./target/apidocs/org/gnu/glpk//GLPK.html...
Generating ./target/apidocs/org/gnu/glpk//GlpkCallback.html...
Generating ./target/apidocs/org/gnu/glpk//GlpkCallbackListener.html...
Generating ./target/apidocs/org/gnu/glpk//GLPKConstants.html...
Generating ./target/apidocs/org/gnu/glpk//GlpkException.html...
Generating ./target/apidocs/org/gnu/glpk//GLPKJNI.html...
Generating ./target/apidocs/org/gnu/glpk//GlpkTerminal.html...
Generating ./target/apidocs/org/gnu/glpk//GlpkTerminalListener.html...
Generating ./target/apidocs/org/gnu/glpk//LPXKKT.html...
Generating ./target/apidocs/org/gnu/glpk

[Help-glpk] java.lang.Exception: no glpk_java in java.library.path

2010-04-06 Thread Sana Jawad
Hi,

I am trying to call a model written in MathProg using GLPK in java in
Ubuntu.

My code is as follows:



*try
*

{

System.*loadLibrary*(glpk_java);

}

*catch*(UnsatisfiedLinkError e)

{

Exception e2= *new* Exception(e1.getMessage() + JAVA LIBRARAY Path:+System.
*getProperty*(java.library.path));

e2.setStackTrace(e1.getStackTrace());

e2.printStackTrace();

*throw* e2;

}

  I am getting this exception when I execute this code:

java.lang.Exception: no glpk_java in java.library.path

Class
Path:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1698)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)


I have downloaded glpk from http://glpk-java.sourceforge.net/#installation and
followed all the instructions in Install files. I have copied
libglpk_java.so file in usr/lib folder as well (As this path is in the
java.library.path ). But nothing seems to make a difference.

Can anyone please help me.

Thanks in advance,

Sana
___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK-Java JNI in Mac OS X 10.5.8

2012-01-30 Thread

Dear all,
I've some problems while testing the glpk-java for MacOS X 10.5.8.

I'm working with GLPK-4.47 and libglpk-java-1.0.19. I've downloaded  
the latter and properly compile it for x86_64, to avoid the 'match-o,  
but wrong architecture' error issue. Now, the library is compiled for  
64 bits, and seems to be no problem when being loaded by Java VM.


The problem arises me when I try to invoke GLPK from Java:
Exception in thread AWT-EventQueue-0 java.lang.UnsatisfiedLinkError:  
org.gnu.glpk.GLPKJNI.glp_create_prob()J

at org.gnu.glpk.GLPKJNI.glp_create_prob(Native Method)
at org.gnu.glpk.GLPK.glp_create_prob(GLPK.java:65)
at net.sf.javailp.SolverGLPK.solve(SolverGLPK.java:115)
(...)

It seems such a method is not defined in the JAR file, but I'm using  
the glpk-java.jar and the JNI dynamic library, recently compiled from  
libglpk-java-1.0.19 sources. Am I missing something? Any idea?


It's a pity that the tool I've developed is unavailable to run on  
MacOS by this error :'(, it would be wonderful if you guys have some  
idea to fix this!



Thanks in advance, regards
--
Ricardo J. Rodríguez
___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] NoSuchMethodError

2015-07-22 Thread Jeremy Chacon
Hello,

I'm trying to use a java program that uses glpk-java to run glpk. When I
run the program, I get a NoSuchMethodError error:

Exception in thread AWT-EventQueue-0 java.lang.NoSuchMethodError:
org.gnu.glpk.GLPK.init_glpk()

I know that glpk and glpk-java are installed, because if I run glpsol
--version, it tells me 4.52. Also, if I do the hello world-type java
program (described here https://en.wikibooks.org/wiki/GLPK/Java) it also
runs and still tells me 4.52.

I'm using Ubuntu 15.04.

I've messed with many things in my .bashrc and in the script that starts up
the java program, to no avail.

My only current thought is that there is a version issue:  the program I'm
using was written using glpk version 4.47, whereas I installed 4.52.


Is there no method called init_glpk() in version 4.52? Or is there any
other hint any of you might have?

Thanks in advance for any suggestions!

Jeremy



-- 

*___Jeremy
M. Chacon, Ph.D.*

*Post-Doctoral Associate, Harcombe Lab*
*University of Minnesota*
*Ecology, Evolution and Behavior*
___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] GLPK-JNI

2007-11-26 Thread Andrew Makhorin
 I downloaded the Java-GLPK-Interface (GLPK 4.8) and was looking for
 JAVA implementations of a WLP (Warehouse
 Location Problem) in its many variations that is compatible with this
 interface. I would also be thankful if anyone can send larger WLP
 (many restrictions and variables) in Mathprog and Java.

Please see
http://lists.gnu.org/archive/html/help-glpk/2007-11/msg00036.html .
This is a MathProg implementation.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK 4.39 - Windows executables, Java libraries

2009-07-26 Thread xypron

Windows executables and libraries for GLPK 4.39 have been uploaded to
http://winglpk.sourceforge.net/ http://winglpk.sourceforge.net/ 

I have included libraries to call GLPK from Java.

Best regards

Xypron 
-- 
View this message in context: 
http://www.nabble.com/GLPK-4.39---Windows-executables%2C-Java-libraries-tp24670874p24670874.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Compiling glpsol.java using glpk_java.

2010-03-10 Thread xypron

Hello Nigel,

the issue is resolved in glpk-java-1.0.13.

Best regards

Xypron

Nigel Galloway wrote:
 
 Xypron,
 
 The glpk_java distribution provides a Java interface to most of the glpk
 API. I think some improvements are needed to access glp_main and hence
 write glpsol in Java.
 
 ...
 

-- 
View this message in context: 
http://old.nabble.com/Compiling-glpsol.java-using-glpk_java.-tp27771299p27857440.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


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

2015-05-09 Thread Romain Huynh Van Thieng
2015-05-08 14:23 GMT+02:00 Romain Huynh Van Thieng huynh.rom...@gmail.com:

 Hi Heinrich,

 I don't know which version of Java Runtime, I guess it's 64bits, as I
 said, before my java automatic update everything was working perfectly.

 For trial I've set the path to 32 bits and I get this :

 The dynamic link library for GLPK for Java could not be loaded.
 Consider using
 java -Djava.library.path=
 The current value of system property java.library.path is:

 C:\Users\Marks\workspace\TER\librairies\jdom;C:\Users\Marks\workspace\TER\librairies\glpk-4.55\w32

 I'm using the latest GLPK java build for windows, the 4.55, I've tried
 with 4.54 and 4.53, I don't get this message about DLL, but the program
 still not working (he can't find functions such as glp_delete_lp etc.)

 2015-05-08 13:55 GMT+02:00 Heinrich Schuchardt xypron.g...@gmx.de:

 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 huynh.rom...@gmail.comschrieb:

  Hello everyone, first sorry for my bad grammar english isn't my native
 language.

  I'm using GLPK-java on Eclipse, I've set every path as told on some
 topic i could find on this help list, and everything was working fine.

  After an automatic java update, I'm now encountering this :

   The dynamic link library for GLPK for Java could not be loaded.
  Consider using
  java -Djava.library.path=
  The current value of system property java.library.path is:

 C:\Users\Marks\workspace\TER\librairies\jdom;C:\Users\Marks\workspace\TER\librairies\glpk\w64


  I believe JDOM is working otherwise the compilation would tell it, but
 I can't figure how to make GLPK work again, I've tried everything.

  Thanks for answers
  ___ Help-glpk mailing list
 Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk



___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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
init_glpk(). Could this be a method that once was a part of your user code?

The current version of GLPK is 4.55.
The current version of GLPK for Java is 1.1.0.

Ubuntu Vivid (= 15.04) provides packages
libglpk-java (1.0.37) and
libglpk36 (4.55-1).

I suggest you start by cleaning up your system.
Remove your outdated local GLPK and GLPK for Java installations.
Probably the relevant files are in
/usr/local/bin
/usr/local/include
/usr/local/lib
/usr/local/lib/jni
/usr/local/share/java

After cleaning up either install the appropriate Ubuntu packages or you
download glpk-4.55 and GLPK for Java 1.1.0 and build and install from
source.

Best regards

Heinrich Schucharddt


On 22.07.2015 23:09, Jeremy Chacon wrote:
 Hello,
 
 I'm trying to use a java program that uses glpk-java to run glpk. When I
 run the program, I get a NoSuchMethodError error:
 
 Exception in thread AWT-EventQueue-0 java.lang.NoSuchMethodError:
 org.gnu.glpk.GLPK.init_glpk()
 
 I know that glpk and glpk-java are installed, because if I run glpsol
 --version, it tells me 4.52. Also, if I do the hello world-type java
 program (described here https://en.wikibooks.org/wiki/GLPK/Java) it also
 runs and still tells me 4.52.
 
 I'm using Ubuntu 15.04.
 
 I've messed with many things in my .bashrc and in the script that starts
 up the java program, to no avail.
 
 My only current thought is that there is a version issue:  the program
 I'm using was written using glpk version 4.47, whereas I installed 4.52.
 
 
 Is there no method called init_glpk() in version 4.52? Or is there any
 other hint any of you might have?
 
 Thanks in advance for any suggestions!
 
 Jeremy

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Re: cloning

2007-05-12 Thread Ricardo Martins

Dear colleagues,

the GlpkSolver´s API is clonable, but its cloning process has failed,
though I have used casting in glpk 4.8 java interface.
I know that this list is not about glpk 4.8 java interface, but I need
resolve my problem.

thank you very much
ras


On 5/9/07, Ricardo Martins [EMAIL PROTECTED] wrote:




Dear colleagues

how could I clone an object from GlpkSolver class using glpk 4.8 java
interface?

I have received the following error:

glpk_teste13.java:214: clone() has protected access in java.lang.Object
GlpkSolver solver2 = (GlpkSolver) solver.clone( );


best regards
Ricardo Martins

___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Compiling GLPK for Java under Linux

2009-05-31 Thread xypron

Hello Sylvain

Sylvain Fournier wrote:
 
 I then saw that there is a glpk_4_38_java library available (
 http://winglpk.sourceforge.net/), 
 ... has the glpk_4_38_java.dll also been compiled under
 Linux as a .so?
 
I have created a Makefile and added a source code package 
https://sourceforge.net/project/downloading.php?group_id=244007filename=glpk-java-4.38.tar.gza=38892371
glpk-java-4.38.tar.gz 
to the download page of  http://winglpk.sourceforge.net/ GLPK for Windows .

Best regards

Xypron
-- 
View this message in context: 
http://www.nabble.com/GLPK-4.38-for-Java-under-Linux-tp23671681p23804217.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk



Re: [Help-glpk] Problem importing gnulpk-java files in java project

2010-04-16 Thread glpk xypron
If you are asking for help on this list (help-glpk@gnu.org),
please, describe your problem and how it can be reproduced.
An example will be helpful.

GLPK-Java comes with examples in directory
examples/java.

For compiling and running Java programs based on GLPK-Java
glpk-java.jar must be in the classpath.

E.g. with Windows syntax
%JAVA_HOME%\bin\javac -classpath %mydir%/glpk-java.jar Lp.java
%JAVA_HOME%\bin\java -classpath %mydir%/glpk-java.jar;. Lp 

Please, replace %mydir% by the directory containing glpk-java.jar.

Best regards

Xypron


 Original-Nachricht 
 Datum: Fri, 16 Apr 2010 21:58:22 +0400
 Von: cheddz
 An: help-glpk@gnu.org
 Betreff: Re: [Help-glpk] Problem importing gnulpk-java files in java project

 
 Hello, 
 
 I am having a problem very similar to the one you had in this post, and
 was
 wondering if you had ever found a solution to this problem. Please feel
 free
 to email me at iamche...@gmail.com if you found an answer. Thanks so much
 for your time.
 
 
 Sana Jawad wrote:
  
  Hi,
  
  Than alot Carlos this solved the file include error.
  
  Now I am getting error while reading the model. The return value of
  readModel function comes out to be null, which throws NULL pointer
  exception
  when solver2.simplex() command is run.

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] glpk4.38 or later for Java

2010-05-24 Thread Manish Jain
Hello all,

Is there a jar file available for recent versions (glpk 4.38 or later) for
java?

The only one I could find on the net was glpk 4.8 (
http://bjoern.dapnet.de/glpk/).
However, glpk 4.8 has different interpretation in at least lpx_set_col_kind
and lpx_load_matrix.

lpx_set_col_kind keeps giving the error  lpx_set_col_kind: not a MIP
problem whenever I set a
variable lp.setColKind(colIndex, LPX_CV).

Since the above call isn't mandatory, the code works fine even after
removing it.

On the other hand, lpx_load_matrix or lp.loadMatrix() for java keeps giving
the error that zero element is not allowed.

( My code works fine for C++, glpk 4.38 and I need to convert it to java for
an application).

Thanks,

Manish Jain
University of Southern California
___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK for Windows 4.44, GLPK-Java 1.0.14 release information

2010-06-04 Thread glpk xypron
GLPK for Windows has been updated to use GLPK 4.44.

The new release can be downloaded from
http://sourceforge.net/projects/winglpk/files/

GLPK for Windows provides 64bit and 32bit
libraries and executables for Microsoft Windows.

The project homepage is
http://winglpk.sourceforge.net/

It includes GLPK-Java, the Java language binding for GLPK.

GLPK-Java has been updated to version 1.0.14.

Makefiles can be downloaded from the project homepage
http://glpk-java.sourceforge.net/

Best regards

Xypron
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] UnsatisfiedLinkError (GLPK for Java)

2011-06-07 Thread glpk xypron
Hello Nishant,

with the glpk-java.jar you provided I was able to reproduce your
problem.

Please, use a version of GLPK for Java that matches your version
of GLPK:

GLPK 4.44 - GLPK for Java 1.0.15
GLPK 4.45 - GLPK for Java 1.0.16 (the current version)

You can download GLPK for Java from 
http://sourceforge.net/projects/glpk-java/files/

See the instruction at
http://glpk-java.sourceforge.net/gettingStarted.html#Installation_from_source
(please, adjust the version numbers)

and the documentation in
doc/glpk-java.pdf

Examples are provided in
examples/java

You will need the documentation from the GLPK source distribution
available at
ftp://ftp.gnu.org/gnu/glpk/glpk-4.45.tar.gz
The relevant file is:
glpk-4.45/doc/glpk.pdf

Best regards

Xypron

 Original-Nachricht 
 Datum: Tue, 7 Jun 2011 12:13:21 -0700
 Betreff: Re: UnsatisfiedLinkError

 Hi Xypron,
 
 I am using GLPK for Java Version 1.0 (according to the manifest file in
 the
 jar). I am attaching a sample project herewith.
 
 Thanks for your help.
 
 Cheers,
 Nishant Trivedi
 
 On Sun, Jun 5, 2011 at 2:56 AM, xypron.g...@gmx.de wrote:
 
  Could you please indicate the GLPK for Java version and provide the
 project
  files.
 
  Best regards
 
  Xypron

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK for Java 1.0.17, GLPK for Windows 4.46

2011-08-10 Thread glpk xypron
GLPK for Java has been released on
http://glpk-java.sourceforge.net

It provides the Java language binding for GLPK 4.46.

---

GLPK for Windows 4.46 has been released on
http://winglpk.sourceforge.net

It includes the GLPK 4.46 source distribution by Andrew Makhorin,
Windows executables and libraries for 32bit and 64bit Windows as
well as GLPK for Java 1.0.17.

The download page is
http://sourceforge.net/projects/winglpk/files/winglpk/GLPK-4.46/winglpk-4.46.zip/download

Best regards

Xypron
-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!   
Jetzt informieren: http://www.gmx.net/de/go/freephone

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK for Java 1.0.18, GLPK for Windows 4.47

2011-09-10 Thread glpk xypron
GLPK for Java 1.0.18 has been released on
http://glpk-java.sourceforge.net

It provides the Java language binding for GLPK 4.47.

---

GLPK for Windows 4.47 has been released on
http://winglpk.sourceforge.net

It includes the GLPK 4.47 source distribution by Andrew Makhorin,
Windows executables and libraries for 32bit and 64bit Windows as
well as GLPK for Java 1.0.18.

The download page is
http://sourceforge.net/projects/winglpk/files/winglpk/GLPK-4.47/winglpk-4.47.zip/download

Best regards

Xypron 

-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!   
Jetzt informieren: http://www.gmx.net/de/go/freephone

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Viewing input constraints in Java

2011-12-29 Thread Powers II II, Raymond J
Hello,

I am using glpk-java to solve a network flow LP using the simplex solver 
(smcp). The solver has solved a few instances correctly, but not all (even 
simple ones).
My belief is that one of the constraints I am building is not getting input 
correctly. The problem is, I do not know how to view a constraint in Java after 
it is built.

I know the function glp_get_mat_row returns the number of variables in row i, 
as well as stores which variables and coefficients in ind and val. The problem 
is that in Java there is no way to access the individual indices of 
SWIGTYPE_p_int or SWIGTYPE_p_double that I can find.

Any help would be greatly appreciated.

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK for Java 1.0.24, GLPK for Windows 4.48

2013-02-02 Thread Heinrich Schuchardt

GLPK for Java 1.0.24 has been released on
http://glpk-java.sourceforge.net

It provides the Java language binding for GLPK 4.48.

---

GLPK for Windows 4.48 has been released on
http://winglpk.sourceforge.net

It includes the GLPK 4.48 source distribution by Andrew Makhorin,
Windows executables and libraries for 32bit and 64bit Windows as
well as GLPK for Java 1.0.24.

The download page is
http://sourceforge.net/projects/winglpk/files/winglpk/GLPK-4.48/winglpk-4.48.zip/download

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.49, GLPK for Java 1.0.25

2013-04-16 Thread xypron

GLPK for Java 1.0.25 has been released. It is available from
http://glpk-java.sourceforge.net

GLPK for Windows 4.49 has been released. It is available from
http://winglpk.sourceforge.net
It includes 32bit and 64bit Windows executables of GLPK 4.49 and GLPK for
Java 1.0.25.

Best regards

Heinrich Schuchardt
-- 
View this message in context: 
http://old.nabble.com/GLPK-for-Windows-4.49%2C-GLPK-for-Java-1.0.25-tp35303327p35303327.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK for Windows 4.50, GLPK for Java 1.0.28

2013-05-30 Thread xypron

GLPK for Java 1.0.28 has been released. It is available from
http://glpk-java.sourceforge.net

GLPK for Windows 4.50 has been released. It is available from
http://winglpk.sourceforge.net
It includes 32bit and 64bit Windows executables of GLPK 4.50 and GLPK for
Java 1.0.28.

Best regards

Heinrich Schuchardt
-- 
View this message in context: 
http://old.nabble.com/GLPK-for-Windows-4.50%2C-GLPK-for-Java-1.0.28-tp35570815p35570815.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] [Fwd: Need help running GLPK code in Ubuntu server]

2013-06-09 Thread Heinrich Schuchardt

On 09.06.2013 15:33, Kazi Moyeen ul Huq wrote:

java -Djava.library.path=/usr/lib/jni -jar st.jar


Hello Kazi,

the default installation path for GLPK and GLPK for Java is
/usr/local

If you did not configure with --prefix the command line to execute you 
jar file should be


java -Djava.library.path=/usr/local/lib/jni \
  -classpath /usr/local/share/java/glpk-java.jar -jar st.jar

Best regards

Heinrich Schuchardt

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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

2018-01-23 Thread Andrew Makhorin
 Forwarded Message 
From: sindhu nir <sindhu.nir...@gmail.com>
To: Andrew Makhorin <m...@gnu.org>
Subject: Re: [Help-glpk] [Fwd: GLPK-java on mac 10.7.5]
Date: Tue, 23 Jan 2018 11:45:05 +0600

Thanks for replying . I saw the link but did not find any installation
procedure on mac osx 10.7.5 . Please help


On Mon, Jan 22, 2018 at 12:56 PM, Andrew Makhorin <m...@gnu.org> wrote:

> I need to install glpk-java on mac 10.7.5 . Is there any
procedure for
> it ?
>

Please see http://en.wikibooks.org/wiki/GLPK/Java .






___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Java glpk error

2010-07-22 Thread glpk xypron
Hello Bodman,

glpk-java-1.0.14 needs GLPK 4.44 (libglpk.so.0.29.0).

Which version of the glpk library is installed on your computer?

After updating GLPK, please, run
sudo ldconfig.

Best regards

Xypron

 Original-Nachricht 
 Datum: Thu, 22 Jul 2010 22:31:44 +0200
 Betreff: [Help-glpk] Java glpk error

 Hi, 
 
 I recently try to use glpk java interface, but i've got some errors
 (undefined symbol: glp_error_hook). 
 
 The sames errors appeared in make check (in this mail).
 
 Thanks for any help :)
 
 Bodman
 
 
 [t...@localhost glpk-java-1.0.14]$ make
 cd swig; make all
 make[1]: entrant dans le répertoire
 « /home/toky/Téléchargement/glpk-java-1.0.14/swig »
 echo 
 
 mkdir -p target/classes
 mkdir -p target/apidocs
 mkdir -p src/c
 mkdir -p src/main/java/org/gnu/glpk
 cp *.java src/main/java/org/gnu/glpk
 swig -I/usr/local/include -I/usr/include -I/usr/include/glpk
 -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
 -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -java -package
 org.gnu.glpk -o src/c/glpk_wrap.c \
 -outdir src/main/java/org/gnu/glpk glpk.i 
 libtool --mode=compile gcc -I/usr/local/include -I/usr/include
 -I/usr/include/glpk
 -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
 -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -c -fPIC
 src/c/glpk_wrap.c
 libtool: compile:  gcc -I/usr/local/include -I/usr/include
 -I/usr/include/glpk
 -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
 -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -c -fPIC
 src/c/glpk_wrap.c  -fPIC -DPIC -o .libs/glpk_wrap.o
 libtool: compile:  gcc -I/usr/local/include -I/usr/include
 -I/usr/include/glpk
 -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
 -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -c -fPIC
 src/c/glpk_wrap.c -o glpk_wrap.o /dev/null 21
 libtool --mode=link \
   gcc -version-info 29:0:29 -revision 4.44 \
   -g -O -o libglpk_java.la -rpath /usr/local/lib/jni glpk_wrap.lo
 -lglpk 
 libtool: link: gcc -shared  .libs/glpk_wrap.o   -lglpk-Wl,-soname
 -Wl,libglpk_java.so.0 -o .libs/libglpk_java.so.0.29.0
 libtool: link: (cd .libs  rm -f libglpk_java.so.0  ln -s
 libglpk_java.so.0.29.0 libglpk_java.so.0)
 libtool: link: (cd .libs  rm -f libglpk_java.so  ln -s
 libglpk_java.so.0.29.0 libglpk_java.so)
 libtool: link: ar cru .libs/libglpk_java.a  glpk_wrap.o
 libtool: link: ranlib .libs/libglpk_java.a
 libtool: link: ( cd .libs  rm -f libglpk_java.la  ln -s
 ../libglpk_java.la libglpk_java.la )
 javadoc -sourcepath ./src/main/java org.gnu.glpk -d ./target/apidocs
 Loading source files for package org.gnu.glpk...
 Constructing Javadoc information...
 Standard Doclet version 1.6.0_18
 Building tree for all the packages and classes...
 Generating ./target/apidocs/org/gnu/glpk//_glp_arc.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_graph.html...
 Generating ./target/apidocs/org/gnu/glpk//_glp_vertex.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_attr.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_bfcp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_iocp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_long.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_prob.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_smcp.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_tran.html...
 Generating ./target/apidocs/org/gnu/glpk//glp_tree.html...
 Generating ./target/apidocs/org/gnu/glpk//GLPK.html...
 Generating ./target/apidocs/org/gnu/glpk//GlpkCallback.html...
 Generating ./target/apidocs/org/gnu/glpk//GlpkCallbackListener.html...
 Generating ./target/apidocs/org/gnu/glpk//GLPKConstants.html...
 Generating ./target/apidocs/org/gnu/glpk//GlpkException.html...
 Generating ./target/apidocs/org/gnu/glpk//LPXKKT.html...
 Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_double.html...
 Generating
 ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_f_p_glp_tree_p_void__void.html...
 Generating
 ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_f_p_void_p_q_const__char__int.html...
 Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_glp_bfcp.html...
 Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_int.html...
 Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_p__glp_vertex.html...
 Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_void.html...
 Generating ./target/apidocs/org/gnu/glpk//package-frame.html...
 Generating ./target/apidocs/org/gnu/glpk//package-summary.html...
 Generating ./target/apidocs/org/gnu/glpk//package-tree.html...
 Generating ./target/apidocs/constant-values.html...
 Generating ./target/apidocs/serialized-form.html...
 Building index for all the packages and classes...
 Generating ./target/apidocs/overview-tree.html...
 Generating ./target/apidocs/index-all.html...
 Generating ./target/apidocs/deprecated-list.html...
 Building index for all classes...
 Generating ./target/apidocs/allclasses-frame.html

Re: [Help-glpk] Java glpk error

2010-07-23 Thread Bodman
Ok, thanks !

In fedora 11, it's GLPK 4.36.

Have a nice day,

Bodman

Le jeudi 22 juillet 2010 à 22:53 +0200, glpk xypron a écrit :
 Hello Bodman,
 
 glpk-java-1.0.14 needs GLPK 4.44 (libglpk.so.0.29.0).
 
 Which version of the glpk library is installed on your computer?
 
 After updating GLPK, please, run
 sudo ldconfig.
 
 Best regards
 
 Xypron
 
  Original-Nachricht 
  Datum: Thu, 22 Jul 2010 22:31:44 +0200
  Betreff: [Help-glpk] Java glpk error
 
  Hi, 
  
  I recently try to use glpk java interface, but i've got some errors
  (undefined symbol: glp_error_hook). 
  
  The sames errors appeared in make check (in this mail).
  
  Thanks for any help :)
  
  Bodman
  
  
  [t...@localhost glpk-java-1.0.14]$ make
  cd swig; make all
  make[1]: entrant dans le répertoire
  « /home/toky/Téléchargement/glpk-java-1.0.14/swig »
  echo 
  
  mkdir -p target/classes
  mkdir -p target/apidocs
  mkdir -p src/c
  mkdir -p src/main/java/org/gnu/glpk
  cp *.java src/main/java/org/gnu/glpk
  swig -I/usr/local/include -I/usr/include -I/usr/include/glpk
  -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
  -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -java -package
  org.gnu.glpk -o src/c/glpk_wrap.c \
  -outdir src/main/java/org/gnu/glpk glpk.i 
  libtool --mode=compile gcc -I/usr/local/include -I/usr/include
  -I/usr/include/glpk
  -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
  -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -c -fPIC
  src/c/glpk_wrap.c
  libtool: compile:  gcc -I/usr/local/include -I/usr/include
  -I/usr/include/glpk
  -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
  -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -c -fPIC
  src/c/glpk_wrap.c  -fPIC -DPIC -o .libs/glpk_wrap.o
  libtool: compile:  gcc -I/usr/local/include -I/usr/include
  -I/usr/include/glpk
  -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
  -I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -c -fPIC
  src/c/glpk_wrap.c -o glpk_wrap.o /dev/null 21
  libtool --mode=link \
  gcc -version-info 29:0:29 -revision 4.44 \
  -g -O -o libglpk_java.la -rpath /usr/local/lib/jni glpk_wrap.lo
  -lglpk 
  libtool: link: gcc -shared  .libs/glpk_wrap.o   -lglpk-Wl,-soname
  -Wl,libglpk_java.so.0 -o .libs/libglpk_java.so.0.29.0
  libtool: link: (cd .libs  rm -f libglpk_java.so.0  ln -s
  libglpk_java.so.0.29.0 libglpk_java.so.0)
  libtool: link: (cd .libs  rm -f libglpk_java.so  ln -s
  libglpk_java.so.0.29.0 libglpk_java.so)
  libtool: link: ar cru .libs/libglpk_java.a  glpk_wrap.o
  libtool: link: ranlib .libs/libglpk_java.a
  libtool: link: ( cd .libs  rm -f libglpk_java.la  ln -s
  ../libglpk_java.la libglpk_java.la )
  javadoc -sourcepath ./src/main/java org.gnu.glpk -d ./target/apidocs
  Loading source files for package org.gnu.glpk...
  Constructing Javadoc information...
  Standard Doclet version 1.6.0_18
  Building tree for all the packages and classes...
  Generating ./target/apidocs/org/gnu/glpk//_glp_arc.html...
  Generating ./target/apidocs/org/gnu/glpk//_glp_graph.html...
  Generating ./target/apidocs/org/gnu/glpk//_glp_vertex.html...
  Generating ./target/apidocs/org/gnu/glpk//glp_attr.html...
  Generating ./target/apidocs/org/gnu/glpk//glp_bfcp.html...
  Generating ./target/apidocs/org/gnu/glpk//glp_iocp.html...
  Generating ./target/apidocs/org/gnu/glpk//glp_long.html...
  Generating ./target/apidocs/org/gnu/glpk//glp_prob.html...
  Generating ./target/apidocs/org/gnu/glpk//glp_smcp.html...
  Generating ./target/apidocs/org/gnu/glpk//glp_tran.html...
  Generating ./target/apidocs/org/gnu/glpk//glp_tree.html...
  Generating ./target/apidocs/org/gnu/glpk//GLPK.html...
  Generating ./target/apidocs/org/gnu/glpk//GlpkCallback.html...
  Generating ./target/apidocs/org/gnu/glpk//GlpkCallbackListener.html...
  Generating ./target/apidocs/org/gnu/glpk//GLPKConstants.html...
  Generating ./target/apidocs/org/gnu/glpk//GlpkException.html...
  Generating ./target/apidocs/org/gnu/glpk//LPXKKT.html...
  Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_double.html...
  Generating
  ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_f_p_glp_tree_p_void__void.html...
  Generating
  ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_f_p_void_p_q_const__char__int.html...
  Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_glp_bfcp.html...
  Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_int.html...
  Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_p__glp_vertex.html...
  Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_void.html...
  Generating ./target/apidocs/org/gnu/glpk//package-frame.html...
  Generating ./target/apidocs/org/gnu/glpk//package-summary.html...
  Generating ./target/apidocs/org/gnu/glpk//package-tree.html...
  Generating ./target/apidocs/constant-values.html...
  Generating ./target/apidocs/serialized-form.html...
  Building index for all the packages and classes

Re: [Help-glpk] Configuration problem to use GLPK for Java on windows

2013-09-25 Thread Heinrich Schuchardt
Hello Adrien,

Does this work ( it should run some test cases):
open cmd.exe
cd F:\Solvers\glpk-4.52\w64
check_jni.bat

Is Eclipse calling a 64 bit Java runtime?

Which value do you get for
System.getProperty(os.arch)

Best regards

Heinrich Schuchardt

http://www.xypron.de


On 25.09.13 at 11:04, Adrien Bellanger wrote:

 Hi,
 
 
 
 I tried since two days to run my first project using GLPK for Java. I doesn't 
 work due to a problem during the dynamic library linking. I got the following 
 error message:
 
 The dynamic link library for GLPK for Java could not be loaded.
 
 Consider using
 
 java -Djava.library.path=
 
 The current value of system property java.library.path is:
 
 F:\Solvers\glpk-4.52\w64
 
 
 
 I run that in Eclipse with the following option: 
 Windows-preferences-java-Installed JREs
 
 For the only JRE I write in Default VM arguments: 
 -Djava.library.path=F:\Solvers\glpk-4.52\w64\
 
 
 
 My .classpath:
 
 ?xml version=1.0 encoding=UTF-8?
 
 classpath
 
 classpathentry kind=src path=src/
 
 classpathentry kind=con 
 path=org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7/
 
 classpathentry kind=con path=org.eclipse.jdt.junit.JUNIT_CONTAINER/4/
 
 classpathentry kind=lib 
 path=F:/Solvers/glpk-4.52/w64/glpk-java.jar 
 sourcepath=F:/Solvers/glpk-4.52/w64/glpk-java-sources.jar
 
 attributes
 
 attribute 
 name=javadoc_location 
 value=jar:file:/F:/Solvers/glpk-4.52/w64/glpk-java-javadoc.jar!//
 
 /attributes
 
 /classpathentry
 
 classpathentry kind=output path=bin/
 
 /classpath
 
 
 
 
 
 And the content of F:\Solvers\glpk-4.52\w64
 
 
 
 18.09.2013  18:30DIR  .
 
 18.09.2013  18:30DIR  ..
 
 18.07.2013  10:00   337 Build_GLPK_with_VC10.bat
 
 18.07.2013  10:00   349 Build_GLPK_with_VC10_DLL.bat
 
 18.07.2013  10:00   335 Build_GLPK_with_VC9.bat
 
 18.07.2013  10:00   347 Build_GLPK_with_VC9_DLL.bat
 
 14.06.2013  23:22 1.594 Build_JNI_with_VC10_DLL.bat
 
 07.05.2013  21:40 2.121 check_jni.bat
 
 18.07.2013  10:00   308 config_VC
 
 18.07.2013  22:44   195.332 glpk-java-javadoc.jar
 
 18.07.2013  22:4453.602 glpk-java-sources.jar
 
 18.07.2013  22:4444.877 glpk-java.jar
 
 18.07.2013  10:00 3.437 glpk_4_52.def
 
 18.07.2013  22:44 1.524.224 glpk_4_52.dll
 
 18.07.2013  22:4426.676 glpk_4_52.exp
 
 18.07.2013  22:4444.720 glpk_4_52.lib
 
 18.07.2013  22:44 3.582.976 glpk_4_52.pdb
 
 18.07.2013  22:44   348.672 glpk_4_52_java.dll
 
 18.07.2013  22:44   126.019 glpk_4_52_java.exp
 
 18.07.2013  22:44   213.276 glpk_4_52_java.lib
 
 18.07.2013  22:44 1.428.480 glpk_4_52_java.pdb
 
 18.07.2013  21:38 1.042 glpk_java_dll.rc
 
 18.07.2013  22:4475.264 glpsol.exe
 
 18.07.2013  22:44   560.128 glpsol.pdb
 
 18.07.2013  21:38   454 Makefile_JNI_VC_DLL
 
 18.07.2013  10:00 4.295 makefile_VC
 
 18.07.2013  22:43 4.511 makefile_VC_DLL
 
 18.07.2013  10:00   951 readme.txt
 
 18.07.2013  22:44   200.704 vc100.pdb
 
   27 Datei(en),  8.445.031 Bytes
 
2 Verzeichnis(se), 48.363.343.872 Bytes frei
 
 
 
 And the Java version:
 
 F:\java -version
 
 java version 1.7.0_40
 
 Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
 
 Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
 
 
 
 
 
 Has anybody an Idea of what can the problem be?
 
 
 
 I also tried with w32 but that was not better.
 
 Thanks,
 
 
 
 
 
 Best Regards,
 
 Adrien Bellanger

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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

2018-01-25 Thread Heinrich Schuchardt
Hello Syed,

the *.dylib  files for GLPK and GLPK for Java must be in the search path
for binary libraries.

The relevant environment variables can be found in

https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/UsingDynamicLibraries.html

Best regards

Heinrich

On 01/25/2018 05:14 AM, Syed Reazul Elahee wrote:
> Thank you . I have successfully build glpk-java in my mac . I can see
> glpsol version from terminal .
> 
> glpk-java-javadoc.jar,glpk-java-sources.jar and glpk-java.jar files
> created inside swig directory .
> 
> i have used this jars in my java project . when i run my project i am
> getting a new error message
> 
> " *The dynamic link library for GLPK for java could not be loaded .
> Consider using java -Djava.library.path=The current value of system
> property java.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:
>> Did you install the JDK?
>>
>> Did you export the necessary environment variables?
>>
>> http://glpk-java.sourceforge.net/gettingStarted.html
>>
>> The paths to jni.h differ between Linux and OS X.
>>
>> Am 24.01.18, 09:58, Syed Reazul Elahee <reazul.ela...@sysnova.com>
>> schrieb:
>>
>> i have downloaded libglpk-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,
>>>
>>> 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
>>> <reazul.ela...@sysnova.com> schrieb:
>>>
>>> Hello ,
>>>
>>> I have successfully installed glpk in mac osx 10.7.5 by*brew
>>> install glpk* comand . From terminal i can see glpk version
>>> *4.64***by typing*glpsol* comand .
>>>
>>> Now i need glpk-jar jar files to add in my netbeans project .
>>> But i do not find any jar for mac .Do i have to build jar
>>> from source ? if yes , the how ?
>>>
>>> Please help
>>>
>>> -- 
>>>
>>> Syed Reazul Elahee
>>> Trainee Programmer
>>> Sysnova Information Systems Limited
>>> (Sister concern of Kazi Farms Group)
>>> Ahmad and Kazi Tower
>>> 35 Dhanmandi Road 2
>>> Dhaka 1205
>>> Bangladesh
>>> www.sysnova.com
>>>
>>> ___ Help-glpk
>>> mailing list Help-glpk@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/help-glpk 
>>>
>>
>> -- 
>>
>> Syed Reazul Elahee
>> Trainee Programmer
>> Sysnova Information Systems Limited
>> (Sister concern of Kazi Farms Group)
>> Ahmad and Kazi Tower
>> 35 Dhanmandi Road 2
>> Dhaka 1205
>> Bangladesh
>> www.sysnova.com
>>
> 
> -- 
> 
> Syed Reazul Elahee
> Trainee Programmer
> Sysnova Information Systems Limited
> (Sister concern of Kazi Farms Group)
> Ahmad and Kazi Tower
> 35 Dhanmandi Road 2
> Dhaka 1205
> Bangladesh
> www.sysnova.com
> 


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Java glpk error

2010-07-22 Thread Bodman
Hi, 

I recently try to use glpk java interface, but i've got some errors
(undefined symbol: glp_error_hook). 

The sames errors appeared in make check (in this mail).

Thanks for any help :)

Bodman


[t...@localhost glpk-java-1.0.14]$ make
cd swig; make all
make[1]: entrant dans le répertoire
« /home/toky/Téléchargement/glpk-java-1.0.14/swig »
echo 

mkdir -p target/classes
mkdir -p target/apidocs
mkdir -p src/c
mkdir -p src/main/java/org/gnu/glpk
cp *.java src/main/java/org/gnu/glpk
swig -I/usr/local/include -I/usr/include -I/usr/include/glpk
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -java -package
org.gnu.glpk -o src/c/glpk_wrap.c \
-outdir src/main/java/org/gnu/glpk glpk.i 
libtool --mode=compile gcc -I/usr/local/include -I/usr/include
-I/usr/include/glpk
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -c -fPIC
src/c/glpk_wrap.c
libtool: compile:  gcc -I/usr/local/include -I/usr/include
-I/usr/include/glpk
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -c -fPIC
src/c/glpk_wrap.c  -fPIC -DPIC -o .libs/glpk_wrap.o
libtool: compile:  gcc -I/usr/local/include -I/usr/include
-I/usr/include/glpk
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ -c -fPIC
src/c/glpk_wrap.c -o glpk_wrap.o /dev/null 21
libtool --mode=link \
gcc -version-info 29:0:29 -revision 4.44 \
-g -O -o libglpk_java.la -rpath /usr/local/lib/jni glpk_wrap.lo
-lglpk 
libtool: link: gcc -shared  .libs/glpk_wrap.o   -lglpk-Wl,-soname
-Wl,libglpk_java.so.0 -o .libs/libglpk_java.so.0.29.0
libtool: link: (cd .libs  rm -f libglpk_java.so.0  ln -s
libglpk_java.so.0.29.0 libglpk_java.so.0)
libtool: link: (cd .libs  rm -f libglpk_java.so  ln -s
libglpk_java.so.0.29.0 libglpk_java.so)
libtool: link: ar cru .libs/libglpk_java.a  glpk_wrap.o
libtool: link: ranlib .libs/libglpk_java.a
libtool: link: ( cd .libs  rm -f libglpk_java.la  ln -s
../libglpk_java.la libglpk_java.la )
javadoc -sourcepath ./src/main/java org.gnu.glpk -d ./target/apidocs
Loading source files for package org.gnu.glpk...
Constructing Javadoc information...
Standard Doclet version 1.6.0_18
Building tree for all the packages and classes...
Generating ./target/apidocs/org/gnu/glpk//_glp_arc.html...
Generating ./target/apidocs/org/gnu/glpk//_glp_graph.html...
Generating ./target/apidocs/org/gnu/glpk//_glp_vertex.html...
Generating ./target/apidocs/org/gnu/glpk//glp_attr.html...
Generating ./target/apidocs/org/gnu/glpk//glp_bfcp.html...
Generating ./target/apidocs/org/gnu/glpk//glp_iocp.html...
Generating ./target/apidocs/org/gnu/glpk//glp_long.html...
Generating ./target/apidocs/org/gnu/glpk//glp_prob.html...
Generating ./target/apidocs/org/gnu/glpk//glp_smcp.html...
Generating ./target/apidocs/org/gnu/glpk//glp_tran.html...
Generating ./target/apidocs/org/gnu/glpk//glp_tree.html...
Generating ./target/apidocs/org/gnu/glpk//GLPK.html...
Generating ./target/apidocs/org/gnu/glpk//GlpkCallback.html...
Generating ./target/apidocs/org/gnu/glpk//GlpkCallbackListener.html...
Generating ./target/apidocs/org/gnu/glpk//GLPKConstants.html...
Generating ./target/apidocs/org/gnu/glpk//GlpkException.html...
Generating ./target/apidocs/org/gnu/glpk//LPXKKT.html...
Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_double.html...
Generating 
./target/apidocs/org/gnu/glpk//SWIGTYPE_p_f_p_glp_tree_p_void__void.html...
Generating 
./target/apidocs/org/gnu/glpk//SWIGTYPE_p_f_p_void_p_q_const__char__int.html...
Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_glp_bfcp.html...
Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_int.html...
Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_p__glp_vertex.html...
Generating ./target/apidocs/org/gnu/glpk//SWIGTYPE_p_void.html...
Generating ./target/apidocs/org/gnu/glpk//package-frame.html...
Generating ./target/apidocs/org/gnu/glpk//package-summary.html...
Generating ./target/apidocs/org/gnu/glpk//package-tree.html...
Generating ./target/apidocs/constant-values.html...
Generating ./target/apidocs/serialized-form.html...
Building index for all the packages and classes...
Generating ./target/apidocs/overview-tree.html...
Generating ./target/apidocs/index-all.html...
Generating ./target/apidocs/deprecated-list.html...
Building index for all classes...
Generating ./target/apidocs/allclasses-frame.html...
Generating ./target/apidocs/allclasses-noframe.html...
Generating ./target/apidocs/index.html...
Generating ./target/apidocs/help-doc.html...
Generating ./target/apidocs/stylesheet.css...
jar cf glpk-java-javadoc.jar -C ./target/apidocs .
jar cf glpk-java-sources.jar -C ./src/main/java .
javac -source 1.6 -target 1.6 -sourcepath ./src/main/java \
-d ./target/classes *.java 
jar cf glpk-java.jar -C ./target/classes

[Help-glpk] cloning

2007-05-09 Thread Ricardo Martins

Dear colleagues

how could I clone an object from GlpkSolver class using glpk 4.8 java
interface?

I have received the following error:

glpk_teste13.java:214: clone() has protected access in java.lang.Object
GlpkSolver solver2 = (GlpkSolver) solver.clone( );


best regards
Ricardo Martins
___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] glpk-java libtool install error

2010-08-24 Thread IsiAna

Hello everybody,

I'm trying to install glpk-java-1.0.14 on Ubuntu 10.04. I got the tar.gz
package from http://sourceforge.net/projects/glpk-java/. I manage to install
the glpk-4.44, swig, libtool and java-gcj-compat-dev.
I have following error libtool: install: `/lib/jni/libglpk_java.la' is not a
directory, when I run the make install command for glpk-java.
Here is my output

cd swig; make install
make[1]: Entering directory
`/home/isi/SystemFiles/GLPK/glpk-java-1.0.14/swig'
mkdir -p -m 755 /usr/local /lib/jni;true
libtool --mode=install install -c libglpk_java.la /usr/local
/lib/jni/libglpk_java.la
libtool: install: `/lib/jni/libglpk_java.la' is not a directory
libtool: install: Try `libtool --help --mode=install' for more information.
make[1]: *** [install] Error 1
make[1]: Leaving directory
`/home/isi/SystemFiles/GLPK/glpk-java-1.0.14/swig'
make: *** [install] Error 2

Please is there anyone that can help me? Thanks a lot.
Anastasiya
-- 
View this message in context: 
http://old.nabble.com/glpk-java-libtool-install-error-tp29520668p29520668.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] glpk-java libtool install error

2010-08-24 Thread Xypron

Hello Anastasiya,

the error occurs in glpk-java-1.0.14/swig/Makefile in the following line:

libtool --mode=install install -c libglpk_java.la 
$(DESTDIR)${prefix}/lib/jni/libglpk_java.la


This command should install libglpk_java.so in directory /usr/local/lib/jni.

Please, delete any trailing space in the following line:

prefix = /usr/local

Best regards

Xypron


IsiAna wrote:

Hello everybody,

I'm trying to install glpk-java-1.0.14 on Ubuntu 10.04. I got the tar.gz
package from http://sourceforge.net/projects/glpk-java/. I manage to install
the glpk-4.44, swig, libtool and java-gcj-compat-dev.
I have following error libtool: install: `/lib/jni/libglpk_java.la' is not a
directory, when I run the make install command for glpk-java.
Here is my output

cd swig; make install
make[1]: Entering directory
`/home/isi/SystemFiles/GLPK/glpk-java-1.0.14/swig'
mkdir -p -m 755 /usr/local /lib/jni;true
libtool --mode=install install -c libglpk_java.la /usr/local
/lib/jni/libglpk_java.la
libtool: install: `/lib/jni/libglpk_java.la' is not a directory
libtool: install: Try `libtool --help --mode=install' for more information.
make[1]: *** [install] Error 1
make[1]: Leaving directory
`/home/isi/SystemFiles/GLPK/glpk-java-1.0.14/swig'
make: *** [install] Error 2

Please is there anyone that can help me? Thanks a lot.
Anastasiya
   



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Glpk 4.47 java bindings for windows

2012-10-26 Thread Manish Jain
Hi,

It seems that the pre-compiled w64 java bindings for GLPK 4.47 available on
http://sourceforge.net/projects/winglpk/files/
are actually IA-32.

Can somebody who has AMD64 architecture and VC generate the glpk_4_47.dll
and glpk_4_47_java.dll and post it on sourceforge.

Thanks,

- Manish
___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] libglpk-java

2012-10-28 Thread glpk xypron
Hello Halim,

one reason for the behaviour you describe could be running multiple threads 
calling GLPK. GLPK is not thread safe. Is your application single threaded?

 glp_error_hook error message
Do you mean GlpkException? How do you handle exceptions?

Could you, please, provide:
- version of GLPK for Java
- version of Cent OS
- version of Java runtime
- an example showing the problem

It is sufficient, if you send the example code to me (not the list).

Best regards

Xypron

 Original-Nachricht 
 Datum: Sun, 28 Oct 2012 18:04:25 +
 Betreff: [Help-glpk] libglpk-java

 Hello all,
 
 I would like to know if there are folks happy with the libglpk-java
 llibrary binding.
 
 I am now going through java system calls to C, with the C code calling the
 libglpk C library. The interface is via input and output files, which has
 worked very well, but I am looking for a full java solution (to avoid the
 file read/write).
 
 On linux CentOS, libglpk-java has been unreliable. For the same problem, I
 get the right solution at times, a glp_error_hook error message at times,
 and no exception handling message at all at other times. Several of us have
 built the library from source on different machines, with the same overall
 experience.
 
 Any success story with this library in the linux environment?
 
 Thanks a bunch.
 
 Rgds,
 halim
 

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Help

2013-08-23 Thread Abhishek R Varma
Hi,

Can I run a glpsol program and get it to run a java program?
Can my data file be a java file and my code be a mod file?

Best Regards,
Abhishek

Sent from my iPad

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


GLPK Java on Android

2019-12-11 Thread 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 application in the cell phone, in the moment that a function calls the library, it's crashing and showing a message that “libglpk-java.so” was not found. There is anyway to use the library in the Android Studio or will be a release soon with a version of the GLPK-Java that runs in the IDE?



[Help-glpk] Configuration problem to use GLPK for Java on windows

2013-09-25 Thread Adrien Bellanger
Hi,

I tried since two days to run my first project using GLPK for Java. I doesn't 
work due to a problem during the dynamic library linking. I got the following 
error message:
The dynamic link library for GLPK for Java could not be loaded.
Consider using
java -Djava.library.path=
The current value of system property java.library.path is:
F:\Solvers\glpk-4.52\w64

I run that in Eclipse with the following option: 
Windows-preferences-java-Installed JREs
For the only JRE I write in Default VM arguments: 
-Djava.library.path=F:\Solvers\glpk-4.52\w64\

My .classpath:
?xml version=1.0 encoding=UTF-8?
classpath
classpathentry kind=src path=src/
classpathentry kind=con 
path=org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7/
classpathentry kind=con path=org.eclipse.jdt.junit.JUNIT_CONTAINER/4/
classpathentry kind=lib 
path=F:/Solvers/glpk-4.52/w64/glpk-java.jar 
sourcepath=F:/Solvers/glpk-4.52/w64/glpk-java-sources.jar
attributes
attribute 
name=javadoc_location 
value=jar:file:/F:/Solvers/glpk-4.52/w64/glpk-java-javadoc.jar!//
/attributes
/classpathentry
classpathentry kind=output path=bin/
/classpath


And the content of F:\Solvers\glpk-4.52\w64

18.09.2013  18:30DIR  .
18.09.2013  18:30DIR  ..
18.07.2013  10:00   337 Build_GLPK_with_VC10.bat
18.07.2013  10:00   349 Build_GLPK_with_VC10_DLL.bat
18.07.2013  10:00   335 Build_GLPK_with_VC9.bat
18.07.2013  10:00   347 Build_GLPK_with_VC9_DLL.bat
14.06.2013  23:22 1.594 Build_JNI_with_VC10_DLL.bat
07.05.2013  21:40 2.121 check_jni.bat
18.07.2013  10:00   308 config_VC
18.07.2013  22:44   195.332 glpk-java-javadoc.jar
18.07.2013  22:4453.602 glpk-java-sources.jar
18.07.2013  22:4444.877 glpk-java.jar
18.07.2013  10:00 3.437 glpk_4_52.def
18.07.2013  22:44 1.524.224 glpk_4_52.dll
18.07.2013  22:4426.676 glpk_4_52.exp
18.07.2013  22:4444.720 glpk_4_52.lib
18.07.2013  22:44 3.582.976 glpk_4_52.pdb
18.07.2013  22:44   348.672 glpk_4_52_java.dll
18.07.2013  22:44   126.019 glpk_4_52_java.exp
18.07.2013  22:44   213.276 glpk_4_52_java.lib
18.07.2013  22:44 1.428.480 glpk_4_52_java.pdb
18.07.2013  21:38 1.042 glpk_java_dll.rc
18.07.2013  22:4475.264 glpsol.exe
18.07.2013  22:44   560.128 glpsol.pdb
18.07.2013  21:38   454 Makefile_JNI_VC_DLL
18.07.2013  10:00 4.295 makefile_VC
18.07.2013  22:43 4.511 makefile_VC_DLL
18.07.2013  10:00   951 readme.txt
18.07.2013  22:44   200.704 vc100.pdb
  27 Datei(en),  8.445.031 Bytes
   2 Verzeichnis(se), 48.363.343.872 Bytes frei

And the Java version:
F:\java -version
java version 1.7.0_40
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)


Has anybody an Idea of what can the problem be?

I also tried with w32 but that was not better.
Thanks,


Best Regards,
Adrien Bellanger

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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

2018-01-24 Thread Syed Reazul Elahee
Thank you . I have successfully build glpk-java in my mac . I can see 
glpsol version from terminal .


glpk-java-javadoc.jar,glpk-java-sources.jar and glpk-java.jar files 
created inside swig directory .


i have used this jars in my java project . when i run my project i am 
getting a new error message


" *The dynamic link library for GLPK for java could not be loaded . 
Consider using java -Djava.library.path=The current value of system 
property java.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:

Did you install the JDK?

Did you export the necessary environment variables?

http://glpk-java.sourceforge.net/gettingStarted.html

The paths to jni.h differ between Linux and OS X.

Am 24.01.18, 09:58, Syed Reazul Elahee <reazul.ela...@sysnova.com> 
schrieb:


i have downloaded libglpk-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,

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
<reazul.ela...@sysnova.com> schrieb:

Hello ,

I have successfully installed glpk in mac osx 10.7.5 by*brew
install glpk* comand . From terminal i can see glpk version
*4.64***by typing*glpsol* comand .

Now i need glpk-jar jar files to add in my netbeans project .
But i do not find any jar for mac .Do i have to build jar
from source ? if yes , the how ?

Please help

-- 


Syed Reazul Elahee
Trainee Programmer
Sysnova Information Systems Limited
(Sister concern of Kazi Farms Group)
Ahmad and Kazi Tower
35 Dhanmandi Road 2
Dhaka 1205
Bangladesh
www.sysnova.com

___ Help-glpk
mailing list Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk 



-- 


Syed Reazul Elahee
Trainee Programmer
Sysnova Information Systems Limited
(Sister concern of Kazi Farms Group)
Ahmad and Kazi Tower
35 Dhanmandi Road 2
Dhaka 1205
Bangladesh
www.sysnova.com



--

Syed Reazul Elahee
Trainee Programmer
Sysnova Information Systems Limited
(Sister concern of Kazi Farms Group)
Ahmad and Kazi Tower
35 Dhanmandi Road 2
Dhaka 1205
Bangladesh
www.sysnova.com

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


RE: [Help-glpk] Question about GLPK

2005-08-11 Thread Noli.Sicad

Here, at the University of Chile, we are interested in developing some 
optimization
rutines for various engineering problems. I understand that GLPK (linear
programming rutine) comes with an API for C, C++ written language programs
¿exclusively? Does this GLPK run (or complie) under pure LINUX? Is it  
possible
to implement in Java written programs?

Sorry, the link was not working for this.
http://rpmfind.net//linux/RPM/cooker/2006.0/i586/media/contrib/python-glpk-0.4-2mdk.i586.html

This is the one you should be downloading.
http://rpm.pbone.net/index.php3?stat=26dist=17size=14146name=python-glpk-0.4-2mdk.src.rpm

python-glpk-0.4-2mdk.src.rpm has this glpk.i.

* In src rpm, there is glpk.i which you can use to create java bindings for * 
glpk. Hence, you can write program in java. Or you can use python-glpk and * 
use jython for java application, if you don't want to create java-glpk

* http://www.jython.org/


Noli


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Running java wrapper for GLPK on 64-bit Linux

2009-12-15 Thread Niedringhaus, William P.
I am transitioning from 32 to 64 bit Linux.   Have
been running the java wrapper for GLPK.  

but have not been able to get it running on the 64 bit
(except by using 32-bit java, no good since I need more than 2G memory)

 

Evidently we need to get a 64-bit version of the C code into
a .so file (the only .so we have is 32-bit C)

 

Ideas?

Thanks,

 

-   Bill Niedringhaus

-   Mitre Corp.

-





 







I am transitioning from 32 to 64 bit Linux. Have
been running the java wrapper for GLPK. 

but have not been able to get it running on the 64 bit
(except by using 32-bit java, no good since I need more than 2G memory)



Evidently we need to get a 64-bit version of the C code into
a .so file (the only .so we have is 32-bit C)



Ideas?

Thanks,



-
Bill Niedringhaus

-
Mitre Corp.

-







___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Getting null object when using read_model()

2010-04-16 Thread Jordan Stone
Hello all,

I am an intermediate Java programmer and am using glpk-java too import a model 
written in MathProg and run it inside of a Java GUI application. The model runs 
just fine if tested in GUSEK, but when I try to create an object of the model 
in java using the read_model(.modFile, data, output) method, I get a 
nullpointer exception because the object being created is null.

The model imports multiple .csv files to use as data sources, but no .dat 
files, thus the second parameter in the read_model method is null. Is there an 
issue with glpk-java creating an object from a model that imports .csv files? 
How can I work around this? Thanks so much for all of your help.

Jordan Stone
404.642.1998
iamche...@gmail.com





___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] libglpk-java

2012-10-28 Thread Halim Damerdji
Hello all,

I would like to know if there are folks happy with the libglpk-java llibrary 
binding.

I am now going through java system calls to C, with the C code calling the 
libglpk C library. The interface is via input and output files, which has 
worked very well, but I am looking for a full java solution (to avoid the file 
read/write).

On linux CentOS, libglpk-java has been unreliable. For the same problem, I get 
the right solution at times, a glp_error_hook error message at times, and no 
exception handling message at all at other times. Several of us have built the 
library from source on different machines, with the same overall experience.

Any success story with this library in the linux environment?

Thanks a bunch.

Rgds,
halim

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Java Wrapper for GLPK

2014-09-20 Thread technical forestry services

Hello

I am encountering the following linker error when attempting to use GLPK 
via a Java wrapper.


/The dynamic link library for GLPK for Java could not be loaded.//
//Consider using//
//java -Djava.library.path=//
//The current value of system property java.library.path is://
//C:\Program Files\GLPK\winglpk-4.55\glpk-4.55\w64//
//Exception in thread main java.lang.UnsatisfiedLinkError: C:\Program 
Files\GLPK\winglpk-4.55\glpk-4.55\w64\glpk_4_55_java.dll: Can't find 
dependent libraries//

//at java.lang.ClassLoader$NativeLibrary.load(Native Method)//
//at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)//
//at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)//
//at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)//
//at java.lang.Runtime.loadLibrary0(Runtime.java:845)//
//at java.lang.System.loadLibrary(System.java:1084)//
//at org.gnu.glpk.GLPKJNI.clinit(GLPKJNI.java:24)//
//at org.gnu.glpk.GLPK.glp_create_prob(GLPK.java:222)//
//at org.GMPL.Gmpl.solve(Gmpl.java:44)//
//at org.user.UserMain.main(UserMain.java:85)//
//
/The error arises from  my call to /glp_create_prob().

/I am using Eclipse and have set the JNI Java library path to the path 
indicated above :

C:\Program Files\GLPK\winglpk-4.55\glpk-4.55\w64

Appreciate your help.

Many thanks.

LRB


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com
___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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

2015-05-05 Thread Romain Huynh Van Thieng
Hello everyone, first sorry for my bad grammar english isn't my native
language.

I'm using GLPK-java on Eclipse, I've set every path as told on some topic i
could find on this help list, and everything was working fine.

After an automatic java update, I'm now encountering this :

The dynamic link library for GLPK for Java could not be loaded.
Consider using
java -Djava.library.path=
The current value of system property java.library.path is:
C:\Users\Marks\workspace\TER\librairies\jdom;C:\Users\Marks\workspace\TER\librairies\glpk\w64

I believe JDOM is working otherwise the compilation would tell it, but I
can't figure how to make GLPK work again, I've tried everything.

Thanks for answers
___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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 <m...@gnu.org> schrieb:
 Forwarded Message 
From: sindhu nir <sindhu.nir...@gmail.com>
To: Andrew Makhorin <m...@gnu.org>
Subject: Re: [Help-glpk] [Fwd: GLPK-java on mac 10.7.5]
Date: Tue, 23 Jan 2018 11:45:05 +0600

Thanks for replying . I saw the link but did not find any installation
procedure on mac osx 10.7.5 . Please help


On Mon, Jan 22, 2018 at 12:56 PM, Andrew Makhorin <m...@gnu.org> wrote:

> I need to install glpk-java on mac 10.7.5 . Is there any
procedure for
> it ?
>

Please see http://en.wikibooks.org/wiki/GLPK/Java .






___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Patch for GLPK 4.35 to support SWIG

2009-01-29 Thread Kelly Westbrooks
Hello,

When I generate a java interface for GLPK, I typically do something like this:

mkdir -p java/org/gnu/glpk
swig -java -package org.gnu.glpk -o src/glpk_wrap.c -outdir java/org/gnu/glpk 
glpk.i

so as not to clutter up the root of the source tree. Then, i'll jar up the 
contents of the java directory into glpk.jar, and use my IDE (XCode) to 
compile the GLPK sources along with the generated src/glpk_wrap.c into a 
shared library (obviously, in order to make the compile work, the code should 
be linked against the jvm and contain jni.h and jni_md.h in the includes path).

I should note that SWIG doesn't generate a particularly pretty java interface 
for GLPK -- but it does generate an interface that works. I have written my own 
java adapter classes that wrap the java code that SWIG generates to make it 
much more programmer-friendly. I can share them if anyone is interested.

--Kelly


--- On Thu, 1/29/09, xypron xypron.g...@gmx.de wrote:

 From: xypron xypron.g...@gmx.de
 Subject: Re: [Help-glpk] Patch for GLPK 4.35 to support SWIG
 To: Help-glpk@gnu.org
 Date: Thursday, January 29, 2009, 4:18 PM
 
 Hello Kelly,
 
  Today, I went ahead and packaged them into a patch
 file so that
  (hopefully) they can make it into the 
  trunk and save me the effort of maintaining my own
 local GLPK copy.
 
 I appreciate you patch.
 
 GLPK compiles fine with the double definitions removed from
 include/glpk.h.
 
 I would propose to put glpk.i into a new directory swig/
 because when
 calling
 swig -java glpk.i
 a lot of new files will be created in the same directory as
 glpk.i.
 
 It might make sense to add makefiles for some common
 languages like java. 
 
 Best regards
 
 Xypron
 
 -- 
 View this message in context: 
 http://www.nabble.com/Patch-for-GLPK-4.35-to-support-SWIG-tp21732549p21736079.html
 Sent from the Gnu - GLPK - Help mailing list archive at
 Nabble.com.
 
 
 
 ___
 Help-glpk mailing list
 Help-glpk@gnu.org
 http://lists.gnu.org/mailman/listinfo/help-glpk
 


  


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] GLPK-Java JNI in Mac OS X 10.5.8

2012-02-01 Thread

Dear Xypron,
OK, I've executed again the original ./configure and the original  
Makefile without modifying anything.


/configure CPPFLAGS=-I/System/Library/Frameworks/ 
JavaVM.framework/Headers SWIGFLAGS=-I/System/Library/ 
Frameworks/JavaVM.framework/Headers JAVA_HOME=/System/Library/ 
Frameworks/JavaVM.framework/Versions/1.6.0/Home/


I've properly set JAVA_HOME avoiding the 'invalid source release',  
thank you. I don't get why MacOS have all JavaVM installed by default  
up to 1.6, and the 'Current' is linked to 1.5 by default ¿? anyway...


Setting all by default, as I said, without modifying anything, this is  
the error I get when executing 'make check':
Exception in thread main java.lang.UnsatisfiedLinkError: /Users/ 
death/Downloads/libglpk-java-1.0.19/swig/.libs/libglpk_java.0.dylib:   
no suitable image found.  Did find:  /Users/death/Downloads/libglpk- 
java-1.0.19/swig/.libs/libglpk_java.0.dylib: mach-o, but wrong  
architecture


I've been googling, and I found that it seems that Java is not able to  
load a 32bit library, even it should be:

$ lipo -info /usr/bin/java
Architectures in the fat file: /usr/bin/java are: ppc7400 i386 x86_64

And the GLPK-java library is:
$ lipo -info libglpk-java-1.0.19/swig/.libs/libglpk_java.dylib
Non-fat file: libglpk-java-1.0.19/swig/.libs/libglpk_java.dylib is  
architecture: i386


That's the reason I added the flag -m64. By compiling it with such a  
flag, I get the error I commented before:



Exception in thread main java.lang.UnsatisfiedLinkError:
org.gnu.glpk.GLPKJNI.glp_term_hook(JJ)V
at org.gnu.glpk.GLPKJNI.glp_term_hook(Native Method)



About the architecture, I think (please correct me if I'm wrong) that  
MacOS X 10.5.8 is 32bit kernel only.


I've checked with the source codes you've given to me and the results  
are:


GCC: Running in 32bit mode.

Java: 64

So... I'm running a JavaVM 64bits in a computer running in 32bit  
environment... interesting


Any further idea?

Best regards,
Ricardo


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Compiling issues

2010-08-16 Thread Anders Helmar
Hi.


I am installing glpk-java on my computer (Ubuntu Karmic) and have downloaded 
the .tar file from your repository. 




I am strictly following your INSTALL - file, but I get compiling issues. I get 
the following error messages when doing the  #39;make #39; operation:




jar cf glpk-java-javadoc.jar -C ./target/apidocs .

jar cf glpk-java-sources.jar -C ./src/main/java .

javac -source 1.6 -target 1.6 -sourcepath ./src/main/java \

        -d ./target/classes *.java 

GlpkCallback.java:17: error: glp_tree cannot be resolved to a type

glp_tree tree;



GlpkCallback.java:18: error: GLPK cannot be resolved

tree = GLPK.glp_java_get_tree_object(lTree);

       

GlpkCallbackListener.java:7: error: glp_tree cannot be resolved to a type

public void callback(glp_tree tree);

                     

3 problems (3 errors)






I have attached a .txt file with all the output previous to this.




The path to the glpk.h file and the version of glpk should be right, I have 
GLPK version 4.44 installed. I am using Java 6.




I hope you can help me, I have tried for several hours without succes..!




Anders Helmar

 Hi.I am installing glpk-java on my computer (Ubuntu Karmic) and have downloaded the .tar file from your repository. I am strictly following your INSTALL - file, but I get compiling issues. I get the following error messages when doing the make operation:
jar cf glpk-java-javadoc.jar -C ./target/apidocs .jar cf glpk-java-sources.jar -C ./src/main/java .javac -source 1.6 -target 1.6 -sourcepath ./src/main/java \        -d ./target/classes *.java 
GlpkCallback.java:17: error: glp_tree cannot be resolved to a type	glp_tree tree;	
GlpkCallback.java:18: error: GLPK cannot be resolved	tree = GLPK.glp_java_get_tree_object(lTree);	       
GlpkCallbackListener.java:7: error: glp_tree cannot be resolved to a type	public void callback(glp_tree tree);	                     
3 problems (3 errors)I have attached a .txt file with all the output previous to this.The path to the glpk.h file and the version of glpk should be right, I have GLPK version 4.44 installed. I am using Java 6.
I hope you can help me, I have tried for several hours without succes..!Anders Helmar
and...@svumpukkel:/usr/local/lib/glpk-java/glpk-java-1.0.14$ sudo make
cd swig; make all
make[1]: GÃ¥r til katalog '/usr/local/lib/glpk-java/glpk-java-1.0.14/swig'
echo 

mkdir -p target/classes
mkdir -p target/apidocs
mkdir -p src/c
mkdir -p src/main/java/org/gnu/glpk
cp *.java src/main/java/org/gnu/glpk
swig -I/usr/local/include -I/usr/include -java -package org.gnu.glpk -o 
src/c/glpk_wrap.c \
-outdir src/main/java/org/gnu/glpk glpk.i 
libtool --mode=compile gcc -I/usr/local/include -I/usr/include -c -fPIC 
src/c/glpk_wrap.c
libtool: compile:  gcc -I/usr/local/include -I/usr/include -c -fPIC 
src/c/glpk_wrap.c  -fPIC -DPIC -o .libs/glpk_wrap.o
src/c/glpk_wrap.c: In function ‘glp_java_get_tree_object’:
src/c/glpk_wrap.c:207: warning: cast to pointer from integer of different size
libtool: compile:  gcc -I/usr/local/include -I/usr/include -c -fPIC 
src/c/glpk_wrap.c -o glpk_wrap.o /dev/null 21
libtool --mode=link \
gcc -version-info 29:0:29 -revision 4.44 \
-g -O -o libglpk_java.la -rpath /usr/local/lib/jni glpk_wrap.lo 
-lglpk 
libtool: link: gcc -shared  .libs/glpk_wrap.o   -lglpk-Wl,-soname 
-Wl,libglpk_java.so.0 -o .libs/libglpk_java.so.0.29.0
libtool: link: (cd .libs  rm -f libglpk_java.so.0  ln -s 
libglpk_java.so.0.29.0 libglpk_java.so.0)
libtool: link: (cd .libs  rm -f libglpk_java.so  ln -s 
libglpk_java.so.0.29.0 libglpk_java.so)
libtool: link: ar cru .libs/libglpk_java.a  glpk_wrap.o
libtool: link: ranlib .libs/libglpk_java.a
libtool: link: ( cd .libs  rm -f libglpk_java.la  ln -s 
../libglpk_java.la libglpk_java.la )
javadoc -sourcepath ./src/main/java org.gnu.glpk -d ./target/apidocs
Loading classes for package org.gnu.glpk...
Constructing Javadoc information...
WARNING: Cannot locate class java.lang.Object referenced in class 
org.gnu.glpk.glp_iocp
WARNING: Cannot locate class RuntimeException referenced in class 
org.gnu.glpk.GlpkException
WARNING: Error while loading class LinkedList
Resolving references in comments...
Resolving references in classes...
Resolving references in packages...
Resolving references in class comments...
Resolving references in package comments...
Running doclet...
WARNING: Option -validhtml hasn't been specified. Generated HTML will not 
validate.
Building cross-reference information...
Writing overview files...
Writing index...
Writing HTML files for package org.gnu.glpk
4 warnings
jar cf glpk-java-javadoc.jar -C ./target/apidocs .
jar cf glpk-java-sources.jar -C ./src/main/java .
javac -source 1.6 -target 1.6 -sourcepath ./src/main/java \
-d ./target/classes *.java 
GlpkCallback.java:17: error: glp_tree cannot be resolved to a type
glp_tree tree

[Help-glpk] Swimp, Java, and GLPK in a Windows environment

2007-11-27 Thread Ulf Brännlund
I am developing a java program using GLPK.
Currently, I am using GLPSOL which reads a MathProg model file and an input
file which the java program writes.  I would like to have more control and would
like to interact with the model (for example solve it twice). I have therefore
started to look at JNI and would like to know if anybody has experience using
the a href= #8221;http://sourceforge.net/projects/swimp/ #8221;Swimp/a,
with Java (JNI) and GLPK in a windows environment. Is it hard to make it work?
Any form of suggestions are welcome.

 

Thanks,

Ulf 





 







I am developing a java program using GLPK.
Currently, I am using GLPSOL which reads a MathProg model file and an input
file which the java program writes.  I would like to have more control and would
like to interact with the model (for example solve it twice). I have therefore
started to look at JNI and would like to know if anybody has experience using
the a href="" href="http://sourceforge.net/projects/swimp/">http://sourceforge.net/projects/swimp/Swimp/a,
with Java (JNI) and GLPK in a windows environment. Is it hard to make it work?
Any form of suggestions are welcome.



Thanks,

Ulf 






___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Results in the iteration in JAVA GLPK (MIP Cutting Stock Problem)

2010-12-10 Thread glpk xypron
Hello Ramón,

 1. How can I see all the results in each iteration?
the different solutions during the solution of MIP problems
can be observed using a callback function.

GLPK for Windows 4.45 and GLPK Java 1.0.16 contain
examples/java/GmplSwing.java

https://glpk-java.svn.sourceforge.net/svnroot/glpk-java/tags/glpk-java-1.0.16/examples/java/GmplSwing.java

This example implements interface GlpkCallbackListener.

For details see glpk-4.45/doc/glpk.pdf:
Chapter 5 - Branch-and-Cut API Routines

 can limit the number of iterations, obviously to see all or some of the
 possibilities?
You can limit the runtime or the gap. See glpk-4.45/doc/glpk.pdf

Look for
glp_ioc-mip_gap
glp_ioc-tm_lim
in chapter 2.9.5 glp intopt.

Best regards

Xypron



 Original-Nachricht 
 Datum: Fri, 10 Dec 2010 08:55:29 -0500
 Betreff: [Help-glpk] Results in the iteration in JAVA GLPK (MIP Cutting   
 Stock Problem)

 Greetings Xypron.
 First Xypron, thank you for all your help in my proyect.
 I have two questions.
 1. How can I see all the results in each iteration?
 2. (Maybe) this question has a relation with the first one, is there a way
 I
 can limit the number of iterations, obviously to see all or some of the
 possibilities?
 Merry Christmas to you and all the comunity and again thanks.
 Ramón.

-- 
GMX DSL Doppel-Flat ab 19,99 euro;/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl

___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Can GLPK for JAVA solve multi-objective optimization

2011-08-01 Thread Xypron


  
  
Hello Yi,

yes you can do the optimization with GLPK for Java.

Please, study the examples files provided with GLPK for Java, e.g.
glpk-java-1.0.15/examples/java/Mip.java

You can download the source of GLPK for Java from
http://glpk-java.sourceforge.net.

For the documentation of the GLPK API, please, read
glpk-4.45/doc/glpk.pdf available in the source distribution of GLPK
ftp://ftp.gnu.org/gnu/glpk/glpk-4.45.tar.gz

Best regards

Xypron


On 01.08.2011 09:21, Zong, Yi wrote:

  
  
  
  
  


Hi!
I have an objective function described as
  following, which is lineal:
 

 The optimized variables are
  , which are integers in [0, 10],
is a lineal function of an
, and  And
  W is a weight value.

 Can I use GLPK for JAVA to get
  the optimized results? If it is possible, could you give me an
  example?

Thank you in advance,



  

  
Yi Zong
  
  


  
Scientist 
  


  
Intelligent
Energy Systems 
  


  

  


  
Technical University of Denmark
  
  

  


  
Ris
National Laboratory for Sustainable Energy 
  


  
Frederiksborgvej
399, 
  


  
Building
776 
  


  
4000
Roskilde 
  


  
Direct
+45 4677 5045 
  


  
y...@risoe.dtu.dk

  


  
www.risoe.dtu.dk

  

  



  
  

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk



  

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] [Fwd: Need help running GLPK code in Ubuntu server]

2013-06-10 Thread xypron . glpk
Hello Kazi,

glpk-4.50/src/glpk.h has no constyant LPX_LP. You obviously use a GLPK for Java 
built against an older include file.

Check directory /usr/include.

Best regards

Heinrich Schuchardt

http://www.xypron.de

Am 09.06.13 um 21:54 schrieb Kazi Moyeen ul Huq

 Hi,
 
 What is this Timer-0 error ?
 
 Thanks
 
 Kazi.
 
 
 
 ~/application/state-optimizer$ java -Djava.library.path=/usr/local/lib/jni/
 
 -classpath /usr/local/share/java/glpk-java.jar -jar st.jar
 
 
 
 Problem created ...test_MPC3
 
 
 
 *Exception in thread Timer-0 java.lang.UnsatisfiedLinkError:
 
 org.gnu.glpk.GLPKJNI.LPX_LP_get()I*
 
 at org.gnu.glpk.GLPKJNI.LPX_LP_get(Native Method)
 
  at org.gnu.glpk.GLPKConstants.clinit(GLPKConstants.java:122)
 
 at
 
 org.totalgrid.reef.examples.stateoptimizer.DESDAlgorithm.optimize(DESDAlgorithm.java:145)
 
  at
 
 org.totalgrid.reef.examples.stateoptimizer.StateOptimizerManager$1.run(StateOptimizerManager.java:65)
 
 at java.util.TimerThread.mainLoop(Timer.java:534)
 
  at java.util.TimerThread.run(Timer.java:484)
 
 
 
 
 
 
 
 -Kazi
 
 
 
 
 
 On Sun, Jun 9, 2013 at 9:46 AM, Heinrich Schuchardt xypron.g...@gmx.dewrote:
 
 
 
  On 09.06.2013 15:33, Kazi Moyeen ul Huq wrote:
 
 
 
  java -Djava.library.path=/usr/lib/**jni -jar st.jar
 
 
 
 
 
  Hello Kazi,
 
 
 
  the default installation path for GLPK and GLPK for Java is
 
  /usr/local
 
 
 
  If you did not configure with --prefix the command line to execute you jar
 
  file should be
 
 
 
  java -Djava.library.path=/usr/**local/lib/jni \
 
-classpath /usr/local/share/java/glpk-**java.jar -jar st.jar
 
 
 
  Best regards
 
 
 
  Heinrich Schuchardt
 
 

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] [Fwd: Need help running GLPK code in Ubuntu server]

2013-06-10 Thread Kazi Moyeen ul Huq
Hi,
Should usr/include contain a copy of glpk.h ? I don't have one. Should I
copy the glpk.h to usr/include or should I install another time ?

I installed glpk4.50 in the home directory. But, glpsol --version shows
 GLPSOL: GLPK LP/MIP Solver, v4.50
-Kazi



On Mon, Jun 10, 2013 at 3:26 AM, xypron.g...@gmx.de wrote:

 Hello Kazi,

 glpk-4.50/src/glpk.h has no constyant LPX_LP. You obviously use a GLPK for
 Java built against an older include file.

 Check directory /usr/include.

 Best regards

 Heinrich Schuchardt

 http://www.xypron.de

 Am 09.06.13 um 21:54 schrieb Kazi Moyeen ul Huq

  Hi,
 
  What is this Timer-0 error ?
 
  Thanks
 
  Kazi.
 
 
 
  ~/application/state-optimizer$ java
 -Djava.library.path=/usr/local/lib/jni/
 
  -classpath /usr/local/share/java/glpk-java.jar -jar st.jar
 
 
 
  Problem created ...test_MPC3
 
 
 
  *Exception in thread Timer-0 java.lang.UnsatisfiedLinkError:
 
  org.gnu.glpk.GLPKJNI.LPX_LP_get()I*
 
  at org.gnu.glpk.GLPKJNI.LPX_LP_get(Native Method)
 
   at org.gnu.glpk.GLPKConstants.clinit(GLPKConstants.java:122)
 
  at
 
 
 org.totalgrid.reef.examples.stateoptimizer.DESDAlgorithm.optimize(DESDAlgorithm.java:145)
 
   at
 
 
 org.totalgrid.reef.examples.stateoptimizer.StateOptimizerManager$1.run(StateOptimizerManager.java:65)
 
  at java.util.TimerThread.mainLoop(Timer.java:534)
 
   at java.util.TimerThread.run(Timer.java:484)
 
 
 
 
 
 
 
  -Kazi
 
 
 
 
 
  On Sun, Jun 9, 2013 at 9:46 AM, Heinrich Schuchardt xypron.g...@gmx.de
 wrote:
 
 
 
   On 09.06.2013 15:33, Kazi Moyeen ul Huq wrote:
 
  
 
   java -Djava.library.path=/usr/lib/**jni -jar st.jar
 
  
 
  
 
   Hello Kazi,
 
  
 
   the default installation path for GLPK and GLPK for Java is
 
   /usr/local
 
  
 
   If you did not configure with --prefix the command line to execute you
 jar
 
   file should be
 
  
 
   java -Djava.library.path=/usr/**local/lib/jni \
 
 -classpath /usr/local/share/java/glpk-**java.jar -jar st.jar
 
  
 
   Best regards
 
  
 
   Heinrich Schuchardt
 
  

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] glpk-java libtool install error

2010-08-25 Thread IsiAna

Hello Xypron,

thank you for your help! The installation  was successful, but when I load
an empty problem like that:

glp_prob lp = GLPK.glp_create_prob();

I get a link error:

Exception in thread main java.lang.UnsatisfiedLinkError: no glpk_4_44_java
in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at org.gnu.glpk.GLPK.clinit(GLPK.java:19)
at SimpleExemple.main(SimpleExemple.java:67)

Could you please help me? Thank you in advance.


xypron wrote:
 
 Hello Anastasiya,
 
 the error occurs in glpk-java-1.0.14/swig/Makefile in the following line:
 
 libtool --mode=install install -c libglpk_java.la 
 $(DESTDIR)${prefix}/lib/jni/libglpk_java.la
 
 This command should install libglpk_java.so in directory
 /usr/local/lib/jni.
 
 Please, delete any trailing space in the following line:
 
 prefix = /usr/local
 
 Best regards
 
 Xypron
 
 
 IsiAna wrote:
 Hello everybody,

 I'm trying to install glpk-java-1.0.14 on Ubuntu 10.04. I got the tar.gz
 package from http://sourceforge.net/projects/glpk-java/. I manage to
 install
 the glpk-4.44, swig, libtool and java-gcj-compat-dev.
 I have following error libtool: install: `/lib/jni/libglpk_java.la' is
 not a
 directory, when I run the make install command for glpk-java.
 Here is my output

 cd swig; make install
 make[1]: Entering directory
 `/home/isi/SystemFiles/GLPK/glpk-java-1.0.14/swig'
 mkdir -p -m 755 /usr/local /lib/jni;true
 libtool --mode=install install -c libglpk_java.la /usr/local
 /lib/jni/libglpk_java.la
 libtool: install: `/lib/jni/libglpk_java.la' is not a directory
 libtool: install: Try `libtool --help --mode=install' for more
 information.
 make[1]: *** [install] Error 1
 make[1]: Leaving directory
 `/home/isi/SystemFiles/GLPK/glpk-java-1.0.14/swig'
 make: *** [install] Error 2

 Please is there anyone that can help me? Thanks a lot.
 Anastasiya

 
 
 ___
 Help-glpk mailing list
 Help-glpk@gnu.org
 http://lists.gnu.org/mailman/listinfo/help-glpk
 
 

-- 
View this message in context: 
http://old.nabble.com/glpk-java-libtool-install-error-tp29520668p29531905.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Reenterable patch for GLPK-4.47

2013-01-21 Thread Dmitry Nadezhin
 Thank you. However, do you mean reenterability or thread-safety? These
 issues are often mixed up. And another question: in your opinion, how
 one could use a reenterable (or thread-safe) version of glpk?

I mean reenterability.

I can tell why I desire reenterant GLPK in my application.
My application searches for optimal parameters for thermocompensated
Crystal oscillators.
After mesurement of 64 oscillators, I need to launch a separate
medium-size optimization task for each of them.
Initially I launched them as separate OS processes, it was not convinient.
My application is written in Java. I bind GLPK to java with glue
interface based on JNA.
http://en.wikipedia.org/wiki/Java_Native_Access
Java has nice concurrent framework I want to use it.
I want to launch optimization tasks (glp_probs) in different Java Threads.
No synchronization is necessary, because tasks don't interact with each other.

Solution with thread-local GLPK environment helped me to run GLPK
tasks in different Java Threads.
Thank you for providing glpenv02.c !
However, there was an issue. Java usually don't require to free unused
objects. They are  gathered by garbage-collector.
Java runtime executes object's method finalize before erasing unused
object, Method finalize of my Java wrapper of glp_prob
was implemented as glp_delete_prob.
Garbage collector may run in a separate thread. Thread-local GLPK
signalled error when a glp_problem was allocated in one thread,
and then it was freed in another thread by garbage collector. I had to
insert explicit glp_delete_prob in the end of each task.
I know that this is usual style in C, but this is aside of Java style.

I think that it would be nice if ENV structure was not thread-local
but instead it was a part of glp_prob.
However, this change breaks existing API. So now I'm not sure what is
the best patch.

 As to patches, I see three ways:

 i) post them to the help-glpk mailing list as a gzipped attachment,
 providing necessary information in the message body and a subject line
 suitable for the search;

 ii) add a topic to http://en.wikibooks.org/wiki/GLPK and include the
 patches there;

 iii) officially glpk is hosted on GNU Savannah;
 see http://savannah.gnu.org/projects/glpk (though currently I don't use
 this service). I could add you to the project member list, so you could
 upload patches to the project repository.

As a first step, I put a new section into the Wikibook. It collects
information scattered in the mail list.
http://en.wikibooks.org/wiki/GLPK/Using_the_GLPK_callable_library#Reenterability

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] [Fwd: Need help running GLPK code in Ubuntu server]

2013-06-09 Thread Kazi Moyeen ul Huq
Hi,
The 1  2 issue in the previous mail is now solved.
But I still have the 3rd problem. For some reason it can't load the dynamic
library during runtime. Any suggestion for that ?

I'm using the following command to run the executable jar file ( it works
in the latest version of Ubuntu)

java -Djava.library.path=/usr/lib/jni -jar st.jar

Thanks
Kazi

--
The dynamic link library for GLPK for Java could not be loaded.
Consider using
java -Djava.library.path=
Exception in thread Timer-0 java.lang.UnsatisfiedLinkError: no glpk_java
in java.library.path
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
 at java.lang.System.loadLibrary(System.java:1047)
at org.gnu.glpk.GLPK.clinit(GLPK.java:20)
at
org.totalgrid.reef.examples.stateoptimizer.DESDAlgorithm.optimize(DESDAlgorithm.java:138)
 at
org.totalgrid.reef.examples.stateoptimizer.StateOptimizerManager$1.run(StateOptimizerManager.java:65)
at java.util.TimerThread.mainLoop(Timer.java:534)
 at java.util.TimerThread.run(Timer.java:484)



On Sun, Jun 9, 2013 at 3:27 AM, Heinrich Schuchardt xypron.g...@gmx.dewrote:

 Hello Kazi,

 in the description on
 http://glpk-java.sourceforge.**net/gettingStarted.htmlhttp://glpk-java.sourceforge.net/gettingStarted.html
 I forgot the following step after installation of GLPK.

 sudo ldconfig

 Best regards

 Heinrich Schuchardt


 On 09.06.2013 01:23, Kazi Moyeen ul Huq wrote:

 Hi,
 Looks like I made some progress ! But, I received these 2 messages, when I
 was installing according to the
 http://glpk-java.sourceforge.**net/gettingStarted.htmlhttp://glpk-java.sourceforge.net/gettingStarted.html,
  GLPK /LPK for Java
 instructions :

 1. In the glpk 4.50 installation, after make install (no error msg upto
 this point) :
 ~/glpk-4.50$ glpsol --version
 glpsol: error while loading shared libraries: libglpk.so.35: cannot open
 shared object file: No such file or directory

 2.During make check for glpk-java-1.0.28 :
 The dynamic link library for GLPK for Java could not be loaded. Consider
 using
 java -Djava.library.path=

 3. when I tried to test run my program, I got the following error :
 The dynamic link library for GLPK for Java could not be loaded.
 Consider using
 java -Djava.library.path=
 Exception in thread Timer-0 java.lang.**UnsatisfiedLinkError: no
 glpk_java
 in java.library.path
 at java.lang.ClassLoader.**loadLibrary(ClassLoader.java:**1681)
   at java.lang.Runtime.**loadLibrary0(Runtime.java:840)
 at java.lang.System.loadLibrary(**System.java:1047)
   at org.gnu.glpk.GLPK.clinit(**GLPK.java:20)
... ... ...

 The detailed error messages are attached in the email,

 Please suggest how I can take care of the dynamic link library error ?

 Thanks a lot
 Kazi


___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


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 the next versions.
> 
> First, in my Windows application, I don't install GLPK for Java in the
> system but instead I link directly to the .dll libraries provided in the
> link you sent. When I try to execute my project, I get an unsatisfied
> link error ("Can't find dependent libraries"), which enforces me to load
> the GLPK library in my application using the following command:
> System.loadLibrary("glpk_4_57");
> This line must be changed at each new GLPK version. On the other hand,
> in my Linux application, I don't need to load this library: it seems
> that the .so management is more "clever" on Linux and manages to
> automatically link to the right dependent library.
> My suggestion for the next GLPK for Java releases is to add this library
> loading, if possible, just before the glpk_4_57_java library loading in
> glpk.i. Or did I miss some explanation why it hasn't been done until now?
> 
> Finally, is there some reason why the Linux libraries (.so) are not
> provided in any of the releases of GLPK or GLPK for Java? I don't mind
> compiling the libraries when I have to update GLPK, but then I'd like to
> understand why the libraries are given for Windows and not for Linux.
> 
> Regards,
> 
> *Sylvain Fournier*
> 
> 2015-11-08 23:27 GMT-02:00 Heinrich Schuchardt <xypron.g...@gmx.de
> <mailto:xypron.g...@gmx.de>>:
> 
> GLPK for Windows 4.57 has been released. It provides 32 and 64 bit
> binaries for Windows. The project is located at
> http://winglpk.sourceforge.net .
> 
> GLPK for Windows 4.57 includes  GLPK for Java 1.3.0 and GLPK for C#/CLI
> 1.1.0.
> 
> GLPK for Java provides a Java binding for the GLPK library. The project
> is located at http://glpk-java.sourceforge.net .
> 
> GLPK for C#/CLI provide a Common Language Interface binding for the GLPK
> library it allows to use all programming languages supported by Mono and
> .NET together with GLPK, e.g. C#, Visual Basic .NET, and F#. The project
> is located at http://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 <mailto:Help-glpk@gnu.org>
> https://lists.gnu.org/mailman/listinfo/help-glpk
> 
> 

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Java interface

2008-07-11 Thread Yao Wu
Hi all,

After reading the mailing list for java api, I'm confused.

Is Java api included in the distribution?
According to Yuri
(http://lists.gnu.org/archive/html/help-glpk/2004-01/msg00027.html),
Magic.java is an example. But I didn't see it in my downloaded files
for windows version 4.8 and 4.9, and not in glpk-4.29.tar.gz.

If the distribution doesn't include an official JNI, do I need to
install version 4.8 and use this one?
http://bjoern.dapnet.de/glpk/index.htm
Thank you very much!
Yao


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] GLPK 4.36 windows executables, libraries for Java

2009-02-07 Thread xypron

Executables for 32 and 64 bit Windows for GLPK 4.36 have been uploaded to 
http://winglpk.sourceforge.net/ http://winglpk.sourceforge.net/ .

In the zip archives you will find the standalone solver GLPSOL and the GLPK
library.

Furthermore the libraries necessary to compile java programs with GLPK
(created with SWIG) as well as the makefiles used have been added.

Best regards

Xypron


-- 
View this message in context: 
http://www.nabble.com/GLPK-4.36-windows-executables%2C-libraries-for-Java-tp21891449p21891449.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Beginner questions (MIP model)

2009-02-24 Thread xypron

Hello Denis,


Denis Debarbieux wrote:
 
 I am a new GLPK user and I develop under Java. I would like to write a 
 simple MIP model but I do not get the good answer. Could you help me
 please?
 

which java binding to GLPK do you use?
Your coding does not look like using java libraries created via SWIG from
GLPK 4.36.

Best regards

Xypron


-- 
View this message in context: 
http://www.nabble.com/Beginner-questions-%28MIP-model%29-tp22181857p22188207.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Example of Java program using GLPK

2009-07-29 Thread Alexandre . Depire
Hello,

I'm looking for a simple code of Java program using Glpk to resolve an MIP 
problem.
For example, I consider the following problem:

a integer;
min a+2*b:
s.t. a+b=10
s.t. a=0
s.t. b=0
s.t. 


Can anybody write the java code and specify where find the files needed ?

I work on Linux.

Thanks for all.

Alexandre DEPIRE

Attaché Statisticien

SPF Economie, PME, Classes Moyennes et Energie.
DG Statistique et Information Economique.
Unité E8544
Bases de données entreprises et nomenclatures. 

Rue de Louvain, 44 - 1000 Bruxelles.
Tel:  0032-2-277.93.52___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Application crash due to assert in GLPK

2010-01-20 Thread Sylvain Fournier
Hi everybody,
I have been using GLPK (version 4.38) for Java for almost one year now. I
just encontered (for the first time, fortunately) an assert that crashed in
GLPK and that killed my whole Java application. This assert is located
glplib10.c, line 109: xassert(xlcmp(env-t_last, t) = 0);
It seems to be a strange time problem, but I wonder if I can do something to
prevent this error to occur once again in the future.
Am I responsible for this error? Is there a way for me to be sure that I
won't run into the error again? If not, can I catch this type of errors in
my Java application in order to treat it appropriately?
Thanks,

Sylvain Fournier
___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Many variables - GLPK Java

2010-06-11 Thread Fábio Botler
Dear,

I had a problem using GLPK - Java on ubuntu 10:04 - Eclipse

I disabled the prints (enablePrints(false)) and apparently when I need to solve 
a linear problem with more than 600 variables it crashes.

when the printing is enabled, the problem does not occur.

-- 
Fábio Botler
+55 81 8687-9769



 Dear,I had a problem using GLPK - Java on ubuntu 10:04 - Eclipse
I disabled the prints (enablePrints(false)) and apparently when I need to solve a linear problem with more than 600 variables it crashes.when the printing is enabled, the problem does not occur.
-- Fábio Botler+55 81 8687-9769

___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Fwd: [Help-glpk] Free Java based modeling language now available for GLPK]

2011-01-14 Thread Andrew Makhorin
 Forwarded Message 
From: chtimax maxcach...@gmail.com
To: Help-glpk@gnu.org
Subject: [Help-glpk] Free Java based modeling language now available for
GLPK
Date: Thu, 13 Jan 2011 05:56:40 -0800 (PST)

Dear All, 

We are pleased to inform you that we are now distributing a Free OptimJ
Edition  http://www.ateji.com/optimj/index.html
http://www.ateji.com/optimj/index.html  that includes our fully featured
Java based modeling language for optimization and GLPK 

We wish you a very good software experience with Optimj and GLPK 

Best Regards 
The Ateji team 


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] implementing constraints in Scala

2011-08-03 Thread name name
Hello again,

I have  one more question :(
This time I have a problem with dual
I get dual (all the lines with GLPK.glp_get_col_dual(lp,colId+1)
but just after when it's going to put bounds I got an error

A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x7f0cca36a1c4, pid=6605, tid=139692915328768
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode
linux-amd64 compressed oops)
# Problematic frame:
# C  [libglpk.so.0+0x91c4]  __float128+0x14


Whot can I do ?

Thank you again

Onor
___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] GLPK-Java JNI in Mac OS X 10.5.8

2012-02-01 Thread glpk xypron
Hello Ricardo,

on a 64bit system you could install two different Java runtimes:
A 32bit runtime and a 64bit runtime.

A 64bit runtime can only load 64bit libraries.
A 32bit runtime can only load 32bit libraries.

Did you check the bitness of the GLPK library (glpk.dylib)?
The glpk_java.dylib will load glpk.dylib. The bitness must match.

For the bitness of GCC. Compile the proposed code with -m64 and check the 
output again.

Best regards

Xypron

 Original-Nachricht 
 Datum: Wed, 1 Feb 2012 11:00:20 +0100
 Betreff: Re: [Help-glpk] GLPK-Java JNI in Mac OS X 10.5.8

 Dear Xypron,
 OK, I've executed again the original ./configure and the original  
 Makefile without modifying anything.
 
 /configure CPPFLAGS=-I/System/Library/Frameworks/ 
 JavaVM.framework/Headers SWIGFLAGS=-I/System/Library/ 
 Frameworks/JavaVM.framework/Headers JAVA_HOME=/System/Library/ 
 Frameworks/JavaVM.framework/Versions/1.6.0/Home/
 
 I've properly set JAVA_HOME avoiding the 'invalid source release',  
 thank you. I don't get why MacOS have all JavaVM installed by default  
 up to 1.6, and the 'Current' is linked to 1.5 by default ¿? anyway...
 
 Setting all by default, as I said, without modifying anything, this is  
 the error I get when executing 'make check':
 Exception in thread main java.lang.UnsatisfiedLinkError: /Users/ 
 death/Downloads/libglpk-java-1.0.19/swig/.libs/libglpk_java.0.dylib:   
 no suitable image found.  Did find:  /Users/death/Downloads/libglpk- 
 java-1.0.19/swig/.libs/libglpk_java.0.dylib: mach-o, but wrong  
 architecture
 
 I've been googling, and I found that it seems that Java is not able to  
 load a 32bit library, even it should be:
 $ lipo -info /usr/bin/java
 Architectures in the fat file: /usr/bin/java are: ppc7400 i386 x86_64
 
 And the GLPK-java library is:
 $ lipo -info libglpk-java-1.0.19/swig/.libs/libglpk_java.dylib
 Non-fat file: libglpk-java-1.0.19/swig/.libs/libglpk_java.dylib is  
 architecture: i386
 
 That's the reason I added the flag -m64. By compiling it with such a  
 flag, I get the error I commented before:
 
  Exception in thread main java.lang.UnsatisfiedLinkError:
  org.gnu.glpk.GLPKJNI.glp_term_hook(JJ)V
 at org.gnu.glpk.GLPKJNI.glp_term_hook(Native Method)
 
 
 About the architecture, I think (please correct me if I'm wrong) that  
 MacOS X 10.5.8 is 32bit kernel only.
 
 I've checked with the source codes you've given to me and the results  
 are:
 
 GCC: Running in 32bit mode.
 
 Java: 64
 
 So... I'm running a JavaVM 64bits in a computer running in 32bit  
 environment... interesting
 
 Any further idea?
 
 Best regards,
 Ricardo
 

-- 
Follow me at http://twitter.com/#!/xypron

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


RE: [Help-glpk] Question about GLPK

2005-08-11 Thread Noli.Sicad
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, 12 August 2005 7:06 AM
To: help-glpk@gnu.org
Subject: Re: [Help-glpk] Question about GLPK

On Thursday 11 August 2005 21:01, Frank Leañez wrote:
 Is it possible to implement in Java written programs?

I don't know nothing about Java (I seem to recall that the Java interface   
is now maintained separately from GLPK), but here

 http://qosip.tmit.bme.hu/~retvari/Math-GLPK.html

I downloaded Math-GLPK-Solve-0.05.tar.gz from
http://qosip.tmit.bme.hu/~retvari/perl-modules/

and have a look what is inside.

Gabor, use SWIG as well. Hence, you can use glpk.i, etc. files to make 
java-glpk bindings.

Noli




___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Patch for GLPK 4.35 to support SWIG

2009-01-30 Thread Gabor Retvari
On Thursday 29 January 2009 22:32:09 Kelly Westbrooks wrote:

 I should note that SWIG doesn't generate a particularly pretty java
 interface for GLPK -- but it does generate an interface that works. I have
 written my own java adapter classes that wrap the java code that SWIG
 generates to make it much more programmer-friendly.

This is, regrettably, not specific to the java interface generator in SWIG 
but can be said about basically any language binding it creates. The Perl 
bindings for GLPK work quite similarly to the way you describe: a low-level 
SWIG-generated binding is wrapped inside a nice perlish interface class with 
some convenience functions.

I too second the inclusion of the glpk.i into the GLPK source tree.

Best regards,
rg0now


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


[Help-glpk] Java interface to GLPK - accessing result values

2009-02-10 Thread Prof. Hartwig Baumgaertel
Hi all, 

I plan to use GLPK by a Java application. I'm happy about the SWIG-based
Java API - 
many thanks to Xypron. 

My application will use a predefined (MIP) model but dynamically created
data. There are 
several possibilities to feed the data to the problem object, so far so
good. 
(For sake of simplicity I use a data file in my example, too.). 

My question is about the step after solving the model. I want to further
use the result 
values (values of decision variables after successful model solve) in my
Java application. 
I created a solution which avoids files and databases. 

I would like to know how you experts look to this approach, and would
appreciate any 
suggestions and improvements. 

I have no idea if it is trivial, stupid or the intended way to do this. 
I also have no idea if there are pitfalls regarding memory usage,
efficiency etc. 

Thank you in advance!

Hartwig 


GTest.java
Description: Binary data


Standorte_m01.mod
Description: Binary data


Standorte_m01_d03.dat
Description: Binary data
___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] ANNOUNCEMENT: OptimJ solver link for GLPK/Java

2009-04-02 Thread Patrick Viry
Larry,

 Curious.  Why is OptimJ released under a commercial license?  It is based on 
 Java, can be use as an Eclipse plug-in, and uses a number of free software or 
 open source solvers.

Nothing curious: the OptimJ language is based on Java, in the sense
that if you know Java you'll learn and master quickly the
optimization-specific features. But these are two different languages,
using different compilers and different Eclipse plugins. In short, we
designed and wrote the OptimJ compiler and tools from scratch.

Commercial plugins are commonplace for Eclipse, and commercial
modeling languages are commonplace for open source solvers.

 Is Optimj contributing back to the free software community?

Yes, when it is compatible with our business model and the need to
feed our families. See for instance the OptimJ GUI (graphical user
interface, soon available also for GLPK).

 I don't mean to call you out on this just wondering why.

You're welcome, this is a sensible question.

-Patrick


___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] Wrong optimal solution with Glpk-4.34

2010-09-06 Thread Xypron

ULDRY Marc wrote:

I used before the version 4.34 of Glpk that we can download with the windows 
installer on the website :http://gnuwin32.sourceforge.net/packages/glpk.htm  
(Complete package, except sources of the 4 December 2008). So the  #8216;wrong 
optimal solutions #8217; seems to come when using this  #8216;old #8217; 
version.
   

Hello Marc,

precompiled 32 and 64bit Windows binaries for GLPK are supplied by 
project GLPK for Windows at http://winglpk.sourceforge.net. These 
include GLPK for Java.


If you want an 32bit IDE for Windows you may look at 
http://glpklabw.sourceforge.net/


Currently GLPK Lab includes the following main components:

   * GLPK Lab Editor, which is the SciTE editor adapted to be used
 along with GLPK Lab
   * Stand-alone GLPK LP/MIP solver
   * GLPK API library compiled with Microsoft Visual C++ 2008 and
 intended for developing GLPK-based applications in C or C++
   * Java binding to GLPK API library intended for developing
 GLPK-based applications in Java (from GLPK for Java)

Best regards

Xypron

___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Fwd: Re: [Help-glpk] ANNOUNCEMENT: OptimJ solver link for GLPK/Java]

2011-01-20 Thread Michael Hennebry

On Wed, 19 Jan 2011, Andrew Makhorin wrote:


 Forwarded Message 
From: chtimax maxcach...@gmail.com
To: Help-glpk@gnu.org
Subject: Re: [Help-glpk] ANNOUNCEMENT: OptimJ solver link for GLPK/Java
Date: Wed, 19 Jan 2011 05:48:23 -0800 (PST)

Hello Robie and All,

Accept my apologies for the confusion in my previous message as I am not
familiar with the terminology of free software. OptimJ is free in the
monetary sense (no money changes hands) but not free in the sense of the
FSF.

Allow me to precise that OptimJ is a source-to-source generator (it takes
high-level modeling code and generates Java source code) that does not link


In this case, IIRC, the source code as defined by the GPL
would not be the java, it would be the input to OptimJ.


to any optimization library including glpk.

Max


--
Michael   henne...@web.cs.ndsu.nodak.edu
Pessimist: The glass is half empty.
Optimist:   The glass is half full.
Engineer:   The glass is twice as big as it needs to be.

___
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk


  1   2   3   4   5   6   >