Accelerator automatic beam adjustment modeling method

Through the automatic beam adjustment modeling method and combined with multiple optimization strategies, the problems of experience dependence, insufficient accuracy and local optimization in cyclotron beam adjustment are solved, and high-precision and global optimal beam current parameter matching is achieved.

CN118981869AActive Publication Date: 2024-11-19CHINA INSTITUTE OF ATOMIC ENERGY
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410973999.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-19
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The existing cyclotron beam adjustment method depends on experience, and it is difficult to ensure the effect and accuracy of the beam flow, and the millisecond-level changes cannot be observed. The use of fixed intervals and step lengths leads to insufficient adjustment accuracy, and can only achieve local optimal parameters, and cannot achieve global Optimal.

Method used

A method of automatic beam adjustment and modeling of accelerator is proposed. By establishing an initial value model and objective function of automatic beam adjustment and assignment, coarse adjustment and fine adjustment, combining differential evolution, Brownian motion and Levy flight strategy, multiple subsystem parameters are optimized to achieve global maximum Optimal parameter matching.

Benefits of technology

The simultaneous adjustment of multiple subsystem parameters is achieved, which improves the adjustment accuracy and speed, and can observe and adjust millisecond-level changes, ensure the stability and efficiency of beam current, and avoid the empirical dependence and local optimization problems of manual beam adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981869A_ABST
    Figure CN118981869A_ABST
Patent Text Reader

Abstract

The invention provides an accelerator automatic beam adjustment modeling method which comprises the following steps: establishing an automatic beam adjustment initial value assignment model Dij, assigning an initial value to a parameter to be adjusted in the initial value assignment model Dij, and setting a total power supply parameter optimization frequency T and an initial power supply parameter optimization frequency t = 0; establishing a target function F, and performing difference calculation on the target value Ok'and the actual value Ok; t = t + 1, all alternative schemes of beam parameters of all the subsystems are roughly adjusted, a beam updating scheme Dibest of a rough adjustment section is obtained, and the Dibest is the optimal alternative scheme in multiple alternative schemes in joint debugging of all the subsystems; on the basis of coarse adjustment, the alternative scheme is adjusted, and the optimal beam updating scheme of the fine adjustment section is obtained; and judging t = t + 1, if not, returning to the step 3, and if so, ending. The automatic beam adjustment model D, the objective function F, the coarse adjustment stage and the fine adjustment stage are organically combined, and the problems that manual beam adjustment depends on experience, millisecond-level changes cannot be observed, the adjustment precision is not enough, and only local optimal parameters are achieved are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of cyclotron accelerators, and in particular relates to an accelerator automatic beam adjustment modeling method. Background Art

[0002] The cyclotron system is numerous and complex in structure, including ion source system, injection line system, main accelerator system, beam line system, water cooling system, vacuum system, pneumatic system, etc. The multiple systems are highly coupled, and the extraction of the beam requires the coordination of multiple system parameters. It requires professional debugging personnel to spend a lot of time to adjust the required target beam.

[0003] The existing debugging scheme is mainly carried out by experienced operation and debugging personnel according to the multi-section system of the accelerator. First, the ion source system is adjusted, and the power supply parameters are constantly tried to be adjusted to make the filament arc, and then multiple main parameters are adjusted to increase the beam efficiency. During this period, it is necessary to observe the power supply status and continuously adjust the parameters. After the beam is extracted, it is also necessary to continuously adjust multiple parameters to the next system, and after the adjustment, it is necessary to observe the beam status of the previous system and adjust it repeatedly. Repeat the above steps until the extracted beam on the target of the last system is equal to the set target beam value. Some of them are also adjusted using automated programs. By writing code in the upper program, a simple hill climbing program is used to linearly increase or decrease the power supply parameters, while observing the beam status until the beam target value is reached.

[0004] Problems with existing technologies:

[0005] 1. Manual beam adjustment relies on experience and it is difficult to guarantee the effect of the beam. In practical applications, cyclotron accelerators require fast and stable beam output. Manual adjustment of beam parameters is not only time-consuming and laborious, but the effect of adjustment depends on the experience of the operator. Without a unified adjustment plan, it is difficult to guarantee the effect of the beam, and operators who lack actual adjustment experience may cause irreparable damage to the accelerator due to misoperation.

[0006] 2. Artificial beam adjustment cannot observe millisecond-level changes. The accelerator system data changes at the millisecond level. Artificial beam adjustment can only adjust a few parameters of a single system and cannot observe multiple subsystem parameters at the same time, resulting in the inability to observe millisecond-level changes in multiple subsystems.

[0007] 3. The fixed interval and fixed step length beam adjustment method leads to insufficient adjustment accuracy. Since the existing adjustment process is changed and adjusted within a fixed interval, the accuracy of this interval and the step length of each adjustment have a great impact on the result. If the interval is too small, the optimal parameter may not be within the interval. If the interval is too large, the system oscillation will become larger and the adjustment time of a single parameter will be longer; if the single adjustment step is large, the adjustment process time of a single parameter will be shorter, but the adjustment accuracy will not be high. If the step length is small, the accuracy will be improved, but the adjustment process time will be longer. It is difficult to find the best parameter combination well and quickly.

[0008] 4. Only local optimal parameters can be achieved, but global optimal parameters cannot be achieved. There is a strong coupling relationship between the various systems of the accelerator. When a certain parameter is adjusted, adjusting the subsequent parameters will also affect the previously adjusted parameters. The existing scheme lacks unified adjustment of multiple system parameters and can only achieve the best beam parameters of a certain system without considering the influence of other systems. It is impossible to achieve parameter matching between multiple systems. Therefore, the adjusted beam may only be a local optimal parameter, and it is impossible to achieve the global optimal parameter. Summary of the invention

[0009] In order to solve the problems existing in the prior art, the present invention proposes an accelerator automatic beam adjustment modeling method, the first purpose is to solve the problem that manual beam adjustment relies on experience and it is difficult to ensure the effect of the beam; the second purpose is to solve the problem that millisecond-level changes cannot be observed in manual beam adjustment; the third purpose is to solve the problem that the existing beam adjustment method adopts a fixed interval and a fixed step size method, resulting in insufficient adjustment accuracy; the fourth purpose is to solve the problem that the existing beam adjustment method can only achieve local optimal parameters but cannot achieve global optimal parameters.

[0010] The present invention proposes the following technical solutions to solve the technical problems:

[0011] An accelerator automatic beam adjustment modeling method is characterized by comprising the following steps:

[0012] Step 1: Establish the automatic beam adjustment initialization model D ij , and assign the initial value model D to it ij The parameters to be adjusted are given initial values, and the total number of power supply parameter optimization times T and the initial number of power supply parameter optimization times t=0 are set;

[0013] Step 2: Establish the objective function F and calculate the target value O k ' and the actual value O k Perform difference calculation;

[0014] Step 3: Let t = t + 1; perform coarse adjustment on all the alternative solutions D for the beam parameters of all subsystems to obtain the coarse adjustment section beam update solution D i_best , the Di_best It is the best alternative among multiple alternatives in the joint debugging of all subsystems;

[0015] Step 4: Based on the coarse adjustment stage, adjust the alternative solutions in the coarse adjustment stage to obtain the optimal beam current update solution D in the fine adjustment stage. i_best ;

[0016] Step 5: Determine whether t=T. If not, return to step 3. If yes, end.

[0017] Furthermore, the step 1 of establishing the accelerator automatic beam adjustment initialization model D ij , and assign the initial value model D to it ij The parameters to be adjusted in are assigned initial values. The specific process is as follows:

[0018] 1) Determine the subsystems whose parameters are to be adjusted, including: ion source subsystem, injection line subsystem, main accelerator subsystem, and beam line subsystem;

[0019] 2) Establish initialization model D ij , the initialization model is as follows:

[0020] D ij =lb j +rand×(ub j -lb j ) i=1,2,…N; j=1,2,…Dim (1)

[0021] In which, i on the left side of formula (1) represents the i-th row in the matrix, j represents the j-th column in the matrix; i = 1, 2, ... N represents that there are N alternatives in the matrix; j = 1, 2, ... Dim represents that each row of the matrix has Dim parameters; lb on the right side of formula (1) j andub j are the upper and lower bounds of the j-th adjusted parameter respectively, and rand represents a random value between 0 and 1.

