Optimization of migraine attacks relief