-
Notifications
You must be signed in to change notification settings - Fork 162
Home
Dario Izzo edited this page Mar 8, 2017
·
25 revisions
Welcome to the pagmo2 wiki!
While developing use this line to format your code before committing. (use it from the pagmo2 dir)
git ls-files | grep -E "\.(in|h|hpp|cpp)$" | grep -vE "external" | xargs clang-format -i
- add your meta prob/algo to the list of metas here: https://github.com/esa/pagmo2/blob/master/pygmo/pygmo_classes.hpp (just add a new element at the end of the tuple)
- implement a specialisation of the make_meta_problem_init structure to tell pygmo how to construct your meta prob/algo from a UDP/UDA. Example for translate: https://github.com/esa/pagmo2/blob/master/pygmo/problem_exposition_suite.hpp#L99
- use the expose_meta_problem helper function in core.cpp to expose your meta, example for translate: https://github.com/esa/pagmo2/blob/master/pygmo/core.cpp#L618