Instructions for using GAlib on Athena or in the CADlab



How to build the examples

I strongly suggest that you start with one of the examples that is similar to what you're trying to do, then modify it to suit your needs. Most of the examples are fully commented; you should be able to cut and paste the parts you'll need.

To build the examples, copy them to a directory in your own filespace, edit the makefile (if needed), then, in your copy of the examples directory, make them. The process looks like this:

add galib
cp -r /mit/galib/latest/examples /var/tmp/myexamples
cd /var/tmp/myexamples
emacs makefile
make depend
make

You do not have to copy the library or library sources to your own filespace!

On athena, the examples live in the /mit/galib/latest/examples directory. In the CADlab, the examples live in the /nfs/software/galib/examples directory.

The documentation is available at http://web.mit.edu/galib/www/GAlib.html or do 'open file' with your browser and open /afs/athena/course/2/2.galib/www/GAlib.html



If you're working on athena...

GAlib compiles properly on the SUN, DEC, IBM, and SGI platforms using g++. g++ is located on the gnu locker. To use it, do add gnu before you try to compile.

The library may not compile correctly with the version of g++ that is installed on the cygnus locker. Make sure that you add gnu before you add cygnus. The gnu locker must be before the cygnus locker in your path! Better yet, don't even add the cygnus locker! To find out which version of g++ you are using, type g++ -v or type which g++ to find out whether you're using the cygnus g++ or the gnu g++

The library lives on the locker called '2.galib' in the directory /afs/athena/course/2/2.galib. To get to it, add galib. The examples are in the /mit/galib/latest/examples directory. The compiled libraries are located in the /mit/galib/lib directory. Headers and template sources are located in the /mit/galib/include/ga directory.

Your include and link lines should contain these paths:

-I/mit/galib/include
-L/mit/galib/lib ... -lga

The versions of GAlib in the 2.galib locker were compiled using g++ 2.7.1. The locker includes libraries for irix5/6 and solaris 2.x.



If you're working in the CADlab...

The irix version of the library lives on the CADlab software server. The examples are in the /nfs/software/galib/examples directory. The compiled libraries are located in the /nfs/software/lib directory. Headers and template sources are located in the /nfs/software/include/ga directory.

Your include and link lines should contain these paths:

-I/nfs/software/include
-L/nfs/software/lib ... -lga

The version of GAlib in the software volume were compiled using DCC under irix 6.2.

Mac and Windows95/NT versions of the library live in the /nfs/cadlab hierarchy. The mac version is in /nfs/cadlab/projects/galib/mac/lib The windows version is in /nfs/cadlab/projects/galib/win/lib Includes for both mac and windows are in /nfs/cadlab/projects/galib/include There are debug and non-debug versions available, each compiled with Metrowerks Codewarrior Pro 4 as well as MS VC++ 5.0.

 

 

 

GAlib is a C++ library of genetic algorithm objects. The canonical source for GAlib is http://lancet.mit.edu/ga/
8 October 1998