I’m not sure if there’s interesting optimization to do. Simply: bugs are attracted to light, light=more bugs, no light=fewer bugs. Motion detectors, for example, can make it so that the light is only temporary and you don’t get those moth parties.
Isn't the takeaway from this study that they aren't really, but rather that once they happen to come close to it they cannot get away from it anymore?