A simple generic genetic algorithm library for zig
Uses zig 0.12.0 (see this commit for a zig 0.11.0 version)
To run example:
git clone https://github.com/StrandedSoftwareDeveloper/zigGenAlg.git
cd zigGenAlg
zig build example
To use with the zig package manager:
- Run the following:
zig fetch --save https://github.com/StrandedSoftwareDeveloper/zigGenAlg/archive/<latest commit hash>.tar.gz
- Add this to your build.zig:
const gen_alg_mod = b.dependency("genAlg", .{ .target = target, .optimize = optimize }).module("genAlg");
exe.root_module.addImport("genAlg", gen_alg_mod);
- And import it with this:
const genAlg = @import("genAlg");