Optimization method, device and equipment of magnetic suspension planar motor and storage medium
Through the combination of quantum coding technology and linear force prediction model, the coil and permanent magnet parameters of magnetic levitation plane motors are optimized, which solves the problem of insufficient coordination of geometric parameters in the existing technology, achieves higher energy utilization and lower energy consumption, and improves equipment performance.
Patent Information
- Application Number
- CN202411928473.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2044-12-25
AI Technical Summary
The geometric parameters between the existing magnetic levitation plane motor coil and permanent magnet have not been fully optimized, resulting in a low magnetic field utilization rate and the inability to fully utilize the performance potential of the suspension system, which limits the further improvement of equipment performance.
By pre-training the linear force prediction model based on quantum encoding technology, the initial quantum encoding is generated and the measurement is performed, the search direction is determined, the left and right antenna encodings are updated, the fitness values are obtained, and the iterative optimization is achieved until the iteration stop condition is met, and the optimal solution is output.
The optimal solution is realized to quickly obtain coil and permanent magnet parameters, improve the energy utilization rate of magnetic levitation plane motors, reduce working energy consumption, optimize the motor structure size, and thus improve overall performance.
Smart Images

Figure CN119940091A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of structural optimization, and in particular to an optimization method, device, equipment and storage medium for a magnetically suspended planar motor. Background Art
[0002] The magnetic levitation planar motor is a high-precision motion control device that uses electromagnetic force to achieve non-contact suspension and drive. By precisely controlling the electromagnetic field, the device can make the moving body suspend on the working plane and realize multi-degree-of-freedom motion control. Multi-degree-of-freedom motion usually covers x- and y-direction motion within the plane and z-axis rotation. Thanks to its high precision, frictionless, low noise and other characteristics, the magnetic levitation planar motor has been widely used in semiconductor manufacturing, precision machining, medical equipment, aerospace and other fields.
[0003] In the typical structure of a magnetic levitation planar motor, electrical energy is converted into kinetic energy of the mover through the interaction between the motor rotor coil array and the magnet array; depending on the structure, it can be divided into two designs: moving magnet steel type and planar moving coil type; the moving magnet steel type design installs the permanent magnet array on the mover, and the coil array on the stator; on the contrary, the moving coil type design installs the coil array on the mover; in the moving magnet steel type planar motor, the mover magnet is the core component, and its structural design directly affects the performance of the equipment; in addition to the mover magnet, the design of the stator coil is also crucial to the performance of the planar motor; the geometric parameters of the coil and the permanent magnet (such as size ratio and gap size) directly determine the utilization rate of the magnetic field and the driving efficiency.
[0004] However, current research and innovation on magnetic levitation planar motors mainly focus on structural design, weight reduction, position detection and optimization of control methods, while research on the optimization of the geometric parameter coordination between coils and permanent magnets is still insufficient; this leads to the failure to fully optimize the geometric coordination between coils and permanent magnets, which in turn results in low magnetic field utilization, making it impossible to fully tap the performance potential of the levitation system, limiting further improvement in equipment performance. Summary of the invention
[0005] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide an optimization method for a magnetic levitation planar motor, which can quickly obtain the optimal solution for the coil parameters to be optimized and the permanent magnet parameters to be optimized, thereby achieving the goal of improving energy utilization and optimizing the structural size of the planar motor.
[0006] The first aspect of the present invention provides an optimization method for a magnetic levitation planar motor, comprising: pre-training a linear force prediction model based on coil parameters and permanent magnet parameters; generating an initial quantum code based on the coil parameters to be optimized and the permanent magnet parameters to be optimized, and measuring the initial quantum code to obtain an initial binary code; obtaining a preset optimal position, determining a search direction according to the initial binary code and the preset optimal position, and updating a preset left antenna code and a right antenna code based on the determined search direction using a preset update rule; measuring the updated left antenna code and the updated right antenna code respectively to obtain a left binary code and a right binary code, and based on the left binary code and the right binary code The invention relates to a method for obtaining a left fitness value and a right fitness value by using a coding and a linear force prediction model; based on the left fitness value, the right fitness value, the initial binary coding and the preset optimal position, the initial quantum coding is updated by using a preset update rule to obtain an updated quantum coding, and an updated fitness value is obtained based on the updated quantum coding and the linear force prediction model; if the updated fitness value is less than the preset fitness value, an updated position corresponding to the updated quantum coding is obtained, the preset optimal position is replaced by the updated position, and the search direction is determined according to the initial binary coding and the preset optimal position; when the preset iteration stop condition is met, the optimal fitness value is obtained, and the optimal solution corresponding to the optimal fitness value is output.
[0007] Optionally, in a first implementation method of the first aspect of the present invention, the pre-training linear force prediction model based on coil parameters and permanent magnet parameters includes: obtaining simulation analysis data, the independent variables of the simulation analysis data are the number of coils, the coil spacing, the number of permanent magnets, the permanent magnet spacing and the motion time, and the dependent variable of the simulation analysis data is the linear force; performing data cleaning processing, feature scaling processing and data partitioning processing on the simulation analysis data to obtain a training set, a validation set and a test set; constructing a linear force prediction model based on a neural network architecture, the linear force prediction model includes an input layer, a hidden layer and an output layer, the activation function of the hidden layer is a ReLU activation function, and the activation function of the output layer is a linear activation function; the training set, validation set and test set are respectively input into the linear force prediction model to train the model, and the training process of the linear force prediction model is optimized by combining regularization technology and random search algorithm; and the trained linear force prediction model is deployed into the optimization system.
[0008] Optionally, in a second implementation manner of the first aspect of the present invention, the initial quantum code is generated based on the coil parameters to be optimized and the permanent magnet parameters to be optimized, and the initial quantum code is measured to obtain the initial binary code, including: using quantum bits to encode the coil parameters to be optimized and the permanent magnet parameters to be optimized, each coil parameter to be optimized and each permanent magnet parameter to be optimized corresponds to a quantum bit, and all quantum bits are integrated to obtain the initial quantum code; the quantum bits are respectively mapped to the Bloch sphere, and the mapped quantum bits are measured to obtain the initial binary code corresponding to the initial quantum code; the initial binary code is denormalized to obtain an initial solution corresponding to the initial binary code, and the initial solution includes three feasible solutions; and any feasible solution is selected from the initial solution as the initial search point according to a preset selection rule.
[0009] Optionally, in a third implementation method of the first aspect of the present invention, the preset optimal position is obtained, the search direction is determined according to the initial binary code and the preset optimal position, and based on the determined search direction, the preset left antenna code and the right antenna code are updated according to the preset update rules, including: obtaining the preset optimal position, determining the search direction according to the initial binary code and the preset optimal position; obtaining the initial longicorn whisker search distance, and determining the longicorn whisker rotation angle based on the initial longicorn whisker search distance and the determined search direction; based on the longicorn whisker rotation angle and the initial binary code, using the preset update rules to update the preset left antenna code and the right antenna code.
[0010] Optionally, in a fourth implementation method of the first aspect of the present invention, the updated left antenna coding and the updated right antenna coding are measured respectively to obtain left binary coding and right binary coding, and left fitness value and right fitness value are obtained based on the left binary coding, the right binary coding and the linear force prediction model, including: measuring the updated left antenna coding and the updated right antenna coding respectively to obtain left binary coding and right binary coding; denormalizing the left binary coding and the right binary coding respectively to obtain left solution and right solution; substituting the left solution and the right solution into the linear force prediction model respectively to obtain left fitness value and right fitness value.
[0011] Optionally, in a fifth implementation manner of the first aspect of the present invention, the updating of the initial quantum code based on the left fitness value, the right fitness value, the initial binary code and the preset optimal position using a preset update rule to obtain an updated quantum code, and obtaining an updated fitness value based on the updated quantum code and the linear force prediction model includes: obtaining an initial moving distance, and updating the initial quantum code based on the left fitness value, the right fitness value, the initial binary code, the preset optimal position and the initial moving distance using a preset update rule to obtain an updated quantum code; measuring the updated quantum code to obtain an updated binary code; performing denormalization processing on the updated binary code to obtain an updated solution; and substituting the updated solution into the linear force prediction model to obtain an updated fitness value.
[0012] Optionally, in a sixth implementation manner of the first aspect of the present invention, if the updated fitness value is less than the preset fitness value, then obtaining an update position corresponding to the updated quantum code, replacing the preset optimal position with the updated position, and returning to determine the search direction according to the initial binary code and the preset optimal position, including: if the updated fitness value is less than the preset fitness value, then obtaining an update position corresponding to the updated quantum code, replacing the preset optimal position with the updated position, and updating the initial search distance and the initial moving distance based on a preset update rule, and then returning to determine the search direction according to the initial binary code and the preset optimal position; if the updated fitness value is greater than or equal to the preset fitness value, then updating the initial search distance and the initial moving distance based on a preset update rule, and returning to determine the search direction according to the initial binary code and the preset optimal position.
[0013] The second aspect of the present invention provides an optimization device for a magnetic levitation planar motor, comprising: a training module for pre-training a linear force prediction model based on coil parameters and permanent magnet parameters; a first measurement module for generating an initial quantum code based on the coil parameters to be optimized and the permanent magnet parameters to be optimized, and measuring the initial quantum code to obtain an initial binary code; a first update module for obtaining a preset optimal position, determining a search direction according to the initial binary code and the preset optimal position, and based on the determined search direction, using a preset update rule to update a preset left antenna code and a right antenna code; a second measurement module for measuring the updated left antenna code and the updated right antenna code respectively to obtain a left binary code and a right binary code, and based on the left binary code , right binary code and linear force prediction model to obtain left fitness value and right fitness value; a second updating module, used to update the initial quantum code based on the left fitness value, the right fitness value, the initial binary code and the preset optimal position, using a preset updating rule to obtain an updated quantum code, and obtain an updated fitness value based on the updated quantum code and the linear force prediction model; a judgment module, used to obtain an updated position corresponding to the updated quantum code if the updated fitness value is less than the preset fitness value, replace the preset optimal position with the updated position, and return to execute to determine the search direction according to the initial binary code and the preset optimal position; an output module, used to obtain the optimal fitness value when a preset iteration stop condition is met, and output the optimal solution corresponding to the optimal fitness value.
[0014] A third aspect of the present invention provides an optimization device for a magnetic levitation planar motor, the optimization device for a magnetic levitation planar motor comprising: a memory and at least one processor, the memory storing instructions; at least one of the processors calling the instructions in the memory so that the optimization device for the magnetic levitation planar motor performs each step of the optimization method for a magnetic levitation planar motor described in any one of the above items.
[0015] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, and when the instructions are executed by a processor, the various steps of any of the above-mentioned methods for optimizing a magnetically levitated planar motor are implemented.
[0016] In the technical solution of the present invention, the coil parameters and the permanent magnet parameters are optimized in combination with the quantum coding technology, so that the optimal solutions for the coil parameters to be optimized and the permanent magnet parameters to be optimized can be quickly obtained, that is, the optimization solutions for the coil size structure and the optimization solutions for the permanent magnet size structure can be quickly obtained, so that the optimized magnetic levitation planar motor can significantly reduce the working energy consumption while meeting the suspension force and high-precision control requirements, and improve the energy utilization efficiency of the magnetic levitation positioning platform, that is, achieve the goal of reducing the working power consumption and optimizing the motor structure size, thereby improving the overall performance of the magnetic levitation planar motor in many aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A logic flow chart of an optimization method for a magnetically suspended planar motor provided by an embodiment of the present invention;
[0018] Figure 2 A schematic diagram of the structure of an optimization device for a magnetically suspended planar motor provided in an embodiment of the present invention;
[0019] Figure 3 A schematic diagram of the structure of an optimization device for a magnetically suspended planar motor provided in an embodiment of the present invention;
[0020] Figure 4 An exploded structural diagram of a magnetic levitation planar motor provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The present invention provides an optimization method, device, equipment and storage medium for a magnetically levitated planar motor. In the present invention, the terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0022] To more clearly illustrate the optimization process of the present invention, Figure 4An example of a magnetically levitated planar motor is demonstrated. The motor is structurally divided into two main parts: a stator and a mover. A permanent magnet array is embedded inside the mover, while a coil array is provided on the surface of the stator to realize the functions of magnetic levitation and planar motion. The motor relies on the precise cooperation between the permanent magnet array on the mover and the inductor coil on the stator. By finely controlling the switching state of the current in the inductor coil and its periodic changes, the mover can be effectively driven to perform a predetermined motion on the stator surface. In terms of structural design, both the stator and the mover adopt an innovative three-layer structural layout. Specifically, the mover is composed of covers on both sides and a mounting assembly in the middle. This design prevents the permanent magnet from being directly exposed to the external environment, thereby improving the durability and safety of the motor. The structure of the stator includes an upper cover, a mounting assembly and a base, wherein the upper cover not only protects the coil array, but also ensures the integrity of the overall structure. Furthermore, a spacious cavity area is designed between the base of the stator and the middle mounting assembly, aiming to simplify the wiring process, improve assembly efficiency and facilitate maintenance.
[0023] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the optimization method of the magnetic levitation planar motor in the embodiment of the present invention includes:
[0024] 101. Pre-training linear force prediction model based on coil parameters and permanent magnet parameters;
[0025] In this embodiment, by applying the output results of the linear force prediction model, the suspension force can be further maximized and optimized to determine the optimal combination of structural parameters, thereby significantly improving the energy efficiency performance of the magnetic levitation planar motor and providing precise guidance for the optimization of the magnetic levitation system.
[0026] 102. Generate an initial quantum code based on the coil parameters to be optimized and the permanent magnet parameters to be optimized, and measure the initial quantum code to obtain an initial binary code;
[0027] 103. Obtain a preset optimal position, determine a search direction according to the initial binary code and the preset optimal position, and based on the determined search direction, use a preset update rule to update the preset left antenna code and the right antenna code;
[0028] 104. Measure the updated left antenna code and the updated right antenna code respectively to obtain a left binary code and a right binary code, and obtain a left fitness value and a right fitness value based on the left binary code, the right binary code and a linear force prediction model;
[0029] 105. Based on the left fitness value, the right fitness value, the initial binary code and the preset optimal position, the initial quantum code is updated using a preset update rule to obtain an updated quantum code, and an updated fitness value is obtained based on the updated quantum code and the linear force prediction model;
[0030] 106. If the updated fitness value is less than the preset fitness value, obtaining an updated position corresponding to the updated quantum code, replacing the preset optimal position with the updated position, and returning to determine the search direction according to the initial binary code and the preset optimal position;
[0031] 107. When the preset iteration stop condition is met, the best fitness value is obtained, and the optimal solution corresponding to the best fitness value is output;
[0032] In this embodiment, the preset iteration stop condition can be a preset maximum number of iterations, which can be pre-set by the designer according to the accuracy requirements of the solution; the optimal fitness value is the smaller value after the last iteration comparison, that is, in the last iteration, if the updated fitness value is less than the fitness value of the previous iteration, then the optimal fitness value is the updated fitness value; if the updated fitness value is greater than or equal to the fitness value of the previous iteration, then the optimal fitness value is the fitness value of the previous iteration.
[0033] The present application discloses an optimization method for a magnetic levitation planar motor. By combining quantum coding technology, coil parameters and permanent magnet parameters are optimized, and the optimal solutions for the coil parameters to be optimized and the permanent magnet parameters to be optimized can be quickly obtained, that is, the optimization solutions for the coil size structure and the optimization solutions for the permanent magnet size structure can be quickly obtained, so that the optimized magnetic levitation planar motor can significantly reduce the working energy consumption while meeting the suspension force and high-precision control requirements, and improve the energy utilization efficiency of the magnetic levitation positioning platform, that is, the goals of reducing the working power consumption and optimizing the motor structure size are achieved, thereby improving the overall performance of the magnetic levitation planar motor in many aspects.
[0034] In this embodiment, the pre-training of the linear force prediction model based on the coil parameters and the permanent magnet parameters specifically includes:
[0035] 201. Acquire simulation analysis data, wherein the independent variables of the simulation analysis data are the number of coils, the coil spacing, the number of permanent magnets, the permanent magnet spacing and the motion time, and the dependent variable of the simulation analysis data is the linear force;
[0036] In this embodiment, the simulation analysis data is based on the finite element analysis method, and the simulation analysis data is obtained by COMSOL Simulation platform output: During the simulation process, the movement of the mover is set to a constant speed. Based on this, the number of coils, the spacing between coils, the number of permanent magnets, and the spacing between permanent magnets are adjusted to calculate and analyze the linear force changes of the mover and stator in the entire motion trajectory, thereby obtaining multiple groups of analysis results under different conditions, and integrating multiple groups of analysis results to obtain simulation analysis data.
[0037] 202. Perform data cleaning, feature scaling and data partitioning on the simulation analysis data to obtain a training set, a validation set and a test set;
[0038] In this embodiment, missing values and outliers in the data set are checked, and data cleaning processing (for example, filling, deleting or interpolating) is performed; then, all features (number of coils, number of permanent magnets, permanent magnet spacing, coil spacing, movement time) are standardized or normalized to eliminate the influence of different dimensions and achieve feature scaling processing; finally, the data set is divided into a training set, a validation set and a test set, for example, 70% training set, 15% validation set, and 15% test set, to complete the data division processing.
[0039] 203. Construct a linear force prediction model based on a neural network architecture, wherein the linear force prediction model includes an input layer, a hidden layer, and an output layer, wherein the activation function of the hidden layer is a ReLU activation function, and the activation function of the output layer is a linear activation function;
[0040] In this embodiment, the input layer is responsible for receiving simulation analysis data, and the hidden layer processes this data through a series of neurons, among which the ReLU activation function is selected because it can effectively deal with the gradient vanishing problem and accelerate convergence during training; the output layer uses a linear activation function to ensure that the predicted value output by the model maintains a linear relationship with the actual force value.
[0041] 204. Input the training set, validation set and test set into the linear force prediction model respectively to train the model, and optimize the training process of the linear force prediction model by combining regularization technology and random search algorithm;
[0042] In this embodiment, the training set is used for model learning and parameter adjustment, the validation set is used to evaluate model performance and fine-tune hyperparameters, and the test set is used to finally evaluate the generalization ability of the model. In order to ensure that the model does not overfit on the training data, regularization techniques such as L1 or L2 regularization are introduced. Regularization techniques can limit model complexity and thus improve the generalization ability of the model. In addition, a random search algorithm is used to optimize hyperparameters. The random search algorithm is an efficient parameter optimization method that finds the best model configuration by randomly selecting parameter combinations and evaluating their performance.
[0043] 205. Deploy the trained linear force prediction model to the optimization system.
[0044] In this embodiment, the initial quantum code is generated based on the coil parameters to be optimized and the permanent magnet parameters to be optimized, and the initial quantum code is measured to obtain the initial binary code, which specifically includes:
[0045] 301. Encode the coil parameters to be optimized and the permanent magnet parameters to be optimized using quantum bits, each coil parameter to be optimized and each permanent magnet parameter to be optimized corresponds to one quantum bit, and integrate all quantum bits to obtain an initial quantum code;
[0046] In this embodiment, quantum bits are used to encode design variables. Each design variable corresponds to a quantum bit. The variables are expressed using the superposition property of quantum states. Each quantum bit can simultaneously represent the superposition of two basic quantum states, as shown in formula (1):
[0047]
[0048] In the formula, It represents the angle between the line connecting the studied position on the xy plane and the projection of the positive x-axis, ranging from 0 to 2π; represents the relative phase. Quantum algorithms use this phase relationship between quantum bits to make the correct results of the calculation constructively interfere and be amplified, while incorrect results will be suppressed due to destructive interference; θ represents the angle between the line connecting the research position and the origin of the coordinate system and the projection on the positive z-axis, ranging from 0 to π; |0> and |1> represent two basic quantum states.
[0049] 302. Mapping the quantum bits onto the Bloch sphere respectively, and performing measurement operations on the mapped quantum bits to obtain initial binary codes corresponding to the initial quantum codes;
[0050] In this embodiment, the Bloch sphere is a three-dimensional unit sphere, and any point on it can be represented by spherical coordinates, as shown in formula (2); the state of the quantum bit can be simultaneously represented at three positions in space, and the codes corresponding to these states are obtained through a measurement operation. The code corresponding to the i-th dimension is recorded as [p i,x ,p i,y ,p i,z ], as shown in formula (3):
[0051]
[0052] The Bloch quantum coding corresponding to n design variables can be written as formula (4):
[0053]
[0054] In this embodiment, the design variables include four, namely the number of coils, the coil spacing, the number of permanent magnets, and the permanent magnet spacing.
[0055] 303. Perform a denormalization process on the initial binary code to obtain an initial solution corresponding to the initial binary code, wherein the initial solution includes three feasible solutions;
[0056] In this embodiment, since each dimension of the Bloch coordinates is in the range of [-1, 1], in order to meet the actual needs of the specific design problem, these coordinates need to be appropriately transformed and mapped to the target solution space; assuming that the Bloch coordinates of the i-th quantum bit are [p i,x ,p i,y ,p i,z ], it can be mapped to the specified solution [x i,x ,x i,y ,x i,z ], this step can be called denormalization:
[0057]
[0058] Among them, lb i andub i They represent the lower and upper limits of the i-th dimension variable in the solution space respectively.
[0059] 304. Select any feasible solution from the initial solution as an initial search point according to a preset selection rule;
[0060] In this embodiment, three feasible solutions can be generated by formula (5). This step realizes the selection and optimization of feasible solutions by introducing parameters such as random variables and the number of iterations. This method improves the distribution quality of the initial population in the search space, thereby improving the solution efficiency and accuracy. The selection of feasible solutions in the entire search process is shown in formula (6):
[0061]
[0062] Where T is the maximum number of iterations, rand(·) generates a random variable in the range of [0,1], and t is the current number of iterations.
[0063] In this embodiment, when returning to execute the search direction determined according to the initial binary code and the preset optimal position, an initial solution corresponding to the initial binary code is obtained, and according to the preset selection rules, a feasible solution is reselected from the initial solution as the initial search point to guide the next iterative search process.
[0064] In this embodiment, the step of obtaining a preset optimal position, determining a search direction according to the initial binary code and the preset optimal position, and updating the preset left antenna code and the right antenna code based on the determined search direction by using a preset update rule specifically includes:
[0065] 401. Obtain a preset optimal position, and determine a search direction according to the initial binary code and the preset optimal position;
[0066] In this embodiment, in the first iteration, the position q corresponding to the currently searched optimal solution best is the preset optimal position; in each iteration, according to the current code q t The position q corresponding to the currently searched optimal solution best , dynamically determine the search direction of the beetle whiskers The specific calculation formula is shown in formula (7):
[0067]
[0068] Among them, rs, rg, rnd(n,1) are n-dimensional random variables in the range of [0,1].
[0069] 402. Obtain an initial beetle whisker search distance, and determine a beetle whisker rotation angle based on the initial beetle whisker search distance and the determined search direction;
[0070] 403. Based on the rotation angle of the beetle's antennae and the initial binary code, a preset left antenna code and a preset right antenna code are updated using a preset update rule;
[0071] In this embodiment, the quantum encoding of the two antennae is calculated by the update rules of equations (8) and (9). and Perform iterative updates:
[0072]
[0073]
[0074] Among them, d t is the distance searched by the beetle whiskers at time t, φ t Represents the rotation angle of the beetle's whiskers at time t.
[0075] In this embodiment, the updated left antenna code and the updated right antenna code are measured respectively to obtain the left binary code and the right binary code, and the left fitness value and the right fitness value are obtained based on the left binary code, the right binary code and the linear force prediction model, specifically including:
[0076] 501. Measure the updated left antenna code and the updated right antenna code respectively to obtain a left binary code and a right binary code;
[0077] In this embodiment, the left binary code is The right binary code is
[0078] 502. Denormalize the left binary code and the right binary code respectively to obtain a left solution and a right solution;
[0079] In this embodiment, the left solution and the right solution are respectively and
[0080] 503. Substitute the left solution and the right solution into the linear force prediction model respectively to obtain a left fitness value and a right fitness value;
[0081] In this embodiment, the left fitness value and the right fitness value are respectively set to and
[0082] In this embodiment, based on the left fitness value, the right fitness value, the initial binary code and the preset optimal position, the initial quantum code is updated using a preset update rule to obtain an updated quantum code, and the updated fitness value is obtained based on the updated quantum code and the linear force prediction model, specifically including:
[0083] 601. Obtain an initial moving distance, and based on the left fitness value, the right fitness value, the initial binary code, the preset optimal position and the initial moving distance, use a preset update rule to update the initial quantum code to obtain an updated quantum code;
[0084] In this embodiment, the update rules of the initial quantum code are shown in equations (8) and (10):
[0085]
[0086] Among them, δ t is the distance moved by the longicorn beetle at time t, and sign(·) is the sign function.
[0087] 602. Measuring the updated quantum code to obtain an updated binary code;
[0088] In this embodiment, the updated binary code is assumed to be p t+1 .
[0089] 603. Denormalize the updated binary code to obtain an updated solution;
[0090] In this embodiment, the updated solution is assumed to be x t+1 .
[0091] 604. Substitute the updated solution into the linear force prediction model to obtain an updated fitness value;
[0092] In this embodiment, the updated fitness value is G(x t+1 ).
[0093] In this embodiment, if the updated fitness value is less than the preset fitness value, then obtaining the updated position corresponding to the updated quantum code, using the updated position to replace the preset optimal position, and returning to determine the search direction according to the initial binary code and the preset optimal position, specifically includes:
[0094] 701. If the updated fitness value is less than the preset fitness value, an updated position corresponding to the updated quantum code is obtained, the preset optimal position is replaced by the updated position, and the initial search distance and the initial moving distance are updated based on the preset update rule, and then the search direction is determined according to the initial binary code and the preset optimal position.
[0095] In this embodiment, when returning to execute the search direction determined according to the initial binary code and the preset optimal position, firstly, based on the initial binary code, a feasible solution is re-selected as the initial solution from the initial solution corresponding to it, and then the search direction is redetermined according to the initial binary code and the preset optimal position to re-execute the search process.
[0096] 702. If the updated fitness value is greater than or equal to the preset fitness value, the initial search distance and the initial moving distance are updated based on a preset update rule, and the process returns to determine the search direction according to the initial binary code and the preset optimal position.
[0097] In this embodiment, the initial moving distance and the initial search distance are updated based on equations (11) and (12) respectively; specifically, the distance δ of the longhorn beetle moving at time t is updated based on the cosine theorem. t Perform nonlinear update, δ 0 is the initial step size, as shown in formula (11); the enhanced step size follows the curve based on the cosine theorem, maintaining a large step size in the early stage of iteration, quickly covering the search space and improving the global search efficiency; in the later stage of iteration, the step size gradually decreases, accurately locating the optimal solution and improving the local search accuracy; this dynamic step size adjustment method effectively balances the global search capability and local convergence performance of the algorithm, thereby significantly improving the optimization efficiency and solution accuracy;
[0098]
[0099] Among them, η δis the decay rate of the beetle whisker search distance, c is a constant, and is related to δ t+1 and d t+1 , to ensure the progressiveness and stability of the search process, T is the maximum number of iterations, and t is the current number of iterations.
[0100] In this embodiment, since the improved beetle whisker algorithm can dynamically adjust the optimal position to dynamically adjust the search direction, it can converge to the global optimal solution more quickly during the search process; this fast convergence feature not only improves the algorithm's solution speed, but also ensures the efficiency and stability of the solution process; further, the present application proposes an improved beetle whisker algorithm based on quantum state coding, variable normalization and the law of cosines, which realizes iterative updates through quantum bit coding and quantum rotating gates, thereby having a more powerful global search capability, effectively avoiding the defect that the traditional beetle whisker algorithm is prone to falling into local optimality.
[0101] The above describes the optimization method of the magnetic levitation planar motor in the embodiment of the present invention. The following describes the optimization device of the magnetic levitation planar motor in the embodiment of the present invention. Figure 2 , an embodiment of the optimization device of the magnetic levitation planar motor in the embodiment of the present invention includes:
[0102] A training module 801 is used to pre-train a linear force prediction model based on coil parameters and permanent magnet parameters;
[0103] A first measurement module 802 is used to generate an initial quantum code based on the coil parameters to be optimized and the permanent magnet parameters to be optimized, and measure the initial quantum code to obtain an initial binary code;
[0104] The first updating module 803 is used to obtain a preset optimal position, determine a search direction according to the initial binary code and the preset optimal position, and based on the determined search direction, update the preset left antenna code and the right antenna code using a preset updating rule;
[0105] The second measurement module 804 is used to measure the updated left antenna code and the updated right antenna code respectively to obtain the left binary code and the right binary code, and obtain the left fitness value and the right fitness value based on the left binary code, the right binary code and the linear force prediction model;
[0106] The second updating module 805 is used to update the initial quantum code based on the left fitness value, the right fitness value, the initial binary code and the preset optimal position using a preset updating rule to obtain an updated quantum code, and obtain an updated fitness value based on the updated quantum code and the linear force prediction model;
[0107] A judgment module 806 is used to obtain an update position corresponding to the updated quantum code if the updated fitness value is less than the preset fitness value, replace the preset optimal position with the updated position, and return to determine the search direction according to the initial binary code and the preset optimal position;
[0108] Output module 807, used to obtain the best fitness value when the preset iteration stop condition is met, and output the optimal solution corresponding to the best fitness value
[0109] Based on the same idea as the method in the above embodiment, the device provided by the present application can implement the method in the above embodiment.
[0110] above Figure 2 The optimization device of the magnetic levitation planar motor in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The optimization device of the magnetic levitation planar motor in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0111] Figure 3 1 is a schematic diagram of the structure of an optimization device for a magnetically suspended planar motor provided by an embodiment of the present invention. The optimization device 900 for a magnetically suspended planar motor may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 910 (for example, one or more processors) and a memory 920, and one or more storage media 930 (for example, one or more mass storage devices) storing application programs 933 or data 932. Among them, the memory 920 and the storage medium 930 may be short-term storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the optimization device 900 for a magnetically suspended planar motor. Furthermore, the processor 910 may be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the optimization device 900 for a magnetically suspended planar motor to implement the steps of the optimization method for a magnetically suspended planar motor provided in the above-mentioned method embodiments.
[0112] The optimization device 900 for the magnetically suspended planar motor may further include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input and output interfaces 960, and / or one or more operating systems 931, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 3The optimized device structure of the magnetic levitation planar motor shown does not constitute a limitation on the optimized device of the magnetic levitation planar motor, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0113] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the optimization method of the magnetic levitation planar motor.
[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0115] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0116] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for optimizing a magnetically suspended planar motor, characterized in that: include: Pre-training linear force prediction model based on coil parameters and permanent magnet parameters; generating an initial quantum code based on the coil parameters to be optimized and the permanent magnet parameters to be optimized, and measuring the initial quantum code to obtain an initial binary code; Obtaining a preset optimal position, determining a search direction according to the initial binary code and the preset optimal position, and updating the preset left antenna code and the right antenna code based on the determined search direction using a preset update rule; The updated left antenna code and the updated right antenna code are measured respectively to obtain a left binary code and a right binary code, and a left fitness value and a right fitness value are obtained based on the left binary code, the right binary code and a linear force prediction model; Based on the left fitness value, the right fitness value, the initial binary code and the preset optimal position, the initial quantum code is updated using a preset update rule to obtain an updated quantum code, and an updated fitness value is obtained based on the updated quantum code and the linear force prediction model; If the updated fitness value is less than the preset fitness value, then obtaining an updated position corresponding to the updated quantum code, using the updated position to replace the preset optimal position, and returning to determine the search direction according to the initial binary code and the preset optimal position; When the preset iteration stop condition is met, the best fitness value is obtained, and the optimal solution corresponding to the best fitness value is output.
2. The optimization method of the magnetic levitation planar motor according to claim 1, characterized in that: The pre-training linear force prediction model based on coil parameters and permanent magnet parameters includes: Acquire simulation analysis data, wherein the independent variables of the simulation analysis data are the number of coils, the coil spacing, the number of permanent magnets, the permanent magnet spacing and the motion time, and the dependent variable of the simulation analysis data is the linear force; The simulation analysis data are processed by data cleaning, feature scaling and data partitioning to obtain the training set, validation set and test set; Constructing a linear force prediction model based on a neural network architecture, wherein the linear force prediction model includes an input layer, a hidden layer, and an output layer, wherein the activation function of the hidden layer is a ReLU activation function, and the activation function of the output layer is a linear activation function; The training set, validation set and test set are respectively input into the linear force prediction model to train the model, and the training process of the linear force prediction model is optimized by combining regularization technology and random search algorithm; The trained linear force prediction model is deployed to the optimization system.
3. The optimization method of the magnetic levitation planar motor according to claim 1, characterized in that: The generating of the initial quantum code based on the coil parameters to be optimized and the permanent magnet parameters to be optimized, and measuring the initial quantum code to obtain the initial binary code, comprises: The coil parameters to be optimized and the permanent magnet parameters to be optimized are encoded using quantum bits, each coil parameter to be optimized and each permanent magnet parameter to be optimized corresponds to one quantum bit, and all quantum bits are integrated to obtain the initial quantum code; The quantum bits are mapped onto the Bloch sphere respectively, and the mapped quantum bits are measured to obtain the initial binary code corresponding to the initial quantum code; Performing a denormalization process on the initial binary code to obtain an initial solution corresponding to the initial binary code, wherein the initial solution includes three feasible solutions; According to a preset selection rule, any feasible solution is selected from the initial solution as an initial search point.
4. The optimization method of the magnetic levitation planar motor according to claim 3, characterized in that: The step of obtaining a preset optimal position, determining a search direction according to the initial binary code and the preset optimal position, and updating the preset left antenna code and the right antenna code based on the determined search direction by using a preset update rule includes: Obtaining a preset optimal position, and determining a search direction according to the initial binary code and the preset optimal position; Obtaining an initial beetle whisker search distance, and determining a beetle whisker rotation angle based on the initial beetle whisker search distance and the determined search direction; Based on the rotation angle of the beetle's whiskers and the initial binary code, the preset left antenna code and the right antenna code are updated using a preset update rule.
5. The optimization method of the magnetic levitation planar motor according to claim 4, characterized in that: The updated left antenna code and the updated right antenna code are measured respectively to obtain the left binary code and the right binary code, and the left fitness value and the right fitness value are obtained based on the left binary code, the right binary code and the linear force prediction model, including: The updated left antenna code and the updated right antenna code are measured respectively to obtain a left binary code and a right binary code; Denormalize the left binary code and the right binary code respectively to obtain a left solution and a right solution; The left solution and the right solution are respectively substituted into the linear force prediction model to obtain a left fitness value and a right fitness value.
6. The optimization method of the magnetic levitation planar motor according to claim 5, characterized in that: The method of updating the initial quantum code based on the left fitness value, the right fitness value, the initial binary code and the preset optimal position using a preset update rule to obtain an updated quantum code, and obtaining an updated fitness value based on the updated quantum code and the linear force prediction model includes: Obtaining an initial moving distance, and updating the initial quantum code using a preset updating rule based on the left fitness value, the right fitness value, the initial binary code, the preset optimal position and the initial moving distance to obtain an updated quantum code; The updated quantum code is measured to obtain the updated binary code; Denormalize the updated binary code to obtain an updated solution; Substitute the updated solution into the linear force prediction model to obtain an updated fitness value.
7. The optimization method of the magnetic levitation planar motor according to claim 6, characterized in that: If the updated fitness value is less than the preset fitness value, an updated position corresponding to the updated quantum code is obtained, the updated position is used to replace the preset optimal position, and the search direction is determined according to the initial binary code and the preset optimal position, including: If the updated fitness value is less than the preset fitness value, then obtaining an updated position corresponding to the updated quantum code, using the updated position to replace the preset optimal position, and updating the initial search distance and the initial moving distance based on the preset update rule, and then returning to determine the search direction according to the initial binary code and the preset optimal position; If the updated fitness value is greater than or equal to the preset fitness value, the initial search distance and the initial moving distance are updated based on the preset update rule, and the process returns to determine the search direction according to the initial binary code and the preset optimal position.
8. An optimization device for a magnetically suspended planar motor, characterized in that: include: A training module for pre-training a linear force prediction model based on coil parameters and permanent magnet parameters; A first measurement module is used to generate an initial quantum code based on the coil parameters to be optimized and the permanent magnet parameters to be optimized, and measure the initial quantum code to obtain an initial binary code; A first updating module, used for obtaining a preset optimal position, determining a search direction according to the initial binary code and the preset optimal position, and updating the preset left antenna code and the right antenna code based on the determined search direction using a preset updating rule; A second measurement module is used to measure the updated left antenna code and the updated right antenna code respectively to obtain a left binary code and a right binary code, and obtain a left fitness value and a right fitness value based on the left binary code, the right binary code and a linear force prediction model; A second updating module is used to update the initial quantum code based on the left fitness value, the right fitness value, the initial binary code and the preset optimal position using a preset updating rule to obtain an updated quantum code, and obtain an updated fitness value based on the updated quantum code and the linear force prediction model; A judgment module, configured to obtain an update position corresponding to the updated quantum code if the updated fitness value is less than a preset fitness value, replace the preset optimal position with the updated position, and return to determine the search direction according to the initial binary code and the preset optimal position; The output module is used to obtain the best fitness value when the preset iteration stop condition is met, and output the optimal solution corresponding to the best fitness value.
9. An optimization device for a magnetically suspended planar motor, characterized in that: The optimization device of the magnetically suspended planar motor comprises: a memory and at least one processor, wherein instructions are stored in the memory; At least one of the processors calls the instructions in the memory to enable the magnetic levitation planar motor optimization device to perform each step of the magnetic levitation planar motor optimization method according to any one of claims 1 to 7.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the various steps of the optimization method of the magnetic levitation planar motor as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Electric power system economic dispatching method based on quantum Beetle Antennae algorithm
CN113673863A
Quantum bit with a multi-terminal junction and loop with a phase shift
US20020117656A1
Intelligent mechatronic control suspension system based on quantum soft computing
US20040024750A1
Cited By
VMD-CRO-CNN-LSTM rotating machine fault diagnosis method
CN122286198A