# pgalib **Repository Path**: jedi-knight/pgalib ## Basic Information - **Project Name**: pgalib - **Description**: 主从并行遗传算法库,改造自galib库 - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-01 - **Last Updated**: 2024-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README GAlib: A C++ Genetic Algorithm Library Copyright (c) 1994-1996 MIT, 1996-2005 Matthew Wall GAlib is a C++ library of genetic algorithm objects. With GAlib you can add evolutionary algorithm optimization to almost any program using any data representation and standard or custom selection, crossover, mutation, scaling, and termination methods. The library requires reasonable C++ compiler. I have tested GAlib on MacOS using Metrowerks and Symantec development environments, MacOSX using gcc2/3, DOS/Windows using Borland C++ and MS VC++, and various UNIX platforms using g++, egcs, CC, DCC, xlC, and aCC. Graphic examples (XWindows/Motif and MS Windows) are available, as are parallel, distributed implementations using PVM. There are about 30 examples that illustrate various ways to use GAlib on a variety of problems. WHERE TO GET IT --------------------------------------------------------------- http://lancet.mit.edu/ga ftp://lancet.mit.edu/pub/ga/ COMPILATION ------------------------------------------------------------------- 使用CMake完成配置,使用g++9.4.0完成编译 ga文件夹内是galib库的源代码 examples文件夹内是案例程序的main函数 bin文件夹存放可执行文件 lib文件夹存放编译得到的静态链接库 CMakeLists.txt有两种模式: - 直接把galib库的源代码与main函数一起编译为**可执行文件**,存放在bin中 - 先把galib库的源代码编译为**静态链接库**,存放在lib中。然后再编译main函数,与静态链接库链接后,得到可执行文件,存放在bin中