Analysis applied to industrial production: two case studies