Control of an electroplating line in the max and min algebras