jdisset / gaga

GAGA is a fast, header only, multi-objective, and distributed evolutionary algorithm library written in modern C++. It is designed to be easily usable with various genotype representations and allows the user to enable or disable several features such as novelty search or speciation. It also produces and exports various customizable statistics.
MIT License
18 stars 4 forks source link

The available example requires updating #9

Closed DJuego closed 4 years ago

DJuego commented 4 years ago

Thank you for keeping this project alive!

The current code in gaga/examples/onemax/src/mainevo.cpp seems to require updating.

I am working in Visual Studio 2019 (Windows 10 x64).

I get:


1>------ Build started: Project: prueba_gaga_msvc2019, Configuration: Release x64 ------
1>main.cpp
1>P:\Mis-Proyectos\Personal\prueba_gaga\src\main.cpp(162,32): error C2661: 'GAGA::GA<MyDNA,GAGA::Individual<DNA>>::GA': no overloaded function takes 2 arguments
1>        with
1>        [
1>            DNA=MyDNA
1>        ]
1>P:\Mis-Proyectos\Personal\prueba_gaga\src\main.cpp(175,5): error C2039: 'setMutationProba': is not a member of 'GAGA::GA<MyDNA,GAGA::Individual<DNA>>'
1>        with
1>        [
1>            DNA=MyDNA
1>        ]
1>P:\Mis-Proyectos\Personal\prueba_gaga\src\main.cpp(162): message : see declaration of 'GAGA::GA<MyDNA,GAGA::Individual<DNA>>'
1>        with
1>        [
1>            DNA=MyDNA
1>        ]
1>P:\Mis-Proyectos\Personal\prueba_gaga\src\main.cpp(176,5): error C2039: 'setCrossoverProba': is not a member of 'GAGA::GA<MyDNA,GAGA::Individual<DNA>>'
1>        with
1>        [
1>            DNA=MyDNA
1>        ]
1>P:\Mis-Proyectos\Personal\prueba_gaga\src\main.cpp(162): message : see declaration of 'GAGA::GA<MyDNA,GAGA::Individual<DNA>>'
1>        with
1>        [
1>            DNA=MyDNA
1>        ]
1>Done building project "prueba_gaga_msvc2019.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

DJuego

jdisset commented 4 years ago

Hi! Thanks, yes I am trying to keep GAGA alive, although since my research doesn't use it at the moment I can only do so on my free time. The onemax/src/mainevo.cpp example is obsolete, I have removed it in 2de8064. It is basically replaced by onemax/simple_onemax.cpp