[0022] Furthermore, the step 1 process 2) of establishing the initial value model D ij , the specific process is as follows:

[0023] i. Determine the beam parameters of all subsystems in all alternative solutions D;

[0024] D=[D IS D IL D MA D BL ] (2)

[0025] Where: D IS D is the ion source parameter subsystem to be adjusted; ILD is the injection line parameter subsystem to be adjusted; MA Main accelerator parameter adjustment subsystem; D BL It is the beam line parameter subsystem to be adjusted;

[0026] ii. Determine the set of parameters to be adjusted for each subsystem D IS , D IL , D MA , D BL ;

[0027] D IS =[D1 D2 D3 D4];

[0028] D IL =[D5 D6 … D 12 ];

[0029] D MA =[D 13 D 14 … D 18 ];

[0030] D BL =[D 19 D 20 … D 24 ];

[0031] Where: D IS D is a parameter set of N rows and 4 columns to be adjusted for the ion source subsystem; IL D is the parameter set to be adjusted for the injection line subsystem with N rows and 8 columns; MA The parameter set to be adjusted is N rows and 6 columns of the main accelerator subsystem; D BL is a set of parameters to be adjusted for a beam line subsystem with N rows and 6 columns; N is N alternative solutions for each subsystem;

[0032] iii. Determine the adjustment parameters of each subsystem:

[0033] D IS There are four adjustment parameters for the ion source system: filament power supply current (A), arc voltage power supply current (A), anode power supply voltage (kV), and plasma power supply voltage (kV);

[0034] D IL There are 8 adjustment parameters of the injection line system: 1X guide magnet power supply current (A), 1Y guide magnet power supply current (A), 2X guide magnet power supply current (A), 2Y guide magnet power supply current (A), injection line upper solenoid power supply voltage (V), injection line upper solenoid power supply current (A), injection line lower solenoid power supply voltage (V), injection line lower solenoid power supply current (A);

[0035] D MAThere are six adjustment parameters for the main accelerator system: positive deflection plate power supply voltage (kV), positive deflection plate power supply current (mA), negative deflection plate power supply voltage (kV), negative deflection plate power supply current (mA), main magnet power supply voltage (V), main magnet power supply current (A);

[0036] D BL There are 6 adjustment parameters of the beam line system: beam line X guide power supply current (A), beam line Y guide power supply current (A), beam line four-stage lens power supply current 1 (A), beam line four-stage lens power supply current 2 (A), rotating magnet power supply voltage (V), rotating magnet power supply voltage (A);

[0037] iv. Determine the total parameters to be adjusted D of each subsystem MA

[0038] There are 24 adjustment parameters for all subsystems, ie, Dim=24.

[0039] Furthermore, the subsystems of formula (2) are expanded to form all the alternative solutions D of the beam parameters of all the subsystems in N rows and Dim columns as follows:

[0040]

[0041] Among them, d i represents the ith alternative, d i,j Represents the value of the j-th beam parameter to be optimized for the ith alternative.

[0042] Furthermore, the objective function F is established in step 2, and the target value O k ' and the actual value O k The difference calculation is as follows:

[0043]

[0044] Among them, F on the left side of formula (4) represents the objective function, and D on the right side of formula (4) i represents the i-th alternative of the four subsystems. The O on the right side of formula (4) k represents the current actual beam output value of the kth subsystem of the ith alternative according to formula (2), O k ' represents the ideal target beam value of the kth subsystem of the ith alternative, k = 1, 2, 3, 4 represent the ion source beam, internal target beam, stripping target beam, beryllium target beam respectively; F i represents the ideal beam current value O of the ith alternative k ' and the actual beam current value O k The difference between

[0045] In formula (4), only the ion source subsystem has ΔDav , other subsystems have no ΔD av .

[0046] Furthermore, the O of formula (4) k 'The calculation is as follows:

[0047] When k in formula (4) = 1, 2, 3, 4,

[0048] O4'=α1O1'=α2O2'=α3O3' (5)

[0049] Among them, O4' is the known target beam current, that is, the beryllium target beam current, α1, α2, α3 are the known engineering debugging experience of the accelerator and the transmission efficiency of each level, and the sizes of other beam target values ​​O1', O2', O3' are calculated based on the known O4' and α1, α2, α3; among them, O1' represents the target value of the ion source beam current, O2' represents the target value of the internal target beam current, and O3' represents the target value of the stripping target beam current;

[0050] The ΔD of formula (4) av The calculation is as follows:

[0051] ΔD av =(D av -D av ') (6)

[0052] D on the right side of formula (6) av is the actual voltage value of the current arc voltage power supply, D av 'The target voltage value of the arc voltage power supply; set the target voltage value of the arc voltage power supply according to engineering experience D av ' = 120;

[0053] The O of formula (4) k -O k 'The calculation is as follows:

[0054] ΔO k =O k -O k ' (7)

[0055] O on the right side of formula (7) k According to formula (5), O k The beam current value of a certain subsystem is actually measured, and the four subsystem parameters of formula (2) are adjusted simultaneously. If one of the subsystems is not improved, it will not be updated; if ΔO k_new <ΔO k_old , indicating that the beam current O k The beam current is improved and close to the set target value. The corresponding system parameters are updated. k_new ≥ΔO k_old, indicating that the beam current O k If there is no improvement, keep the original parameters unchanged; the ion source system should also consider the state of arc voltage, so the update conditions of the ion source system are:

[0056] ΔO 1_new +ΔD av_new <ΔO 1_old +ΔD av_old (8)

[0057] Formula (8) takes the ion source subsystem as an example. On the left side of formula (8), ΔO 1_new is the difference between the actual value and the target value of the ion source system beam current after update; ΔD av_new is the difference between the actual value and the target value of the arc voltage supply of the ion source system after update; ΔO on the right side of formula (8) 1_old The difference between the actual value and the target value of the ion source system beam current when the ion source system was last updated, ΔD av_old is the difference between the actual value and the target value of the arc voltage power supply of the ion source system last time; Formula (8) only has ΔD in the ion source subsystem av_new , other subsystems have no ΔD av_new .

[0058] Furthermore, the step 3 performs a rough adjustment on all the alternative solutions D for the beam parameters of all the subsystems to obtain a rough adjustment section beam update solution D i_best , the specific process is as follows:

[0059] i. Judgment If yes, select to perform the early stage of beam coarse adjustment. If not, judge If yes, perform the mid-stage coarse beam adjustment; if no, perform the late-stage coarse beam adjustment;

[0060] ii. Obtain the beam current scheme D in the coarse adjustment stage i : The beam parameter set update condition is shown in formula (9). The updated beam parameter scheme is compared with the previous scheme, and the scheme that is closer to the target beam is selected as the updated beam scheme. The beam scheme D in the coarse adjustment stage i The update conditions are as follows:

[0061]

[0062] Where P1 represents the coarse adjustment stage, D i is the updated i-th beam parameter scheme, is the i-th beam parameter scheme updated using the coarse adjustment strategy, is the beam parameter scheme updated last time, The i-th beam objective function set updated using the coarse adjustment strategy, is the beam objective function set last updated.

[0063] iii. By D i Select the best value D best , where i = 1, 2, ... N;

[0064] iv. Return to step 4.

[0065] Furthermore, if you choose to perform the early stage of beam coarse adjustment, the specific process is as follows:

[0066] In the early stage of beam coarse adjustment, When , the difference evolution strategy is used to iterate the update of the beam parameters. The difference evolution strategy is to update the beam parameters using two random alternatives generated by formula (10), and calculate the difference between the two groups of beam parameters to generate new beam parameters. The update formula is as follows:

[0067]

[0068] in:

[0069] d random_1 =lb j +rand×(ub j -lb j )

[0070] d random_2 =lb j +rand×(ub j -lb j )

[0071] P1 on the left side of formula (10) represents the coarse adjustment stage. represents the beam parameter in the coarse adjustment stage in row i and column j in formula (3); the right side of formula (10) (d random_1 -d random_2 )×R1 represents the difference movement strategy, where d i,j represents the beam parameter of the previous row i and column j in formula (3), d random_1 and d random_2 are generated according to formula (1) within the range of beam parameters. R1 is the random factor of the current strategy, which is a random number between 0 and 1. j andub j The upper and lower bounds of the jth adjusted parameter, respectively, and rand represents a random value between 0 and 1;

[0072] If you choose to perform the mid-term coarse beam adjustment, the specific process is as follows:

[0073] In the middle of the coarse beam adjustment, When , the Brownian motion strategy is used to update the beam parameters. The Brownian motion strategy is to find suitable beam parameters in the vicinity according to the historical best parameter set and update iteratively, and introduce the historical best beam parameter set:

[0074]

[0075] Among them, P1 on the left side of formula (11) represents the coarse adjustment stage, represents the beam parameter in the coarse adjustment stage in row i and column j; the first term d on the right side of the formula best represents the optimal beam parameter in the coarse adjustment stage in row i and column j; the second term on the right side of the formula is exp((t / T)∧4)×(RB-0.5)×(d best -d i,j ) represents the Brownian motion strategy, where d i,j represents the last beam parameter of row i and column j in formula (3), t represents the current number of parameter optimizations, T represents the total number of parameter optimizations of the set algorithm, RB represents the Brownian motion factor, which is a number randomly generated from a standard normal distribution with a mean of 0 and a standard deviation of 1, and exp represents the natural exponential function;

[0076] If you choose to perform the beam coarse adjustment later, the specific process is as follows:

[0077] In the late stage of beam coarse adjustment, In order to reduce the probability of the beam parameters falling into the local optimum and improve the speed and accuracy of parameter optimization, the Levy flight strategy is introduced and a nonlinear factor is added to increase the range of beam convergence. The formula is changed as follows:

[0078]

[0079] P1 on the left side of formula (12) represents the coarse adjustment stage. represents the beam parameter in the coarse adjustment stage in row i and column j; the first term d on the right side of formula (12) best represents the optimal beam parameter in the coarse adjustment stage in row i and column j; the second term on the right side of formula (12) ((1-t / T)∧(2×t / T))×d i,j ×RL represents the Levy flight strategy, where (1-t / T)∧(2×t / T) represents the time range of the mid-term rough adjustment; t represents the current number of parameter optimizations, and T represents the total number of parameter optimizations of the set algorithm; d i,j represents the beam parameter of the previous time in row i and column j in formula (3);

[0080] The RL on the right side of formula (12) represents the flight strategy factor. The nonlinear factor determines the step size and increase or decrease of parameter optimization through the flight distribution function, which is conducive to the beam parameters jumping out of the local optimal solution and finding the global optimal set of beam parameters:

[0081] RL=0.5×Levy (13)

[0082] Where Levy represents the flight distribution function. The weight coefficient 0.5 in the front is to improve the convergence range of the beam parameters and avoid excessive step length causing the beam parameters to exceed their limits. The calculation method of the Levy distribution function is as follows:

[0083]

[0084] In the distribution function of formula (14), s is a fixed constant of 0.01, η is a fixed constant of 1.5, u and v are random numbers between 0 and 1, which are used to control the step size of beam parameter adjustment. The calculation formula of σ is as follows:

[0085]

[0086] Among them, σ on the left side of formula (15) is used to control the step size and direction of the beam parameters; Γ on the right side of formula (15) represents the gamma function. This distribution form increases the extreme change conditions of the beam parameters and helps to find a larger range of beam parameters; η is a fixed constant of 1.5;

[0087] Substitute σ of formula (15) into formula (14), then substitute Levy of formula (14) into formula (13), and then substitute RL of formula (13) into formula (12), thus obtaining the beam parameter of the coarse adjustment stage in row i and column j after coarse adjustment of the current coarse adjustment section in formula (12):

[0088] Furthermore, in step 4, based on the coarse adjustment stage, the alternative schemes in the coarse adjustment stage are adjusted to obtain the optimal scheme D for updating the beam current in the fine adjustment stage. best , the beam current update scheme of the fine adjustment section is as follows:

[0089] 1) Determine rand i Is it > 0.5? If so, use the C1 strategy of formula (16) to update D i If not, update D using the C2 strategy of formula (16) i ;

[0090]

[0091] P2 on the left side of formula (16) represents the fine-tuning stage. represents the beam parameters in the fine-tuning stage in row i and column j; C1 and C2 on the right side of formula (16) are the strategy-updated beam parameters, d best represents the optimal beam parameter in the fine-tuning stage in row i and column j, d i,j represents the beam parameter of the last fine-tuning stage in row i and column j, d randomIt is generated according to formula (1) within the range of beam parameters, t represents the current number of parameter optimizations, and T represents the total number of parameter optimizations of the set algorithm; rand i represents a random number between 0 and 1, which is used for the probability of executing C1 or C2 strategy for the i-th alternative. RB and R2 are numbers randomly generated between 0 and 1 in accordance with the normal distribution, where RB is used to control the increase or decrease of the beam parameters, R2 is the step size of the beam parameters, and K represents the random selection of integers 1 or 2; the probability of occurrence between C1 and C2 is equal;

[0092] 2) Determine whether to use C1 or C2 strategy to update beam parameter D i After that, the beam current is close to the target value. If not, the adaptive controller is executed to update the beam current parameters in the coarse adjustment stage. If so, the Di

[0093] 3) By D i Select the best value D best , where i = 1, 2, ... N;

[0094] 4) Return to step 5.

[0095] Furthermore, the execution of the adaptive controller in step 4 (2) updates the beam parameters in the coarse adjustment stage. Taking the ion source system as an example, the update parameter D IS_new as follows:

[0096] 1)D IS_new =ΔD IS +D IS_best (17)

[0097] D on the left side of formula (17) IS_new is the beam parameter set updated by the ion source system through the proportional controller; ΔD on the right side of formula (17) IS It is obtained by multiplying e1 by the adaptive coefficient of the proportional controller. e1 is the sum of two differences. The first difference is the current optimal ion source beam current O 1_best and the target ion source beam current O 1_target The second difference is the current arc voltage supply voltage value D av_target With the best arc voltage power supply voltage value D av_best The difference between IS_best is the current optimal ion source beam parameter set;

[0098] 2) The first term on the right side of formula (17) is calculated as follows:

[0099] ΔD IS =kp×(1-t / T) 2 ×e1 (18)

[0100] Where kp=±0.05 adjusts the beam parameters of the ion source system from two directions, and takes the beam close to the target value as the updated parameter. t represents the current number of parameter optimizations, and T represents the total number of parameter optimizations of the set algorithm. The (1-t / T) item can control the step size of the algorithm to gradually reduce the optimization beam step size in the later stage.

[0101] 3) Formula (18) e1 is calculated as follows:

[0102] e1=((O 1_target -O 1_bset )+(D av_target -D av_best )) (19)

[0103] Among them, 1_target is the target value of the ion source beam current, O 1_bset The current optimal value of the ion source beam current, D av_target is the target value of the arc current power supply voltage, D av_best is the optimum value of the arc current power supply voltage;

[0104] 4) The ion source beam parameters are updated as follows:

[0105]

[0106] D IS is the beam parameter of the ion source system after the proportional control stage, P2 represents the fine adjustment stage, represents the proportionally adjusted ion source beam current parameter, ΔO 1_new is the difference between the proportionally adjusted ion source beam current and the target beam current, ΔD av_new It is the difference between the arc voltage supply voltage value after proportional adjustment and the target arc voltage supply voltage value, ΔO 1_old is the difference between the ion source beam current and the target beam current during the coarse adjustment phase, ΔD av_old It is the difference between the arc voltage supply voltage value in the coarse adjustment stage and the target arc voltage supply voltage value;

[0107] The process of updating the beam parameters of the other three systems is similar to that of the ion source system. Similarly, D IL , D MA , D BL ;

[0108] 5) D best =[D IS D IL D MA D BL ].

[0109] Advantages and effects of the present invention

[0110] 1. By establishing the automatic beam adjustment model D, not only can all parameters of multiple subsystems be adjusted at the same time, but also multiple alternative schemes i=1, 2, ...N of each subsystem can be adjusted at the same time, which solves the problem that there is a strong coupling relationship between the various systems of the accelerator. When a certain parameter is adjusted, adjusting the subsequent parameters will also affect the previously adjusted parameters.

