heal-research / operon

C++ Large Scale Genetic Programming
https://operongp.readthedocs.io
MIT License
144 stars 26 forks source link

Where can I find a c++ example of using operon? #31

Closed breakds closed 1 year ago

breakds commented 1 year ago

Hi!

It seems that the only example here is empty_example.cpp. I am wondering whether there is an example that can run at this moment? Really appreciate the help and also thank you for open sourcing this library!

Best, -Break

breakds commented 1 year ago

Ok I think I found this: https://github.com/heal-research/operon/blob/master/test/source/performance/evaluation.cpp

Is this the best example I can find? Thanks!

foolnotion commented 1 year ago

Hi, here is an example of a cli app running the NSGA2 algorithm: https://github.com/heal-research/operon/blob/cpp20/cli/source/operon_nsgp.cpp

This demonstrates how to initialize all the required genetic operators and configure them.

If you need anything else don't hesitate to ask.

PS: I recommend using the cpp20 branch

breakds commented 1 year ago

Ah I see. Thanks a lot! I'll switch to cpp20 branch then. Really appreciate the prompt response!

yuanshuoastro commented 11 months ago

Hello @foolnotion , Just found the branch cpp20 is removed? And the main branch still keeps the example/ empty. Best

foolnotion commented 11 months ago

Hi, the master branch was renamed to cpp17 and the cpp20 branch was renamed to main. Some examples will be added but in the meanwhile you can have a look at our cli programs: