To integrate the learned dynamics model into a closed-loop control system for optimizing the DIII-D tokamak's performance, a feedback loop can be established. The model can continuously predict the evolution of plasma discharges based on real-time data inputs from the tokamak. These predictions can then be compared to desired performance metrics or setpoints. If deviations are detected, the control system can adjust the actuators in real-time to steer the plasma towards the desired state. This closed-loop system allows for proactive control and optimization of the tokamak's operation.