Commit 92b8477d authored by Sébastien Villemot's avatar Sébastien Villemot

Imported Upstream version 1.0.31

parents
GLPK for Java has been developped and programmed by Heinrich Schuchardt.
E-Mail: xypron.glpk@gmx.de
This diff is collapsed.
Version 1.0.31, 2013-07-30
Adjusted examples and makefiles for GLPK 4.521
Version 1.0.30, 2013-07-18
Adjusted examples and makefiles for GLPK 4.52
Version 1.0.29, 2013-06-14
Adjusted examples and makefiles for GLPK 4.51
Require only JDK 1.6 in Windows build files.
Version 1.0.28, 2013-05-30
Adjusted examples and makefiles for GLPK 4.50
Use -source 1.6 -target 1.6 when compiling with javac.
Require only JDK 1.6 in Windows build files.
Version 1.0.27, 2013-05-04
Changed mapping for glp_arc, glp_graph, glp_vertex
Version 1.0.26, 2013-04-29
Added field rc to _glp_java_arc_data for use with relax4 algorithm.
Added example for relax4 algorithm.
Added method glp_set_numeric_locale to adjust numeric formatting.
Version 1.0.25, 2013-04-16
Release for GLPK 4.49
Version 1.0.24, 2013-01-24
Release for GLPK 4.48
Version 1.0.23, 2013-01-17
Corrected use of CPPFLAGS and LDFLAGS
Search for GLPK dll in java.library.path
Corrected examples
Added example BranchDown
Version 1.0.22, 2012-06-21
Correct dependencies in swig/pom.xml
Correct glpk_java_arrays.i for old Swig versions
Version 1.0.21, 2012-05-15
Remove superfluous files
Version 1.0.20, 2012-04-24
Add support for network problems.
Check if calloc fails when creating new arrays.
Added method glp_java_set_msg_lvl to make debugging easier.
Version 1.0.19, 2011-11-01
Use GNU build system
Version 1.0.18, 2011-09-10
Adjusted examples and makefiles for GLPK 4.47
Version 1.0.17, 2011-04-29
Adjusted examples and makefiles for GLPK 4.46
Adjusted buildfiles for swigwin-2.0.3
Added $(JAVA_HOME)/include to include path
Makefiles for Microsoft Visual Studio 2008 removed
Version 1.0.16, 2010-12-06
Adjusted examples and makefiles for GLPK 4.45
Adjusted buildfiles for swigwin-2.0.1
Version 1.0.15, 2010-09-19
Terminal output listener added
Example using Swing added
Installation of documentation added
Implementation of callbacks corrected
Examples corrected
Makefiles for Microsoft Visual Studio 2010 Express added
Version 1.0.14, 2010-06-03
Adjusted examples and makefiles for GLPK 4.44
Adjusted buildfiles for swigwin-2.0.0
Corrected javadoc
Changed directory structure to fit to Maven
Version 1.0.13, 2010-03-10
Changed error handling to support callbacks
Version 1.0.12, 2010-03-07
Changed GlpkCallback to use LinkedList instead of TreeSet
Version 1.0.11, 2010-02-27
Removed config.h from makefiles
Moved loading of system library to class GLPK
Added error handling
Added callback functionality for the MIP solver
Version 1.0.10, 2010-02-20
Adjusted examples and makefiles for GLPK 4.43
Updated documentation concerning loading JNI library
Version 1.0.9, 2010-01-13
Adjusted examples and makefiles for GLPK 4.42
Workaround for va_list
Version 1.0.8, 2009-12-04
Adjusted examples and makefiles for GLPK 4.41
Moved examples to examples/java
Renamed examples
Corrected examples/java/Lp.java
Added examples/java/Mip.java
Corrected documentation
Adjusted w32/check_jni.bat
Version 1.0.6, 2009-11-04
Adjusted examples and makefiles for GLPK 4.40
Fixed error in check_jni.bat
Version 1.0.5, 2009-10-29
Fixed error in Windows build files
Version 1.0.4, 2009-10-29
Added documentation
Added check files to Windows directories
Adjusted buildfiles for swigwin-1.3.40
Version 1.0.3, 2009-07-26
Adjusted examples and makefiles for GLPK 4.39
Added usage help to GLPKSwig.java
Correction of typos
Version 1.0.2, 2009-06-11
Makefile target test renamed to check
Use libtool object file for linking
Add /usr/local/include to include path
Version 1.0.1, 2009-06-06
Corrected swig/Makefile to allow testing before install
Added target dist to Makefile to create distribution files
Installing glpk-java on your computer
*************************************
POSIX
=====
Requirements
------------
To install glpk-java you will need the following
- gcc
- libtool
- SWIG
- GLPK
- Java JDK
For Debian and Ubuntu the following packages should be installed
- gcc
- glpk
- openjdk-7-jdk or openjdk-6-jdk
- libtool
- swig
For Fedora the following packages should be installed
- gcc
- glpk-devel
- java-1.7.0-openjdk-devel or java-1.6.0-openjdk-devel
- libtool
- swig
Environment variable JAVA_HOME must be set.
Unpacking the distribution file
-------------------------------
Copy the distribution file to a working directory.
Check the checksums with the following commands:
md5sum glpk-java-X.Y.tar.gz
sha1sum glpk-java-X.Y.tar.gz
Unpack the archive with the following command:
tar -xzf glpk-java-X.Y.tar.gz
Now change to the new direcotry glpk-java-X.Y
Configuring the package
-----------------------
To configure the package use command
./configure
OS X has jni.h in a special path. You may want to specify this path in the
parameters CPPFLAGS and SWIGFLAGS for the configure script, e.g.
./configure \
CPPFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers \
SWIGFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
If libglpk.so is in a special path you may specify this path using parameter
LDFLAGS, e.g.
./configure LDFLAGS=-L/opt/lib
Compiling the package
---------------------
The package is compiled with the command
make
Check the package
-----------------
To check if everything is built correctly use the command
make check
Install the package
-------------------
To install the package you must be root or a suodoer. As
sudoer use the command
sudo make install
Windows
=======
Requirements
------------
GLPK
Swig
Windows SDK
Visual c++
Java JDK
Configure the package
---------------------
Change to directory w32 or w64 depending on whether you use
a 32 or 64 bit version of Windows.
Adjust the pathes specified in the batchfile (e.g. Build_JNI_with_VC10_DLL.bat).
Compile the package
-------------------
Execute the batchfile (e.g. Build_JNI_with_VC10_DLL.bat).
Install the package
-------------------
Copy the jar file and the dll to your preferred pathes.
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = doc swig
EXTRA_DIST = examples w32 w64 bootstrap.sh
clean:
-for d in $(SUBDIRS); do (cd $$d && $(MAKE) clean ); done
dist-hook:
rm -rf `find $(distdir) -name .svn`
documentation:
-for d in $(SUBDIRS); do (cd $$d && $(MAKE) documentation ); done
This diff is collapsed.
Version 1.0.31, 2013-07-30
Adjusted examples and makefiles for GLPK 4.521
Version 1.0.30, 2013-07-18
Adjusted examples and makefiles for GLPK 4.52
Version 1.0.29, 2013-06-14
Adjusted examples and makefiles for GLPK 4.51
Require only JDK 1.6 in Windows build files.
Version 1.0.28, 2013-05-30
Adjusted examples and makefiles for GLPK 4.50
Use -source 1.6 -target 1.6 when compiling with javac.
Require only JDK 1.6 in Windows build files.
Version 1.0.27, 2013-05-04
Changed mapping for glp_arc, glp_graph, glp_vertex
Version 1.0.26, 2013-04-29
Added field rc to _glp_java_arc_data for use with relax4 algorithm.
Added example for relax4 algorithm.
Added method glp_set_numeric_locale to adjust numeric formatting.
Version 1.0.25, 2013-04-16
Release for GLPK 4.49
Version 1.0.24, 2013-01-24
Release for GLPK 4.48
Version 1.0.23, 2013-01-17
Corrected use of CPPFLAGS and LDFLAGS
Search for GLPK dll in java.library.path
Corrected examples
Added example BranchDown
Version 1.0.22, 2012-06-21
Correct dependencies in swig/pom.xml
Correct glpk_java_arrays.i for old Swig versions
Version 1.0.21, 2012-05-15
Remove superfluous files
Version 1.0.20, 2012-04-24
Add support for network problems.
Check if calloc fails when creating new arrays.
Added method glp_java_set_msg_lvl to make debugging easier.
Version 1.0.19, 2011-11-01
Use GNU build system
Version 1.0.18, 2011-09-10
Adjusted examples and makefiles for GLPK 4.47
Version 1.0.17, 2011-04-29
Adjusted examples and makefiles for GLPK 4.46
Adjusted buildfiles for swigwin-2.0.3
Added $(JAVA_HOME)/include to include path
Makefiles for Microsoft Visual Studio 2008 removed
Version 1.0.16, 2010-12-06
Adjusted examples and makefiles for GLPK 4.45
Adjusted buildfiles for swigwin-2.0.1
Version 1.0.15, 2010-09-19
Terminal output listener added
Example using Swing added
Installation of documentation added
Implementation of callbacks corrected
Examples corrected
Makefiles for Microsoft Visual Studio 2010 Express added
Version 1.0.14, 2010-06-03
Adjusted examples and makefiles for GLPK 4.44
Adjusted buildfiles for swigwin-2.0.0
Corrected javadoc
Changed directory structure to fit to Maven
Version 1.0.13, 2010-03-10
Changed error handling to support callbacks
Version 1.0.12, 2010-03-07
Changed GlpkCallback to use LinkedList instead of TreeSet
Version 1.0.11, 2010-02-27
Removed config.h from makefiles
Moved loading of system library to class GLPK
Added error handling
Added callback functionality for the MIP solver
Version 1.0.10, 2010-02-20
Adjusted examples and makefiles for GLPK 4.43
Updated documentation concerning loading JNI library
Version 1.0.9, 2010-01-13
Adjusted examples and makefiles for GLPK 4.42
Workaround for va_list
Version 1.0.8, 2009-12-04
Adjusted examples and makefiles for GLPK 4.41
Moved examples to examples/java
Renamed examples
Corrected examples/java/Lp.java
Added examples/java/Mip.java
Corrected documentation
Adjusted w32/check_jni.bat
Version 1.0.6, 2009-11-04
Adjusted examples and makefiles for GLPK 4.40
Fixed error in check_jni.bat
Version 1.0.5, 2009-10-29
Fixed error in Windows build files
Version 1.0.4, 2009-10-29
Added documentation
Added check files to Windows directories
Adjusted buildfiles for swigwin-1.3.40
Version 1.0.3, 2009-07-26
Adjusted examples and makefiles for GLPK 4.39
Added usage help to GLPKSwig.java
Correction of typos
Version 1.0.2, 2009-06-11
Makefile target test renamed to check
Use libtool object file for linking
Add /usr/local/include to include path
Version 1.0.1, 2009-06-06
Corrected swig/Makefile to allow testing before install
Added target dist to Makefile to create distribution files
GLPK for Java - Java Binding for the GNU Linear Progamming Kit
Copyright (C) 2009, 2010, 2011 Heinrich Schuchardt
E-mail: xypron.glpk@gmx.de
GLPK for Java provides a Java Binding for the GNU Linear Programmng Kit.
See the file COPYING for the GNU General Public Licence.
See the file INSTALL for compilation and installation instructions.
Rafael Laboissiere <rafael#debian.org>
for helping to turn glpk-java into a Debian package and
correcting issues in the makefile.
Andrew Makhorin <mao#mai2.rcnet.ru> for developping
and maintaing GLPK.
This diff is collapsed.
#!/bin/sh
aclocal
libtoolize --force --copy
autoconf
automake
This diff is collapsed.
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
This diff is collapsed.
This diff is collapsed.
dnl GLPK for Java
dnl Initialization
AC_INIT([libglpk-java], [1.0.31], [xypron.glpk@gmx.de])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
LT_INIT
dnl Compiler check
AC_PROG_CC
AC_CHECK_PROG([have_cc],[$CC],[yes],[no])
if test [$have_cc] != [yes]; then
AC_MSG_ERROR([$CC is missing])
fi
dnl Provide $(LN_S)
AC_PROG_LN_S
dnl Check for programs needed
AC_PATH_PROG([SWIG],[swig])
if test "x$SWIG" == "x"; then
AC_MSG_ERROR([Swig is missing])
fi
AC_PATH_PROG([JAVAC],[javac])
if test "x$JAVAC" == "x"; then
AC_MSG_ERROR([javac is missing])
fi
AC_PATH_PROG([JAVADOC],[javadoc])
if test "x$JAVADOC" == "x"; then
AC_MSG_ERROR([javadoc is missing])
fi
AC_PATH_PROG([JAR],[jar])
if test "x$JAR" == "x"; then
AC_MSG_ERROR([jar is missing])
fi
AC_PATH_PROG([MVN],[mvn])
AM_CONDITIONAL([HAVEMVN], [test "x$MVN" != "x"])
AM_COND_IF([HAVEMVN],
[],
AC_MSG_WARN([Maven is missing])
)
dnl Check JAVA_HOME is set
if test "x$JAVA_HOME" == "x"; then
AC_MSG_ERROR([JAVA_HOME is not set])
fi
dnl Include path
CPPFLAGS="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux $CPPFLAGS"
dnl SWIG
AC_ARG_VAR([SWIGFLAGS],[The list of flags that should be passed to SWIG.])
SWIGFLAGS="-I/usr/include -I/usr/local/include $SWIGFLAGS"
SWIGFLAGS="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux $SWIGFLAGS"
dnl Check includes
AC_CHECK_HEADER([glpk.h],
[],
[AC_MSG_ERROR([glpk.h not found])]
)
AC_CHECK_HEADER([jni.h],
[],
[AC_MSG_ERROR([jni.h not found])]
)
dnl Makefiles
AC_CONFIG_FILES([
Makefile
doc/Makefile
swig/Makefile
])
dnl Generate files
AC_OUTPUT
This diff is collapsed.
EXTRA_DIST = \
glpk-java.tex \
index.sty \
libglpk-java.3 \
mybib.bib \
swimlanes.eps \
swimlanes.graphml \
glpk-java.pdf
all:
gzip -c libglpk-java.3 > libglpk-java.3.gz
clean-local:
rm -f *.aux
rm -f *.bbl
rm -f *.blg
rm -f *.gz
rm -f *.idx
rm -f *.ilg
rm -f *.ind
rm -f *.log
rm -f *.out
rm -f *.toc
rm -f *~
documentation:
epstopdf swimlanes.eps
pdflatex glpk-java.tex
bibtex glpk-java
pdflatex glpk-java.tex
makeindex glpk-java.idx
pdflatex glpk-java.tex
install:
mkdir -p -m 755 $(DESTDIR)${docdir};true
install -m 644 glpk-java.pdf $(DESTDIR)${docdir}/glpk-java.pdf
mkdir -p -m 755 $(DESTDIR)${mandir}/man3/;true
install -m 644 libglpk-java.3.gz $(DESTDIR)${mandir}/man3/libglpk-java.3.gz
check:
if test ! -f glpk-java.pdf;then echo glpk-java.pdf not found;exit 1; fi
This diff is collapsed.
This diff is collapsed.
% sty.file for mkidx32.exe - redefines:
quote '+'
headings_flag 1
heading_prefix "{\\bf "
heading_suffix "}\\nopagebreak%\n \\indexspace\\nopagebreak%"
delim_0 "\\dotfill "
delim_1 "\\dotfill "
delim_2 "\\dotfill "
delim_r "~--~"
suffix_2p "\\,f."
suffix_3p "\\,ff."
\ No newline at end of file
This diff is collapsed.
@manual{GLPK,
year = 2010,
author = {Makhorin, Andrew},
organization = {GNU Software Foundation},
title = {GNU Linear Programming Kit},
url = {http://www.gnu.org/software/glpk/glpk.html}
}
@manual{GPL,
year = 2007,
organization = {Free Software Foundation, Inc.},
title = {GNU General Public License},
url = {http://www.gnu.org/licenses/gpl.html},
}
@manual{SWIG,
year = 2010,
organization = {SWIG.org},
title = {Simplified Wrapper and Interface Generator},
url = {http://www.swig.org/}
}
@manual{JNI,
year = 2004,
organization = {Sun Microsystems, Inc.},
title= {Java Native Interface Specification v1.5},
url = {http://java.sun.com/j2se/1.5/docs/guide/jni/}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment