NEURAL NETWORKS FOR MODELING AND CONTROL OF PARTICLE ACCELERATORS - - PowerPoint PPT Presentation
NEURAL NETWORKS FOR MODELING AND CONTROL OF PARTICLE ACCELERATORS - - PowerPoint PPT Presentation
NEURAL NETWORKS FOR MODELING AND CONTROL OF PARTICLE ACCELERATORS Auralee Edelen 2016-02-02 Advisors: Sandra Biedron and Stephen Milton Published Work Edelen, A. et al. Neural Networks for Modeling and Control of Particle Accelerators.
Published Work
- Edelen, A. et al. Neural Networks for Modeling and Control of Particle
- Accelerators. Submitted to IEEE Transactions in Nuclear Science, Jan. 2015.
- Edelen, A., et al. Initial Experimental Results of a Machine Learning-Based
Temperature Control System for an RF Gun. Paper for the 6th International Particle Accelerator Conference (IPAC), Richmond, VA, May 3-8, 2015.
- Morin, A., et al. Trajectory Response Studies at the Jefferson Laboratory
Energy Recovery Linac and Free Electron Laser. Paper for the 16th Annual Directed Energy Symposium, Huntsville, AL, March 10-14, 2014.
Control Challenges
SLAC JLAB Fermilab LBNL Visualization Group Fermilab www.tka-architects.com
Inspiration from Operators
Model learning Planning Diagnostic Analysis Optimization Prediction Learning Control
Control Room Photo: Reidar Hahn, FNAL
Gradient descent Conjugate gradient Newton method Quasi-Newton methods Simulated annealing Evolutionary algorithms Swarm intelligence Machine Learning Mathematical Optimization Computational Statistics Artificial Intelligence Model-free Methods Learning Theory Supervised Learning Unsupervised Learning Reinforcement Learning Regression Classification Clustering Dimensionality reduction Biological Sciences and Psychology (inspiration!) Reactive search optimization Fuzzy Logic Model-based Methods
A trip to the zoo…
Decision Trees Neural Networks Support Vector Machines Ensemble Methods ICA, PCA Intelligent Control Adaptive Control Nonlinear Control Optimal Control Robust Control System Identification Stochastic Control
In general: greater theoretical understanding + increased computational capability + advantageous co-developments in related fields + feedback from a wider variety of application attempts
à greater overall technological maturity
But still difficult in the context of nonlinear control à à we need R&D!
Many Failures Early On à So Why Try Again Now?
- J. Schmidhuber
Shutterstock IBM, ANL
- B. Rhoads, UCSB
Let’s develop and test some AI-based solutions for control problems in accelerators!
- Explore the tools and techniques
- Examine some real-world problems, focusing on process control
- Need to test on an actual machine; not just in simulation
- Have at it!
Central Focus:
Some Tools
Neural Networks
- What are they
- How do they learn?
- When are they useful?
- What are the disadvantages?
à How can we use these things in particle accelerators?
x1 x2 xn
f
w1 w2 wn
y
a neuron (“node”)
. . .
xn x1 x2
a neural network
. . .
Learning Paradigms
Model Predictive Control
Basic concept: use a predictive model to assess the outcome of possible future actions
Model Predictive Control
Plant Model Plant Cost Function Constraints Solver um(k – 1)… um(k – Nm) Optimization of Controlled Variable Trajectories ucv (k) yr (k)… yr (k + Np) ucv (k)… ucv (k + Nc – 1) yp (k)… yp(k + Np) Reference Trajectory Measured Variables Future Inputs Predicted Outputs
Nm previous measurements Np future time steps predicted Nc future time steps controlled
!!! !! ! + ! − !! ! + !
!! !! !!!
(output variable targets) !!,! !! ! + ! − !!,!"# ! + !
! !!!! !!! !!" !!!
! (controllable variable targets) !∆!,! !! ! + ! − !! ! + ! − 1
! !!!! !!! !!" !!!
(movement size)
Reinforcement Learning
Real-World Problems
At Fermilab…
High-intensity RFQ for the PIP-II Injector Experiment (PXIE)
— Time delays — Large, dynamic frequency response — Tight tolerances — Coupling — Recursive behavior — Three controllable parameters
Photo: J. Steimel Photo: P. Stabile
RF electron gun at the Fermilab Accelerator Science and Technology (FAST) facility
— Long, variable time delays — Tight tolerances — Recursive behavior — Two controllable parameters
At Fermilab…
Photo: E. Harms
RF electron gun at the Fermilab Accelerator Science and Technology (FAST) facility
— Long, variable time delays — Tight tolerances — Recursive behavior — Two controllable parameters
Photo: P. Stabile
!!Type Photoinjector !!Number!of!cells 1½ !!RF!Mode TM010,π !!Loaded!Q ~11,700 !!RF!Frequency 1.3 GHz !!Frequency!Shift 23 kHz/°C !!Macropulse!Duration 1 ms !!Repetition!Rate 1−5 Hz !!Bunch!Frequency! 3 MHz !!Design!Gradient 40−45 MV/m !!Power!Source 5 MW Klystron
FAST!RF!Gun!Parameters
!!Gun!Parameters !!Nominal!Operating!Parameters
Gun Water Cooling System
Time%Elapsed%[minutes]% Temperature%[°C]%
%
impulse response from a 20-second decrease in the heater power setting from 7 kW to 2.5 kW
Water Temperatures — Open Loop
Time%Elapsed%[minutes]% Temperature%[°C]%
%
1-°C step change in temperature set point à Oscillation is NOT due to poorly tune PI gains!
Existing feed-forward/PI Control of the Gun Temperature
Initial Solution
- Neural network model
- Model predictive control
à Serves as a simple benchmark for future studies
model predicted next value of T02 T01 ([t-d1 ], . . ., [t-d1 -n]) TOUT ([t - d2 ], . . ., [t - d2- n2]) T01 ([t-d1 ], . . ., [t-d1 -n]) valve ([t - d3 ], . . ., [t - d3 - n3 ]) T01 ([t - d1 ], . . ., [t - d1 - n1]) heater ([t - d4 ], . . ., [t - d4 - n4])
d - delay tme n - number of previous samples
Neural Network Modeling
Benchmark Controller
MPC Benchmark Controller
Note: different horizontal and vertical scale than for PI loop ~5x faster settling time no more overshoot still needs work… (esp. T02-to-TCAV model)
Time%Elapsed%[minutes]% % Requested%Heater%Power%[kW]% Time%Elapsed%[minutes]% % Requested%Control%Valve%Posi9on%[%%open]%
MPC Benchmark Controller: Actions
Requested by Controller Actual Read-backs
Of course, there’s more to the story….
0.5 1 1.5 2 0.5 1 1.5 2 2.5 3
Average RF Power [kW]
TOUT−TIN TCAV−TIN TOUT−TIN expected
Average'RF'Power'[kW]' Steady'State'Temperature'Difference'[°C]'
!
!""# = !!"#[℃]!!!"[℃] !×! !"#$![!"#] !"#$%!!""#$%&!!"#"$%&'! !"#!℃
!"
!
!""# = ! !" ≈ ! !"!"#.
FAST Next Steps
- Neural network model predictive control
- Extension to direct resonance control
- Reinforcement learning control
At Fermilab…
High-intensity RFQ for the PIP-II Injector Experiment (PXIE) RF electron gun at the Fermilab Accelerator Science and Technology (FAST) Facility
— Long, variable time delays — Tight tolerances — Recursive behavior — Two controllable parameters — Time delays — Large, dynamic frequency response — Tight tolerances — Coupling — Recursive behavior — Three controllable parameters
Photo: J. Steimel Photo: P. Stabile
PXIE RFQ
High-intensity RFQ for the PIP-II Injector Experiment (PXIE)
— Time delays — Large, dynamic frequency response — Tight tolerances — Coupling — Recursive behavior — Three controllable parameters
!!RF!frequency 162.5 MHz !!Q-factor ~13,900 !!Loaded!Q ~7,000 !!Physical!Length 4.45 m (2.4 wavelengths) !!Vane-to-Vane!Voltage 60 kV !!Estimated!Power!Dissipation < 100 kW !!RF!Repetition!Rate pulsed − CW !!Current 0.5 − 10 mA (nominal 5 mA) !!Input!Energy 30 keV !!Output!Energy 2.1 MeV
!!Beam!Parameters
PXIE!RFQ!Parameters
!!RFQ!Design!Parameters
Constructed by LBNL
Photo: J. Steimel
PXIE RFQ
4"inner"channels" 8"outer"channels"
Vane channels Wall channels
All images courtesy LBNL, D. Li, A. Lambert
3-kHz max. freq. shift 0.1-°C water stabilization
Expected Frequency Response
ANSYS simulation data courtesy A. Lambert, LBNL
Water System
ACNET&user&interface&
&Opera&onal*Mode*Request*
*
Present*Opera&onal*Mode* Error*Read4backs* Heartbeat* PLC&
*Secondary*Temperature*Sensors* Flow*Valve*Read4backs* Pressure*and*Flow*Readings*
*
Flow*Valve*SeCngs* PLC*Cntrl.**vs.*Resonance*Cntrl.* Cryo5con&
*
Cri&cal*Temperature*Sensors* LLRF&
&Resonant*Frequency*Devia&on** RF*Amplitude,*Rep.*Rate,*Pulse* Length* CW*vs.*Pulsed*Indicator* Other*State*Informa&on*(TBD)* * PLL*(“SEL”)*vs.*GDR*switch* (Op&onal)*feed4forward*amplitude*
ACNET& Erlang& CLX&Machine& Resonance&Controller& Data*Reading*and* Organiza&on* Opera&onal*Module* Selec&on* Control*Calcula&on*in* Corresponding*Module* Error4checking* Data*Organiza&on*and* Sending* UDP&& Protocol&Defini@on& (from&protocol&file&and& protocol&compiler)&
to#resonance#controller# from#resonance#controller#
Resonance&Control&System&Architecture&and&Component&Interfaces&
Resonance Controller State Flow
Requested state S0: No control S1: PLC has control S2: PID temperature control (user set point) S3: PID temperature control (default set point) S4: MPC temperature control (user set point) S5: MPC temperature control (default set point) S6: PID resonance control S7: Resonance control S8: Startup with RF S9: Experimental Is RF On/Off? Resonance control anticipatory state Resonance control with LLRF in SEL No control PLC control Temperature Control
- Water system settled?
- f0 within tolerance of 162.5 MHz?
Resonance control with LLRF in GDR RF still on? count1++ count1 > threshold? close flow control valves count2++ count2 > threshold? Resonance control anticipatory state Resonance control w/RF settings RF on? Settled? S6,S7 Off On GDR conditions met Check GDR conditions GDR conditions not met S2,S3,S4,S5 S0 S1 no no yes yes no yes yes no yes no S8
Initial Frequency Response Measurements
initial transient steady state Time 7.2 min 115.4 min ∆fres 46.13 kHz 21.15 kHz TT101 22.280 oC 25.796 oC 25.649 oC TT102 31.489 oC 28.126 oC 26.141 oC TT103 30.941 oC 27.639 oC 26.284 oC flow path time delay [s] TT101 → TT103 1.0 TT103 → TT102 17.0
Next Steps for PXIE
- Finish and test control framework
- Characterize and debug water system
- Characterize RFQ and water system under RF power
- Implement basic controllers for contracted work
- Design and test neural network controllers