A control approach for plasma density in tokamak machines