Modelling for Control and diagnosis for a class of Non Linear complex switched systems