[0111] 2. By establishing the objective function F, an adjustment target is provided for the coarse adjustment stage and the fine adjustment stage. The present invention sets the target value O of the objective function F to k ' and the actual value O k , and the coarse adjustment stage and the fine adjustment stage are cleverly combined. The actual value of the objective function F is updated each time by coarse adjustment and fine adjustment. k After that, the objective function F performs a new difference calculation, and the cycle repeats until the target value O k ' and the actual value O k The difference is just 0.

[0112] 3. By combining coarse adjustment and fine adjustment, we can achieve high-precision positioning of millisecond-level changes, rapid positioning of millisecond-level changes, and positioning of millisecond-level changes with optimization algorithms, solving the problems that manual beam adjustment is difficult to ensure the effect of beam current due to experience, that manual beam adjustment cannot observe millisecond-level changes, and that manual beam adjustment uses fixed intervals and fixed step sizes, resulting in insufficient adjustment accuracy. Specifically, the result of each coarse adjustment determines the range of the optimal power supply parameters of each of the four subsystems. The fine adjustment stage further screens on the basis of the coarse adjustment to find the optimal power supply parameters in each range. BRIEF DESCRIPTION OF THE DRAWINGS

[0113] Figure 1 This is a flow chart of an accelerator automatic beam adjustment modeling method of the present invention;

[0114] Figure 2 A flow chart of optimizing power supply parameters by a rough adjustment method in the present invention;

[0115] Figure 3 A flow chart of optimizing power supply parameters by fine-tuning method adopted by the present invention;

[0116] Figure 4 This is a schematic diagram of the present invention using an adaptive controller to update beam parameters in the fine-tuning stage. DETAILED DESCRIPTION

[0117] Design principle of the present invention

[0118] 1. Innovation of the present invention: The innovation lies in the organic combination of the automatic beam adjustment model D, the objective function F, the coarse adjustment stage and the fine adjustment stage, which solves four problems of the prior art. First, by establishing the automatic beam adjustment model D, the goal of adjusting the power supply parameters of the four subsystems at the same time is achieved, and the problem that there is a strong coupling relationship between the various systems of the accelerator, and when a certain parameter is adjusted, the adjustment of the subsequent parameters will also affect the previously adjusted parameters. The simultaneous adjustment means that in the coarse adjustment stage of formula (9) to formula (15) and the fine adjustment stage of formula (16) to formula (20), the parameters of the j=1,2,…Dim column representing the four subsystems in formula (3) are adjusted simultaneously; second, by establishing the automatic beam adjustment model D, not only can all parameters of multiple subsystems be adjusted at the same time, but also multiple alternative schemes i=1,2,…N of each subsystem of the multiple subsystems can be adjusted at the same time, which further solves the strong coupling relationship between the various systems of the accelerator. Third, by establishing the objective function F, an adjustment target is provided for the coarse adjustment stage and the fine adjustment stage. The present invention sets the target value O of the objective function F to k ' and the actual value O k , and the coarse adjustment stage and the fine adjustment stage are cleverly combined. The actual value of the objective function F is updated each time by coarse adjustment and fine adjustment. k After that, the objective function F performs a new difference calculation, and the cycle repeats until the target value O k ' and the actual value O k The difference is only 0. Fourth, the coarse adjustment and fine adjustment are organically combined. The result of each coarse adjustment only determines the range of the optimal power supply parameters of each of the four subsystems, but not the specific values. The fine adjustment stage further screens on the basis of the coarse adjustment to find the optimal power supply parameters in each range. The optimal power supply parameters are the power supply parameters that can make the actual beam current value 0 k Closer to the target value O k ' parameters.

[0119] 2. Initial value model D ij Design principle: The first thing to do in the present invention is to establish an automatic beam initialization model D in step 1. ij . Initial value model D ij After expansion, it is in the form of formula (3). Formula (3) has two functions. First, formula (3) is used to assign initial values ​​to all power supply parameters in the matrix of formula (3). Only after the initial values ​​are assigned can the coarse and fine adjustments of steps three and four be performed; the method of assigning initial values ​​adopts formula (1). Second, formula (3) is used to further optimize the parameters that have been assigned initial values ​​in formula (3) during the coarse and fine adjustment stages. The purpose of optimization is to make the actual output beam current O k The value is close to the target value O k Here, the power supply parameters and the actual output beam current Ok There is a corresponding relationship, because the beam current O k There is no way to debug it. You can only debug the power supply parameters. Because the beam current is controlled by the power supply parameters, the actual output beam current can be indirectly adjusted by adjusting the power supply parameters. k purpose.

[0120] 3. Design principle of objective function F: The objective function of the present invention plays a role in connecting the previous and the following. The previous is to introduce the previous model D, and the following is to provide adjustment targets for the subsequent rough adjustment stage and fine adjustment stage. k That is, it is inseparable from model D and the algorithms in the coarse adjustment stage and the fine adjustment stage.

[0121] The objective function F is used to provide the adjustment target for the coarse adjustment stage and the fine adjustment stage, and the target is to make O k -O k 'The difference is close to 0: Make the difference close to 0, that is, the actual beam current value O k Close to target value O k '. The actual beam current value O k Close to target value O k 'It is not to adjust the beam current directly, the beam current O k There is no way to debug, but the power supply parameters and the actual output beam current O k There is a corresponding relationship, so in the coarse adjustment stage and the fine adjustment stage, the actual output beam current O in the objective function F is indirectly adjusted by adjusting the power supply parameters. k purpose.

[0122] Based on the above principles, the present invention designs an accelerator automatic beam tuning modeling method, such as Figure 1-4 As shown, its characteristics are: comprising the following steps:

[0123] An accelerator automatic beam adjustment modeling method is characterized by comprising the following steps:

[0124] Step 1: Establish the automatic beam adjustment initialization model D ij , and assign the initial value model D to it ij The parameters to be adjusted are given initial values, and the total number of power supply parameter optimization times T and the initial number of power supply parameter optimization times t=0 are set;

[0125] Step 2: Establish the objective function F and calculate the target value O k ' and the actual value O k Perform difference calculation;

[0126] Step 3: Let t = t + 1; perform coarse adjustment on all the alternative solutions D for the beam parameters of all subsystems to obtain the coarse adjustment section beam update solution D i_best, the D i_best It is the best alternative among multiple alternatives in the joint debugging of all subsystems;

[0127] Step 4: Based on the coarse adjustment stage, adjust the alternative solutions in the coarse adjustment stage to obtain the optimal beam current update solution D in the fine adjustment stage. i_best ;

[0128] Step 5: Determine whether t=T. If not, return to step 3. If yes, end.

[0129] Furthermore, the step 1 of establishing the accelerator automatic beam adjustment initialization model D ij , and assign the initial value model D to it ij The parameters to be adjusted in are assigned initial values. The specific process is as follows:

[0130] 1) Determine the subsystems whose parameters are to be adjusted, including: ion source subsystem, injection line subsystem, main accelerator subsystem, and beam line subsystem;

[0131] 2) Establish initialization model D ij , the initialization model is as follows:

[0132] D ij =lb j +rand×(ub j -lb j ) i=1,2,…N; j=1,2,…Dim (1)

[0133] In which, i on the left side of formula (1) represents the i-th row in the matrix, j represents the j-th column in the matrix; i = 1, 2, ... N represents that there are N alternatives in the matrix; j = 1, 2, ... Dim represents that each row of the matrix has Dim parameters; lb on the right side of formula (1) j andub j are the upper and lower bounds of the j-th adjusted parameter respectively, and rand represents a random value between 0 and 1.

[0134] Furthermore, the step 1 process 2) of establishing the initial value model D ij , the specific process is as follows:

[0135] i. Determine the beam parameters of all subsystems in all alternative solutions D;

[0136] D=[D IS D IL D MA D BL ] (2)

[0137] Where: D IS D is the ion source parameter subsystem to be adjusted; ILD is the injection line parameter subsystem to be adjusted; MA Main accelerator parameter adjustment subsystem; D BL It is the beam line parameter subsystem to be adjusted;

[0138] ii. Determine the set of parameters to be adjusted for each subsystem D IS , D IL , D MA , D BL ;

[0139] D IS =[D1 D2 D3 D4];

[0140] D IL =[D5 D6…D 12 ];

[0141] D MA =[D 13 D 14 …D 18 ];

[0142] D BL =[D 19 D 20 …D 24 ];

[0143] Where: D IS D is a parameter set of N rows and 4 columns to be adjusted for the ion source subsystem; IL D is the parameter set to be adjusted for the injection line subsystem with N rows and 8 columns; MA The parameter set to be adjusted is N rows and 6 columns of the main accelerator subsystem; D BL is a set of parameters to be adjusted for a beam line subsystem with N rows and 6 columns; N is N alternative solutions for each subsystem;

[0144] iii. Determine the adjustment parameters of each subsystem:

[0145] D IS There are four adjustment parameters for the ion source system: filament power supply current (A), arc voltage power supply current (A), anode power supply voltage (kV), and plasma power supply voltage (kV);

[0146] D IL There are 8 adjustment parameters of the injection line system: 1X guide magnet power supply current (A), 1Y guide magnet power supply current (A), 2X guide magnet power supply current (A), 2Y guide magnet power supply current (A), injection line upper solenoid power supply voltage (V), injection line upper solenoid power supply current (A), injection line lower solenoid power supply voltage (V), injection line lower solenoid power supply current (A);

[0147] D MAThere are six adjustment parameters for the main accelerator system: positive deflection plate power supply voltage (kV), positive deflection plate power supply current (mA), negative deflection plate power supply voltage (kV), negative deflection plate power supply current (mA), main magnet power supply voltage (V), main magnet power supply current (A);

[0148] D BL There are 6 adjustment parameters of the beam line system: beam line X guide power supply current (A), beam line Y guide power supply current (A), beam line four-stage lens power supply current 1 (A), beam line four-stage lens power supply current 2 (A), rotating magnet power supply voltage (V), rotating magnet power supply voltage (A);

[0149] iv. Determine the total parameters to be adjusted D of each subsystem MA

[0150] There are 24 adjustment parameters for all subsystems, ie, Dim=24.

[0151] Furthermore, the subsystems of formula (2) are expanded to form all the alternative solutions D of the beam parameters of all the subsystems in N rows and Dim columns as follows:

[0152]

[0153] Among them, d i represents the ith alternative, d i,j Represents the value of the j-th beam parameter to be optimized for the ith alternative.

[0154] Furthermore, the objective function F is established in step 2, and the target value O k ' and the actual value O k The difference calculation is as follows:

[0155]

[0156] Among them, F on the left side of formula (4) represents the objective function, and D on the right side of formula (4) i represents the i-th alternative of the four subsystems. The O on the right side of formula (4) k represents the current actual beam output value of the kth subsystem of the ith alternative according to formula (2), O k ' represents the ideal target beam value of the kth subsystem of the ith alternative, k = 1, 2, 3, 4 represent the ion source beam, internal target beam, stripping target beam, beryllium target beam respectively; F i represents the ideal beam current value O of the ith alternative k ' and the actual beam current value O k The difference between

[0157] In formula (4), only the ion source subsystem has ΔDav , other subsystems have no ΔD av .

[0158] Furthermore, the O of formula (4) k 'The calculation is as follows:

[0159] When k in formula (4) = 1, 2, 3, 4,

[0160] O4'=α1O1'=α2O2'=α3O3' (5)

[0161] Among them, O4' is the known target beam current, that is, the beryllium target beam current, α1, α2, α3 are the known engineering debugging experience of the accelerator and the transmission efficiency of each level, and the sizes of other beam target values ​​O1', O2', O3' are calculated based on the known O4' and α1, α2, α3; among them, O1' represents the target value of the ion source beam current, O2' represents the target value of the internal target beam current, and O3' represents the target value of the stripping target beam current;

[0162] The ΔD of formula (4) av The calculation is as follows:

[0163] ΔD av =(D av -D av ') (6)

[0164] D on the right side of formula (6) av is the actual voltage value of the current arc voltage power supply, D av 'The target voltage value of the arc voltage power supply; set the target voltage value of the arc voltage power supply according to engineering experience D av ' = 120;

[0165] The O of formula (4) k -O k 'The calculation is as follows:

[0166] ΔO k =O k -O k ' (7)

[0167] O on the right side of formula (7) k According to formula (5), O k The beam current value of a certain subsystem is actually measured, and the four subsystem parameters of formula (2) are adjusted simultaneously. If one of the subsystems is not improved, it will not be updated; if ΔO k_new <ΔO k_old , indicating that the beam current O k The beam current is improved and close to the set target value. The corresponding system parameters are updated. k_new ≥ΔO k_old, indicating that the beam current O k If there is no improvement, keep the original parameters unchanged; the ion source system should also consider the state of arc voltage, so the update conditions of the ion source system are:

[0168] ΔO 1_new +ΔD av_new <ΔO 1_old +ΔD av_old (8)

[0169] Formula (8) takes the ion source subsystem as an example. On the left side of formula (8), ΔO 1_new is the difference between the actual value and the target value of the ion source system beam current after update; ΔD av_new is the difference between the actual value and the target value of the arc voltage supply of the ion source system after update; ΔO on the right side of formula (8) 1_old The difference between the actual value and the target value of the ion source system beam current when the ion source system was last updated, ΔD av_old is the difference between the actual value and the target value of the arc voltage power supply of the ion source system last time; Formula (8) only has ΔD in the ion source subsystem av_new , other subsystems have no ΔD av_new .

[0170] Furthermore, the step 3 performs a rough adjustment on all the alternative solutions D for the beam parameters of all the subsystems to obtain a rough adjustment section beam update solution D i_best , the specific process is as follows:

[0171] i. Judgment If yes, select to perform the early stage of beam coarse adjustment. If not, judge If yes, perform the mid-stage coarse beam adjustment; if no, perform the late-stage coarse beam adjustment;

[0172] ii. Obtain the beam current scheme D in the coarse adjustment stage i : The beam parameter set update condition is shown in formula (9). The updated beam parameter scheme is compared with the previous scheme, and the scheme that is closer to the target beam is selected as the updated beam scheme. The beam scheme D in the coarse adjustment stage i The update conditions are as follows:

[0173]

[0174] Where P1 represents the coarse adjustment stage, D i is the updated i-th beam parameter scheme, is the i-th beam parameter scheme updated using the coarse adjustment strategy, is the beam parameter scheme updated last time, The i-th beam objective function set updated using the coarse adjustment strategy, is the beam objective function set last updated.

[0175] iii. By D i Select the best value D best , where i = 1, 2, ... N;

[0176] iv. Return to step 4.

[0177] Furthermore, if you choose to perform the early stage of beam coarse adjustment, the specific process is as follows:

[0178] In the early stage of beam coarse adjustment, When , the difference evolution strategy is used to iterate the update of the beam parameters. The difference evolution strategy is to update the beam parameters using two random alternatives generated by formula (10), and calculate the difference between the two groups of beam parameters to generate new beam parameters. The update formula is as follows:

[0179]

[0180] in:

[0181] d random_1 =lb j +rand×(ub j -lb j )

[0182] d random_2 =lb j +rand×(ub j -lb j )

[0183] P1 on the left side of formula (10) represents the coarse adjustment stage. represents the beam parameter in the coarse adjustment stage in row i and column j in formula (3); the right side of formula (10) (d random_1 -d random_2 )×R1 represents the difference movement strategy, where d i,j represents the beam parameter of the previous row i and column j in formula (3), d random_1 and d random_2 are generated according to formula (1) within the range of beam parameters. R1 is the random factor of the current strategy, which is a random number between 0 and 1. j andub j The upper and lower bounds of the jth adjusted parameter, respectively, and rand represents a random value between 0 and 1;

[0184] If you choose to perform the mid-term coarse beam adjustment, the specific process is as follows:

[0185] In the middle of the coarse beam adjustment, When , the Brownian motion strategy is used to update the beam parameters. The Brownian motion strategy is to find suitable beam parameters in the vicinity according to the historical best parameter set and update iteratively, and introduce the historical best beam parameter set:

[0186]

[0187] Among them, P1 on the left side of formula (11) represents the coarse adjustment stage, represents the beam parameter in the coarse adjustment stage in row i and column j; the first term d on the right side of the formula best represents the optimal beam parameter in the coarse adjustment stage in row i and column j; the second term on the right side of the formula is exp((t / T)∧4)×(RB-0.5)×(d best -d i,j ) represents the Brownian motion strategy, where d i,j represents the last beam parameter of row i and column j in formula (3), t represents the current number of parameter optimizations, T represents the total number of parameter optimizations of the set algorithm, RB represents the Brownian motion factor, which is a number randomly generated from a standard normal distribution with a mean of 0 and a standard deviation of 1, and exp represents the natural exponential function;

[0188] If you choose to perform the beam coarse adjustment later, the specific process is as follows:

[0189] In the late stage of beam coarse adjustment, In order to reduce the probability of the beam parameters falling into the local optimum and improve the speed and accuracy of parameter optimization, the Levy flight strategy is introduced and a nonlinear factor is added to increase the range of beam convergence. The formula is changed as follows:

[0190]

[0191] P1 on the left side of formula (12) represents the coarse adjustment stage. represents the beam parameter in the coarse adjustment stage in row i and column j; the first term d on the right side of formula (12) best represents the optimal beam parameter in the coarse adjustment stage in row i and column j; the second term on the right side of formula (12) ((1-t / T)∧(2×t / T))×d i,j ×RL means Flight strategy, where (1-t / T)∧(2×t / T) represents the time range of the mid-term rough adjustment; t represents the current number of parameter optimizations, and T represents the total number of parameter optimizations of the set algorithm; d i,j represents the beam parameter of the previous time in row i and column j in formula (3);

[0192] The RL on the right side of formula (12) represents the flight strategy factor. The nonlinear factor determines the step size and increase or decrease of parameter optimization through the flight distribution function, which is conducive to the beam parameters jumping out of the local optimal solution and finding the global optimal set of beam parameters:

[0193] RL=0.5×Levy (13)

[0194] Where Levy represents the flight distribution function. The weight coefficient 0.5 in the front is to improve the convergence range of the beam parameters and avoid excessive step length causing the beam parameters to exceed their limits. The calculation method of the Levy distribution function is as follows:

[0195]

[0196] In the distribution function of formula (14), s is a fixed constant of 0.01, η is a fixed constant of 1.5, u and v are random numbers between 0 and 1, which are used to control the step size of beam parameter adjustment. The calculation formula of σ is as follows:

[0197]

[0198] Among them, σ on the left side of formula (15) is used to control the step size and direction of the beam parameters; Γ on the right side of formula (15) represents the gamma function. This distribution form increases the extreme change conditions of the beam parameters and helps to find a larger range of beam parameters; η is a fixed constant of 1.5;

[0199] Substitute σ of formula (15) into formula (14), then substitute Levy of formula (14) into formula (13), and then substitute RL of formula (13) into formula (12), thus obtaining the beam parameter of the coarse adjustment stage in row i and column j after coarse adjustment of the current coarse adjustment section in formula (12):

[0200] Furthermore, in step 4, based on the coarse adjustment stage, the alternative schemes in the coarse adjustment stage are adjusted to obtain the optimal scheme D for updating the beam current in the fine adjustment stage. best , the beam current update scheme of the fine adjustment section is as follows:

[0201] 1) Determine rand i Is it > 0.5? If so, use the C1 strategy of formula (16) to update D i If not, update D using the C2 strategy of formula (16) i ;

[0202]

[0203] P2 on the left side of formula (16) represents the fine-tuning stage. represents the beam parameters in the fine-tuning stage in row i and column j; C1 and C2 on the right side of formula (16) are the strategy-updated beam parameters, d best represents the optimal beam parameter in the fine-tuning stage in row i and column j, d i,j represents the beam parameter of the last fine-tuning stage in row i and column j, drandom It is generated according to formula (1) within the range of beam parameters, t represents the current number of parameter optimizations, and T represents the total number of parameter optimizations of the set algorithm; rand i represents a random number between 0 and 1, which is used for the probability of executing C1 or C2 strategy for the i-th alternative. RB and R2 are numbers randomly generated between 0 and 1 in accordance with the normal distribution, where RB is used to control the increase or decrease of the beam parameters, R2 is the step size of the beam parameters, and K represents the random selection of integers 1 or 2; the probability of occurrence between C1 and C2 is equal;

[0204] 2) Determine whether to use C1 or C2 strategy to update beam parameter D i After that, the beam current is close to the target value. If not, the adaptive controller is executed to update the beam current parameters in the coarse adjustment stage. If so, the Di

[0205] 3) By D i Select the best value D best , where i = 1, 2, ... N;

[0206] 4) Return to step 5.

[0207] Furthermore, the execution of the adaptive controller in step 4 (2) updates the beam parameters in the coarse adjustment stage. Taking the ion source system as an example, the update parameter D IS_new as follows:

[0208] 1)D IS_new =ΔD IS +D IS_best (17)

[0209] D on the left side of formula (17) IS_new is the beam parameter set updated by the ion source system through the proportional controller; ΔD on the right side of formula (17) IS It is obtained by multiplying e1 by the adaptive coefficient of the proportional controller. e1 is the sum of two differences. The first difference is the current optimal ion source beam current O 1_best and the target ion source beam current O 1_target The second difference is the current arc voltage supply voltage value D av_target With the best arc voltage power supply voltage value D av_best The difference between IS_best It is the current optimal ion source beam parameter set;

[0210] 2) The first term on the right side of formula (17) is calculated as follows:

[0211] ΔD IS =kp×(1-t / T) 2 ×e1 (18)

[0212] Where kp=±0.05 adjusts the beam parameters of the ion source system from two directions, and takes the beam close to the target value as the updated parameter. t represents the current number of parameter optimizations, and T represents the total number of parameter optimizations of the set algorithm. The (1-t / T) item can control the step size of the algorithm to gradually reduce the optimization beam step size in the later stage.

[0213] 3) Formula (18) e1 is calculated as follows:

[0214] e1=((O 1_target -O 1_bset )+(D av_target -D av_best )) (19)

[0215] Among them, 1_target is the target value of the ion source beam current, O 1_bset The current optimal value of the ion source beam current, D av_target is the target value of arc current power supply voltage, D av_best is the optimum value of the arc current power supply voltage;

[0216] 4) The ion source beam parameters are updated as follows:

[0217]

[0218] D IS is the beam parameter of the ion source system after the proportional control stage, P2 represents the fine adjustment stage, represents the proportionally adjusted ion source beam current parameter, ΔO 1_new is the difference between the proportionally adjusted ion source beam current and the target beam current, ΔD av_new It is the difference between the arc voltage supply voltage value after proportional adjustment and the target arc voltage supply voltage value, ΔO 1_old is the difference between the ion source beam current and the target beam current during the coarse adjustment phase, ΔD av_old It is the difference between the arc voltage supply voltage value in the coarse adjustment stage and the target arc voltage supply voltage value;

[0219] The process of updating the beam parameters of the other three systems is similar to that of the ion source system. Similarly, D IL , D MA , D BL ;

[0220] 5) D best =[D IS D IL D MA D BL ].

[0221] The above contents are merely examples and explanations of the concept of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.

Claims

1. A method for modeling automatic beam adjustment of an accelerator, characterized in that: The following steps are involved: Step 1: Establish the automatic beam initialization model D ij , and assign the initial value model D to it ij The parameters to be adjusted are given initial values, and the total number of power supply parameter optimization times T and the initial number of power supply parameter optimization times t=0 are set; Step 2: Establish the objective function F and calculate the target value O k ' and the actual value O k Perform difference calculation; Step 3: Let t = t + 1; perform coarse adjustment on all the alternative solutions D for the beam parameters of all subsystems to obtain the coarse adjustment section beam update solution D i_best , the D i_best It is the best alternative among multiple alternatives in the joint debugging of all subsystems; Step 4: Based on the coarse adjustment stage, adjust the alternative solutions in the coarse adjustment stage to obtain the optimal beam current update solution D in the fine adjustment stage. i_best ; Step 5: Determine whether t=T. If not, return to step 3. If yes, end.

2. The accelerator automatic beam tuning modeling method according to claim 1, characterized in that: The step 1 is to establish the accelerator automatic beam adjustment initialization model D ij , and assign the initial value model D to it ij The parameters to be adjusted in are assigned initial values. The specific process is as follows: 1) Determine the subsystems whose parameters are to be adjusted, including: ion source subsystem, injection line subsystem, main accelerator subsystem, and beam line subsystem; 2) Establish initialization model D ij , the initialization model is as follows: D ij =lb j +rand×(ub j -lb j )i=1,2,…N;j=1,2,…Dim (1) In which, i on the left side of formula (1) represents the i-th row in the matrix, j represents the j-th column in the matrix; i = 1, 2, ... N represents that there are N alternatives in the matrix; j = 1, 2, ... Dim represents that each row of the matrix has Dim parameters; lb on the right side of formula (1) j andub j are the upper and lower bounds of the j-th adjusted parameter respectively, and rand represents a random value between 0 and 1.

3. The accelerator automatic beam tuning modeling method according to claim 2, characterized in that: The step 1 process 2) is to establish the initial value model D ij , the specific process is as follows: i. Determine the beam parameters of all subsystems in all alternative solutions D; D=[D IS D IL D MA D BL ] (2) Where: D IS D is the ion source parameter subsystem to be adjusted; IL D is the injection line parameter subsystem to be adjusted; MA Main accelerator parameter adjustment subsystem; D BL It is the beam line parameter subsystem to be adjusted; ii. Determine the set of parameters to be adjusted for each subsystem D IS , D IL , D MA , D BL ; D IS [D1 D2 D3 D4]: D IL =[D5 D6…D 12 ]; D MA =[D 13 D 14 …D 18 ]; D BL =[D 19 D 20 …D 24 ]; Where: D IS D is a parameter set of N rows and 4 columns to be adjusted for the ion source subsystem; IL D is the parameter set to be adjusted for the injection line subsystem with N rows and 8 columns; MA The parameter set to be adjusted is N rows and 6 columns of the main accelerator subsystem; D BL is a set of parameters to be adjusted for a beam line subsystem with N rows and 6 columns; N is N alternative solutions for each subsystem; iii. Determine the adjustment parameters of each subsystem: D IS There are four adjustment parameters for the ion source system: filament power supply current (A), arc voltage power supply current (A), anode power supply voltage (kV), and plasma power supply voltage (kV); D IL There are 8 adjustment parameters of the injection line system: 1X guide magnet power supply current (A), 1Y guide magnet power supply current (A), 2X guide magnet power supply current (A), 2Y guide magnet power supply current (A), injection line upper solenoid power supply voltage (V), injection line upper solenoid power supply current (A), injection line lower solenoid power supply voltage (V), injection line lower solenoid power supply current (A); D MA There are six adjustment parameters for the main accelerator system: positive deflection plate power supply voltage (kV), positive deflection plate power supply current (mA), negative deflection plate power supply voltage (kV), negative deflection plate power supply current (mA), main magnet power supply voltage (V), main magnet power supply current (A); D BL There are 6 adjustment parameters of the beam line system: beam line X guide power supply current (A), beam line Y guide power supply current (A), beam line four-stage lens power supply current 1 (A), beam line four-stage lens power supply current 2 (A), rotating magnet power supply voltage (V), rotating magnet power supply voltage (A); iv. Determine the total parameters to be adjusted D of each subsystem MA There are 24 adjustment parameters for all subsystems, ie, Dim=24.

4. The accelerator automatic beam tuning modeling method according to claim 3, characterized in that: Expand each subsystem of formula (2) to form all alternative solutions D of beam parameters of all subsystems with N rows and Dim columns as follows: Among them, d i represents the ith alternative, d i,j Represents the value of the j-th beam parameter to be optimized for the ith alternative.

5. The accelerator automatic beam tuning modeling method according to claim 1, characterized in that: The step 2 is to establish the objective function F, and to calculate the target value O. k ' and the actual value O k The difference calculation is as follows: Among them, F on the left side of formula (4) represents the objective function, and D on the right side of formula (4) i represents the i-th alternative of the four subsystems. The O on the right side of formula (4) k represents the current actual beam output value of the kth subsystem of the ith alternative according to formula (2), O k ' represents the ideal target beam value of the kth subsystem of the ith alternative, k = 1, 2, 3, 4 represent the ion source beam, internal target beam, stripping target beam, beryllium target beam respectively; F i represents the ideal beam current value O of the ith alternative k ' and the actual beam current value O k The difference between In formula (4), only the ion source subsystem has ΔD av , other subsystems have no ΔD av .

6. The accelerator automatic beam tuning modeling method according to claim 5, characterized in that: The O of formula (4) k 'The calculation is as follows: When k in formula (4) = 1, 2, 3, 4, O4'=α1O1'=α2O2'=α3O3' (5) Among them, O4' is the known target beam current, that is, the beryllium target beam current, α1, α2, α3 are the known engineering debugging experience of the accelerator and the transmission efficiency of each level, and the sizes of other beam target values ​​O1', O2', O3' are calculated based on the known O4' and α1, α2, α3; among them, O1' represents the target value of the ion source beam current, O2' represents the target value of the internal target beam current, and O3' represents the target value of the stripping target beam current; The ΔD of formula (4) av The calculation is as follows: ΔD av =(D av -D av ') (6) D on the right side of formula (6) av is the actual voltage value of the current arc voltage power supply, D av 'The target voltage value of the arc voltage power supply; set the target voltage value of the arc voltage power supply according to engineering experience D av ' = 120; The O of formula (4) k -O k 'The calculation is as follows: ΔO k =O k -Oh k ' (7) O on the right side of formula (7) k According to formula (5), O k The beam current value of a certain subsystem is actually measured, and the four subsystem parameters of formula (2) are adjusted simultaneously. If one of the subsystems is not improved, it will not be updated; if ΔO k_new <ΔO k_old , indicating that the beam current O k The beam current is improved and close to the set target value. The corresponding system parameters are updated. k_new ≥ΔO k_old , indicating that the beam current O k If there is no improvement, keep the original parameters unchanged; the ion source system should also consider the state of arc voltage, so the update conditions of the ion source system are: ΔO 1_new +ΔD av_new <ΔO 1_old +ΔD av_ old (8) Formula (8) takes the ion source subsystem as an example. On the left side of formula (8), ΔO 1_new is the difference between the actual value and the target value of the ion source system beam current after update; ΔD av_new is the difference between the actual value and the target value of the arc voltage supply of the ion source system after update; ΔO on the right side of formula (8) 1_old The difference between the actual value and the target value of the ion source system beam current when the ion source system was last updated, ΔD av_old is the difference between the actual value and the target value of the arc voltage power supply of the ion source system last time; Formula (8) only has ΔD in the ion source subsystem av_new , other subsystems have no ΔD av_new .

7. The accelerator automatic beam tuning modeling method according to claim 1, characterized in that: The step 3 performs a rough adjustment on all the alternative solutions D for the beam parameters of all the subsystems to obtain a rough adjustment section beam update solution D i_best , the specific process is as follows: i. Judgment If yes, select to perform the early stage of beam coarse adjustment. If not, judge If yes, perform the mid-stage coarse beam adjustment; if no, perform the late-stage coarse beam adjustment; ii. Obtain the beam current scheme D in the coarse adjustment stage i : The beam parameter set update condition is shown in formula (9). The updated beam parameter scheme is compared with the previous scheme, and the scheme that is closer to the target beam is selected as the updated beam scheme. The beam scheme D in the coarse adjustment stage i The update conditions are as follows: Where P1 represents the coarse adjustment stage, D i is the updated i-th beam parameter scheme, is the i-th beam parameter scheme updated using the coarse adjustment strategy, is the last updated beam parameter scheme, F i new,p1 The i-th beam objective function set updated using the coarse adjustment strategy, F i old is the beam objective function set last updated. iii. By D i Select the best value D best , where i = 1, 2, ... N; iv. Return to step 4.

