Optimal stock control and procurement by reusing of obsolescences in manufacturing