Mathematical Issues of Industrial Effluent Optimization