Toutes les actualités, formations et événements

Gecode

01 / 01 / 1970,

Actualité

http://www.gecode.org/

Gecode

Gecode is an open, free, portable, accessible, and efficient environment for developing constraint-based systems and applications. Gecode is:

open
Gecode is radically open for programming: it can be easily interfaced to other systems. It supports the programming of new propagators (as implementation of constraints), branching strategies, and search engines. New variable domains can be programmed at the same level of efficiency as finite domain and integer set variables that come predefined with Gecode.
free
Gecode is distributed under a BSD-style license and is listed as free software by the FSF. All of its parts including documentation, implementations of global constraints, and examples are available as source code for download.
portable
Gecode is implemented in C++ that carefully follows the C++ standard. It can be compiled with modern C++ compilers and runs on a wide range of machines (including 64bit machines).
accessible
Gecode comes with extensive reference documentation that allows to focus on different programming tasks with Gecode. In the near future, we intend to release tutorial documentation explaining the various programming tasks in more detail.
efficient
Gecode offers competitive performance with respect to both runtime and memory usage. A comparison with some other systems is available.

 

pour compiler gecode (pour les administrateurs)

./configure --prefix=/usr/local/gecode-1.3.1 CC=icc CXX=icpc
make
(la version intel ne compile pas)


./configure CC=icc CXX=icpc --with-host-os=linux --with-compiler-vendor=intel

make
(c'est cette version qui est présente, avec les exemples)

 

pour utiliser gecode

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/gecode-1.3.1/

/opt/gecode-1.3.1/examples/golomb
/opt/gecode-1.3.1/examples/golf
more /opt/gecode-1.3.1/examples/golf.cc

 

exemple de code gecode

à venir, les exemples sont dans /usr/local/gecode-1.3.1/examples/

compilation

1. Définition de l'env:

export GPREFIX=/optl/gecode-1.3.1/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/gecode-1.3.1/

2. Includes et édition de liens :

-L$GPREFIX/lib -lgecodekernel -lgecodesearch -lgecodeint -lgecodeset -lgecodeminimodel -I$GPREFIX/include -I$GPREFIX

3. Exemples pour les n-reines :

icc -L$GPREFIX/lib -lgecodekernel -lgecodesearch -lgecodeint -lgecodeset -lgecodeminimodel -I$GPREFIX/include -I$GPREFIX queens.cc -o queensicc $GPREFIX/examples/support.o $GPREFIX/examples/timer.o -lm

Toutes les actualités, formations et événements