8. The accelerator automatic beam tuning modeling method according to claim 7, characterized in that: If you choose to perform the early stage of beam coarse adjustment, the specific process is as follows: In the early stage of beam coarse adjustment, When , the difference evolution strategy is used to iterate the update of the beam parameters. The difference evolution strategy is to update the beam parameters using two random alternatives generated by formula (10), and calculate the difference between the two groups of beam parameters to generate new beam parameters. The update formula is as follows: in: <h2 style=";text-align:left;direction:ltr">d<h2 style=";text-align:left;direction:ltr"> random_1 <h2 style=";text-align:left;direction:ltr"> =lb<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> +rand×(ub<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> -lb<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> ) <h2 style=";text-align:left;direction:ltr">d<h2 style=";text-align:left;direction:ltr"> random_2 <h2 style=";text-align:left;direction:ltr"> =lb<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> +rand×(ub<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> -lb<h2 style=";text-align:left;direction:ltr"> j <h2 style=";text-align:left;direction:ltr"> ) P1 on the left side of formula (10) represents the coarse adjustment stage. represents the beam parameter in the coarse adjustment stage in row i and column j in formula (3); the right side of formula (10) (d random_1 -d random_2 )×R1 represents the difference movement strategy, where d i,j represents the beam parameter of the previous row i and column j in formula (3), d random_1 and d random_2 are generated according to formula (1) within the range of beam parameters. R1 is the random factor of the current strategy, which is a random number between 0 and 1. j andub j The upper and lower bounds of the jth adjusted parameter, respectively, and rand represents a random value between 0 and 1; If you choose to perform the mid-term coarse beam adjustment, the specific process is as follows: In the middle of the coarse beam adjustment, When , the Brownian motion strategy is used to update the beam parameters. The Brownian motion strategy is to find suitable beam parameters in the vicinity according to the historical best parameter set and update iteratively, and introduce the historical best beam parameter set: Among them, P1 on the left side of formula (11) represents the coarse adjustment stage, represents the beam parameter in the coarse adjustment stage in row i and column j; the first term d on the right side of the formula best represents the optimal beam parameter in the coarse adjustment stage in row i and column j; the second term on the right side of the formula is exp((t / T)∧4)×(RB-0.5)×(d best -d i,j ) represents the Brownian motion strategy, where d i,j represents the last beam parameter of row i and column j in formula (3), t represents the current number of parameter optimizations, T represents the total number of parameter optimizations of the set algorithm, RB represents the Brownian motion factor, which is a number randomly generated from a standard normal distribution with a mean of 0 and a standard deviation of 1, and exp represents the natural exponential function; If you choose to perform the beam coarse adjustment later, the specific process is as follows: In the late stage of beam coarse adjustment, In order to reduce the probability of the beam parameters falling into the local optimum and improve the speed and accuracy of parameter optimization, the Levy flight strategy is introduced and a nonlinear factor is added to increase the range of beam convergence. The formula is changed as follows: P1 on the left side of formula (12) represents the coarse adjustment stage. represents the beam parameter in the coarse adjustment stage in row i and column j; the first term d on the right side of formula (12) best represents the optimal beam parameter in the coarse adjustment stage in row i and column j; the second term on the right side of formula (12) ((1-t / T)∧(2×t / T))×d i,j ×RL represents the L ev flight strategy, where (1-t / T)∧(2×t / T) represents the time range of the mid-term coarse adjustment; t represents the current number of parameter optimizations, and T represents the total number of parameter optimizations of the set algorithm; d i,j represents the beam parameter of the previous time in row i and column j in formula (3); The RL on the right side of formula (12) represents the flight strategy factor. The nonlinear factor determines the step size and increase or decrease of parameter optimization through the flight distribution function, which is conducive to the beam parameters jumping out of the local optimal solution and finding the global optimal set of beam parameters: RL=0.5×Levy (13) Where Levy represents the flight distribution function. The weight coefficient 0.5 in the front is to improve the convergence range of the beam parameters and avoid excessive step length causing the beam parameters to exceed their limits. The calculation method of the Levy distribution function is as follows: In the distribution function of formula (14), s is a fixed constant of 0.01, η is a fixed constant of 1.5, u and v are random numbers between 0 and 1, which are used to control the step size of beam parameter adjustment. The calculation formula of σ is as follows: Among them, σ on the left side of formula (15) is used to control the step size and direction of the beam parameters; Γ on the right side of formula (15) represents the gamma function. This distribution form increases the extreme change conditions of the beam parameters and helps to find a larger range of beam parameters; η is a fixed constant of 1.5; Substitute σ of formula (15) into formula (14), then substitute Levy of formula (14) into formula (13), and then substitute RL of formula (13) into formula (12), thus obtaining the beam parameter of the coarse adjustment stage in row i and column j after coarse adjustment of the current coarse adjustment section in formula (12):

9. The accelerator automatic beam tuning modeling method according to claim 1, characterized in that: In step 4, based on the coarse adjustment stage, the alternative solutions in the coarse adjustment stage are adjusted to obtain the optimal solution D for updating the beam current in the fine adjustment stage. best , the beam current update scheme of the fine adjustment section is as follows: 1) Determine rand i Is it > 0.5? If so, use the C1 strategy of formula (16) to update D i If not, update D using the C2 strategy of formula (16) i ; P2 on the left side of formula (16) represents the fine-tuning stage. represents the beam parameters in the fine-tuning stage in row i and column j; C1 and C2 on the right side of formula (16) are the strategy-updated beam parameters, d best represents the optimal beam parameter in the fine-tuning stage in row i and column j, d i,j represents the beam parameter of the last fine-tuning stage in row i and column j, d random It is generated according to formula (1) within the range of beam parameters, t represents the current number of parameter optimizations, and T represents the total number of parameter optimizations of the set algorithm; rand i represents a random number between 0 and 1, which is used for the probability of executing C1 or C2 strategy for the i-th alternative. RB and R2 are numbers randomly generated between 0 and 1 in accordance with the normal distribution, where RB is used to control the increase or decrease of the beam parameters, R2 is the step size of the beam parameters, and K represents the random selection of integers 1 or 2; the probability of occurrence between C1 and C2 is equal; 2) Determine whether to use C1 or C2 strategy to update beam parameter D i After that, the beam current is close to the target value. If not, the adaptive controller is executed to update the beam current parameters in the coarse adjustment stage. If so, the Di 3) By D i Select the best value D best , where i = 1, 2, ... N; 4) Return to step 5.

10. The accelerator automatic beam tuning modeling method according to claim 9, characterized in that: The execution of step 4 process 2) is to perform the adaptive controller to update the beam parameters in the coarse adjustment stage. Taking the ion source system as an example, the update parameter D IS_new as follows: 1)D IS_new =ΔD IS +D IS_best (17) D on the left side of formula (17) IS_new is the beam parameter set updated by the ion source system through the proportional controller; ΔD on the right side of formula (17) IS It is obtained by multiplying e1 by the adaptive coefficient of the proportional controller. e1 is the sum of two differences. The first difference is the current optimal ion source beam current O 1_best and the target ion source beam current O 1_target The second difference is the current arc voltage supply voltage value D av_target With the best arc voltage power supply voltage value D av_best The difference between IS_best is the current optimal ion source beam parameter set; 2) The first term on the right side of formula (17) is calculated as follows: ΔD IS =kp×(1-t / T) 2 ×e1 (18) Where kp=±0.05 adjusts the beam parameters of the ion source system from two directions, and takes the beam close to the target value as the updated parameter. t represents the current number of parameter optimizations, and T represents the total number of parameter optimizations of the set algorithm. The (1-t / T) item can control the step size of the algorithm to gradually reduce the optimization beam step size in the later stage. 3) Formula (18) e1 is calculated as follows: e1=((O 1_target -Oh 1_bset )+(D av_target -D av_best )) (19) Among them, 1_target is the target value of the ion source beam current, O 1_bset The current optimal value of the ion source beam current, D av_target is the target value of the arc current power supply voltage, D av_best is the optimum value of the arc current power supply voltage; 4) The ion source beam parameters are updated as follows: D IS is the beam parameter of the ion source system after the proportional control stage, P2 represents the fine adjustment stage, represents the proportionally adjusted ion source beam current parameter, ΔO 1_new is the difference between the proportionally adjusted ion source beam current and the target beam current, ΔD av_new It is the difference between the arc voltage supply voltage value after proportional adjustment and the target arc voltage supply voltage value, ΔO 1_old is the difference between the ion source beam current and the target beam current during the coarse adjustment phase, ΔD av_old It is the difference between the arc voltage supply voltage value in the coarse adjustment stage and the target arc voltage supply voltage value; The process of updating the beam parameters of the other three systems is similar to that of the ion source system. Similarly, D IL , D MA , D BL ; 5)D best =[D IS D IL D MA D BL ]。

Citation Information

Patent Citations

  • Accelerator beam position diagnosis system and accelerator beam position diagnosis method based on eight-octant probe distribution

    CN105467423A

  • Radial target beam intensity and position synchronization system and method for cyclotron

    CN109413834A

  • Optimization method and optimization device for beam shaping device

    CN115130322A