heidmic / suprb

GNU General Public License v3.0
6 stars 3 forks source link

#111 Add modularized matching functions #113

Closed heidmic closed 2 years ago

heidmic commented 2 years ago
heidmic commented 2 years ago

I think that everything should be working now and I tried to simplify some things from the first attempts.

New matching functions need to implement:

Additionally, for each new type of matching function a fitting way to init/update them needs to be added to rule.initialization and optimizer.rule.mutation (and optimizer.rule.ns.crossover, although I backlogged that for now as it is under rewrite anyhow). This is done with a simple addition to the pseudo switch case in the setter of the base class and the corresponding functionality in the respective inheriting classes