In the optimal design of electromagnetic devices, the robustness is a critical aspect. In the modern robust optimization procedures, the evaluation of suitable partial derivatives is required at each step of the search process; the estimate of the sensitivity is required also in non robust optimizations if the robustness of the final design with respect to a number of independent parameters must be assessed. On the other hand, the tolerance analysis is a widely adopted tool in the analysis of electromagnetic devices, whose main aim is to assess the impact of some independent uncertain parameters (e.g. geometrical dimensions or materials properties) on a device performance as, for example, the electromagnetic field in a volume of interest....