offline optimization of fuzzy controller