Simulation and optimization of a cell recycle system