Optimal degradation of inhibitory wastewaters in a fed-batch bioreactor