Skip to content
/ cartgp Public

Python/C++ library implementing Cartesian Genetic Programming

License

Notifications You must be signed in to change notification settings

kpot/cartgp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CartGP - Cartesian Genetic Programming Library for C++ and Python

CartGP is a very simple and minimalistic C++/Python library implementing Cartesian Genetic Programming (CGP). The library currently supports classic form of CGP where nodes are arranged into a grid and no recurrent connections are allowed.

Python binding

Python version of the library can be installed using standard python setup.py install or python pip . commands, from the project's directory. You will also need to have CMake and a C++11-compatible compiler installed.

Check this jupyter notebook to see how to use the library from Python.

C++ Interface

CartGP is a header-only library that does not require building. Simply add files from cpp/include to your project and #include <cartgp/genotype.h> to your code. C++11 or newer is required.

Potential issues

If you see error Symbol not found: __Py_ZeroStruct on import pycartgp, check that you're running your program using the same Python interpreter you used for installing PyCartGP.

About

Python/C++ library implementing Cartesian Genetic Programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published