optimisation set_tags method