A method of generating control rule model and its application