Modeling of Optimization and Control of EBW Heating and Current Drive