jara001 / ng_trajectory

Racing Line Optimization using Nevergrad
GNU General Public License v3.0
5 stars 4 forks source link

Change the structure of the algorithms #18

Open jara001 opened 2 years ago

jara001 commented 2 years ago

Currently, we import the algorithms directly, having a set of required functions. This could be done in much nicer way using Classes, especially ABC.

https://www.godaddy.com/engineering/2018/12/20/python-metaclasses/

jara001 commented 2 years ago

In addition, the objects (classes) could be executable using fake 'callable' attribute: https://www.geeksforgeeks.org/callable-in-python/