Optimization and control of TMB, SMB and SMBR units