Control method and system of tail rope take-up and pay-off device based on fuzzy parameter control
By constructing the fuzzy relationship function between the system input parameters and the PID controller, combined with the adaptive strategy, and using the fuzzy inference algorithm to calculate the target output, the problems of oscillation and steady-state errors in the traditional tail rope retraction and release line control are solved, and the rope control system is realized. Precise tension control improves control efficiency and system stability.
Patent Information
- Application Number
- CN202410420179.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the traditional tail rope retracting and releasing line control, the conventional fuzzy controller has a single-input controller with variable parameters at the input end, which causes oscillation near the equilibrium point and cannot accurately control the rope tension, affecting the stability and efficiency of the system.
Using a method based on fuzzy parameter control, by constructing the functional relationship between the system input parameters and the PID controller, combined with the PID parameter adaptive strategy, a fuzzy relationship function is constructed, and the fuzzy inference algorithm is used to calculate the target output to achieve accurate rope tension. control.
It overcomes oscillation and steady-state errors, achieves static error-free adjustment, improves control accuracy and efficiency, and ensures a smooth and efficient tail rope retraction and deployment process.
Smart Images

Figure CN118534769A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of mechanical equipment drive control, and in particular relates to a control method and system for a tail rope retracting and releasing device based on fuzzy parameter control. Background Art
[0002] During the process of retracting and releasing the tail rope, the control strategy of the motor and the interaction between the motor and the rope tension and torque are particularly critical. In order to ensure the smooth progress of the entire process, the motor usually maintains a constant speed, and the rope tension will fluctuate over time. This fluctuation is determined by the operating characteristics of the tail rope and the changes in external loads. At the same time, the motor will also adjust its torque output accordingly to meet the current work requirements. The retraction and release of the tail rope involves three stages: starting, uniform rotation, and stopping. The changes in rope tension and torque in each stage directly affect the stability and efficiency of the system. Therefore, how to accurately control the rope tension and ensure the smooth and efficient process of the tail rope retraction and release has become a problem that needs to be solved urgently.
[0003] The traditional tail rope retracting and releasing control adopts the conventional fuzzy controller. Although it can deal with complex and unclear problems simply and effectively, the input end only contains the deviation and deviation change of the controlled quantity, which is actually equivalent to a single-input controller with variable parameters. It cannot accurately eliminate the steady-state error of the system. Especially when the structure and coverage of the control rules are not appropriate or the variable classification is not enough, oscillation will occur near the equilibrium point, and the system accuracy cannot be guaranteed, and the precise control of the rope tension cannot be guaranteed. Summary of the invention
[0004] The purpose of the present invention is to use a conventional fuzzy controller in the prior art to control the motor in the tail rope retracting and releasing device. Because the input end provides a single input controller with a variable parameter, an oscillation phenomenon will occur near the balance point, resulting in low motor control accuracy and low rope tension control accuracy. A control method and system for a tail rope retracting and releasing device based on fuzzy parameter control are proposed. The method constructs a functional relationship between the system input parameters and each control parameter in the PID controller, and combines the PID parameter adaptive strategy to determine the fuzzy relationship function between the system input parameters and each control parameter in the PID controller in each control stage, and combines the fuzzy control algorithm to calculate the target output. Because the constructed fuzzy relationship function has the function of online parameter adaptation and contains an integral effect, it can not only realize the adaptive adjustment of each control parameter, but also overcome the oscillation and steady-state error that may be generated when the system error tends to zero, and realize zero-static error adjustment, so that a more accurate target output can be calculated, and the rope tension of the tail rope retracting and releasing device can be more accurately controlled according to the target output; at the same time, the strong adaptability of the fuzzy reasoning algorithm can be combined with the fuzzy relationship function to calculate the target output more quickly, which is conducive to improving the control efficiency.
[0005] In a first aspect, the present invention provides a technical solution: a control method for a tail rope retracting and releasing device based on fuzzy parameter control, comprising the following steps: Obtaining system input parameters, and establishing a target control function between the system input parameters and each control parameter in the PID controller in each control stage; Based on the target control function, a fuzzy relationship function between the system input parameter and each control parameter in the PID controller at each control stage is constructed according to the PID parameter adaptive strategy, and a global fuzzy relationship control function is constructed according to the fuzzy relationship function at each control stage; Determine the output fuzzy set of the PID controller according to the global fuzzy relationship control function by using a fuzzy inference algorithm; The target output is obtained based on the output fuzzy set of the PID controller, and the tail rope retracting and releasing device is controlled according to the target output.
[0006] Furthermore, the obtaining of system input parameters and establishing a target control function between the system input parameters and each control parameter in the PID controller in each control stage include: The system input parameters are obtained, and the system input parameters include the system error and the system error change rate of the PID controller; the target control function of the PID controller under periodic sampling is constructed according to the system error of the PID controller, the system error change rate and each control parameter in the PID controller, and the target control function is as follows: Where, e(k) represents the system error at the kth acquisition time, ec(k) represents the rate of change of the system error at the kth acquisition time, and K p Represents the proportionality coefficient, K i Indicates the integral action coefficient, K d represents the differential action coefficient, and T represents the sampling period.
[0007] Furthermore, the target control function is based on the PID parameter adaptive strategy to construct the fuzzy relationship function between the system input parameter and each control parameter in the PID controller in each control stage, including: Determine the PID parameter adaptive strategy according to the functional relationship between the system error in the target control function, the system error change rate and each of the control parameters, and the control stage of the PID controller; Based on the PID parameter adaptive strategy, the fuzzy relationship function between the system input parameter and each control parameter based on periodic sampling in each control stage is constructed, and the fuzzy relationship function is as follows: Where R represents the fuzzy relationship matrix, and P represents the nth rule statement in each control stage in the fuzzy relationship.
[0008] Further, the determining the PID parameter adaptive strategy according to the functional relationship between the system error in the target control function, the system error change rate and each of the control parameters and the control stage of the PID controller includes: determining the control stage of the current output response of the PID controller, the control stage including the first control stage, the second control stage and the third control stage; If in the first control stage, the PID controller is controlled to output at a maximum value, the proportional coefficient is controlled to satisfy a first proportional coefficient range, the differential action coefficient is controlled to satisfy a first differential action coefficient range, and the integral action coefficient is controlled to be zero; If in the second control stage, the proportional coefficient is controlled to satisfy the second proportional coefficient range, the differential action coefficient is controlled to satisfy the second differential action coefficient range, and the integral action coefficient is controlled to satisfy the first integral action coefficient range; If in the third control stage, the proportional coefficient is controlled to satisfy the third proportional coefficient range, the differential action coefficient is controlled to satisfy the third differential action coefficient range, and the integral action coefficient is controlled to satisfy the second integral action coefficient range.
[0009] Furthermore, the fuzzy relationship function between the system input parameter and each control parameter based on periodic sampling in each control stage is constructed based on the PID parameter adaptive strategy, including: The membership function of each control stage is constructed, and the membership function is as follows: In the formula, μ represents the degree of membership, E represents the system error matrix, EC represents the system error change rate matrix, ΔK p represents the proportional coefficient variation matrix, i, j∈n, n=1, 2, ..., n, n represents the total number of input fuzzy relations; The Cartesian product matrix of the binary fuzzy relationship between the system error matrix and the system error change rate matrix on the domain is calculated according to the membership function, and the Cartesian product is as follows: D k =E i ×EC j ; Where D k Denotes the Cartesian product matrix, the Cartesian product D k The membership degree corresponding to the matrix is: The Cartesian product matrix is transposed to obtain a transposed matrix, and the ternary fuzzy relationship between the system error, the system error change rate and the proportional coefficient on the domain is calculated according to the transposed matrix and the proportional coefficient matrix. The ternary fuzzy relationship is as follows: The fuzzy relationship function corresponding to each control stage is obtained by performing conversion according to the ternary fuzzy relationship of each control stage.
[0010] Furthermore, constructing a global fuzzy relationship control function according to the fuzzy relationship functions in each control stage includes: summing the fuzzy relationship functions in each control stage to obtain the global fuzzy relationship control function, and the global fuzzy relationship control function is as follows:
[0011] Furthermore, the method of determining the output fuzzy set of the PID controller according to the global fuzzy relationship control function by using a fuzzy inference algorithm includes: Based on each fuzzy relation subset in the global fuzzy relation control function, the output quantity fuzzy set of the output linguistic variable of the PID controller on the domain is calculated by the fuzzy inference algorithm. The output quantity fuzzy set is as follows: In the formula, The composition operation representing the fuzzy relation, Represents the row vector of the fuzzy relationship matrix.
[0012] Further, the output quantity fuzzy set based on the PID controller obtains the target output quantity, including: establishing a mapping relationship between the output quantity fuzzy set and the standard set based on a preset conversion algorithm, and calculating an output quantity comparison value based on the mapping relationship; The output comparison value is compared with each output value in the output fuzzy set, and the output value with the smallest error with the output comparison value is taken as the target output.
[0013] Furthermore, the method further comprises: determining a sampling period based on a time sampling function, wherein the time sampling function is as follows: In the formula, ω max is the upper angular frequency of the sampling signal.
[0014] In a second aspect, the present invention provides a technical solution: a control system for a tail rope retracting and releasing device based on fuzzy parameter control, the system comprising: A data acquisition module is used to acquire system input parameters and establish a target control function between the system input parameters and each control parameter in the PID controller in each control stage; A relationship building module, used for building a fuzzy relationship function between the system input parameter and each control parameter in the PID controller at each control stage based on the target control function and according to the PID parameter adaptive strategy, and building a global fuzzy relationship control function according to the fuzzy relationship function at each control stage; A calculation module, used for determining the output fuzzy set of the PID controller according to the global fuzzy relationship control function through a fuzzy inference algorithm; The output control module is used to obtain a target output based on the output fuzzy set of the PID controller, and to control the tail rope retracting and releasing device according to the target output.
[0015] The beneficial effects achieved by the present invention are as follows: the present invention constructs a functional relationship between a system input parameter and each control parameter in a PID controller, and determines a fuzzy relationship function between the system input parameter and each control parameter in the PID controller in each control stage in combination with a PID parameter adaptive strategy, and calculates a target output in combination with a fuzzy control algorithm. Since the constructed fuzzy relationship function has the function of online parameter adaptation and contains an integral effect, it is not only possible to realize adaptive adjustment of each control parameter, but also to overcome oscillation and steady-state errors that may be generated when the system error approaches zero, and to realize zero-static-error adjustment, so that a more accurate target output can be calculated, and the rope tension of a tail rope retracting and releasing device can be more accurately controlled according to the target output, ensuring that the motor of the tail rope retracting and releasing device in the control system has good dynamic and static performances; at the same time, the strong adaptability of the fuzzy reasoning algorithm can be combined with the fuzzy relationship function to calculate the target output more quickly, which is conducive to improving control efficiency.
[0016] The above invention content is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts.
[0018] Figure 1 is a flow chart of a control method of a tail rope retracting and releasing device based on fuzzy parameter control provided by an embodiment of the present invention; Figure 2 is a schematic diagram of an overall control system based on fuzzy parameter control provided by an embodiment of the present invention; Figure 3 is a system output response curve diagram provided by an embodiment of the present invention; Figure 4 It is a schematic diagram of the overall structure of a control system of fuzzy parameter control provided by an embodiment of the present invention; Figure 5 1 is a schematic structural diagram of a control system of a tail rope retracting and releasing device based on fuzzy parameter control provided by an embodiment of the present invention; Figure 6 It is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0020] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations (or steps) therein can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the drawings; the process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0021] The terms "first", "second", "third", "fourth", etc. (if any) in the specification 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 interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. It should also be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0022] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a variable relationship that describes associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated with each other are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.
[0023] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.
[0024] Embodiment 1 Please refer to Figure 1 , Figure 1 The control method of the tail rope retracting and releasing device based on fuzzy parameter control provided by an embodiment of the present invention is a flow chart. The control method of the tail rope retracting and releasing device based on fuzzy parameter control specifically includes the following steps: S1. Obtain system input parameters and establish target control functions between system input parameters and control parameters in PID controller at each control stage.
[0025] It should be noted that in this embodiment, fuzzy parameter control is based on fuzzy set theory and fuzzy mathematics, expresses knowledge in fuzzy language, and uses fuzzy logic rules for reasoning. The key lies in formulating a set of language control rules. When used, the control system is implemented using computer technology to form a closed-loop digital control system with a feedback channel. Specifically, combined with Figure 2 As shown, Figure 2 The block diagram of the overall control system based on fuzzy parameter control is shown in Figure 1. The overall control system of fuzzy parameter control can be divided into five components: First, fuzzy parameter controller: a language-based fuzzy controller that uses basic fuzzy control knowledge representation and rule reasoning to achieve system control. Second, input / output interface: the fuzzy parameter controller obtains digital signal quantities from the controlled object through the input / output interface and the A / D module, and converts the output digital signal of the fuzzy controller decision into an analog signal through digital-to-analog conversion (D / A module), and sends it to the controlled object to achieve control. Third, actuator: a mechanism that enables the controlled object to execute actions. The actuator of the present invention is a motor. Fourth, controlled object: equipment or devices and the state transition process of equipment or devices in production, nature, society, biology, etc. Fifth, sensor: a device that converts the controlled quantity of the controlled object or various processes into an electrical signal (analog or digital).
[0026] It should be noted that the above PID (proportional-integral-differential) controller can be used for error correction in continuous control systems. The PID controller adjusts its output according to the input to minimize the error. The PID controller consists of three main parts: proportional (P), integral (I) and differential (D). Among them, the proportional term P is directly proportional to the error. When the error occurs, the proportional term will immediately produce a correction action proportional to the error. The proportional term can respond quickly to the change of the error. The integral term I is the accumulated value of the error and is used to eliminate the steady-state error. The integral term gradually accumulates the error over time and produces a gradually increasing output until the error is completely eliminated. The differential term D is a measure of the rate of change of the error, which is used to predict future changes in the error and make adjustments in advance. The differential term can speed up the response of the system and reduce overshoot and oscillation, especially when the system is disturbed by rapid changes or noise.
[0027] In an embodiment of the present invention, the control method of the tail rope retracting and releasing device based on fuzzy parameter control is applicable to the motor control scenario of the tail rope retracting and releasing device. First, it is necessary to obtain the system input parameters, and when obtaining the system input parameters, the system is in a certain control section, and there is a corresponding given quantity (input quantity) in the current control stage, and the given quantity includes but is not limited to the speed of the motor on the capstan side, torque and rope diameter, etc. When the system generates an output, the input quantity can be adjusted based on the output to obtain a new input quantity, forming a closed-loop feedback. Among them, the system input parameters include the system error and the system error rate calculated based on the system error.
[0028] Optionally, the above step S1 specifically includes: According to the system error of the PID controller, the rate of change of the system error and the control parameters in the PID controller, the target control function of the PID controller under periodic sampling is constructed. The target control function is shown in the following formula (1): In formula (1), e(k) represents the system error at the kth acquisition time, ec(k) represents the rate of change of the system error at the kth acquisition time, and K p Represents the proportionality coefficient, which affects the speed and accuracy of the system, K i Indicates the integral action coefficient, which affects the stability and accuracy of the system, K d represents the differential action coefficient, which affects the dynamic characteristics of the system, T represents the sampling period, and u(k) represents the output value of the PID controller at the kth sampling moment. p , K i and K d The value range of is [0~1].
[0029] Among them, the proportionality coefficient K p The role is to speed up the response speed and improve the adjustment accuracy, but there is a static error for the controlled object with self-balancing ability. Once the system error occurs, the PID controller immediately controls, and the strength of the control effect depends on K p , K p The larger the value, the faster the system response speed and the higher the system adjustment accuracy; but K p If K is too large, the system overshoot will increase and even the system dynamic performance will deteriorate. p If it is too small, the adjustment accuracy will be reduced, the system response speed will be slow, thereby extending the adjustment time and reducing the dynamic characteristics.
[0030] Among them, the integral coefficient K i The function of K is to memorize and integrate the error, which is helpful to eliminate the static error of the system. However, the integral action has a hysteresis characteristic. iThe larger the value, the faster the system static error is eliminated, but K i If K is too large, it is easy to cause integral saturation in the early stage of response, causing large overshoot. i If it is too small, the static error of the system will be difficult to eliminate, which will affect the adjustability of the system.
[0031] Among them, the differential coefficient K d The role of K is to change the strength of the differential effect. In PID control, the differential link responds to the rate of change of the system error ec. Its main role is to suppress the deviation from changing in any direction during the response process and to brake the direction of the deviation change in advance. d If it is too large, the braking response will be too early, the adjustment time will be prolonged, and the system's anti-interference ability will be weakened.
[0032] Optionally, the acquisition period T in the above formula (1) can be determined based on a time sampling function. The time sampling function can be selected from the Shannon sampling theorem. The specific expression is shown in the following formula (2): In formula (11), ω max is the upper angular frequency of the sampling signal.
[0033] In different control stages, the various parameters in the above formula (1) will change dynamically, and the output value is also calculated based on the various parameters of the current control stage. When calculating, the above system error and system error change rate can take absolute values |e| and |ec|. According to different |e| and |ec|, the control parameters K of the PID controller are p , K i and K d Online adaptive fuzzy control enables the system to work in a more stable environment and achieves precise control of the output.
[0034] S2. Based on the target control function, the fuzzy relationship function between the system input parameters and the control parameters in the PID controller at each control stage is constructed according to the PID parameter adaptive strategy, and the global fuzzy relationship control function is constructed according to the fuzzy relationship function at each control stage.
[0035] Among them, according to the target control function, the binary function relationship between the system error, the system error change rate and each control parameter in the PID controller can be obtained. According to the binary function relationship between the system error, the system error change rate and each control parameter in the PID controller, a PID parameter adaptive strategy can be formulated, and then combined with the PID parameter adaptive strategy, a fuzzy relationship function between the system error and the system error change rate and each control parameter in the PID controller in each control stage can be constructed, that is, a fuzzy relationship between input and output can be constructed. According to the fuzzy relationship function in each control stage, the global fuzzy relationship control function involved in the entire control process can be obtained.
[0036] Optionally, in the above step S2, based on the target control function, a fuzzy relationship function between the system input parameters and each control parameter in the PID controller in each control stage is constructed according to the PID parameter adaptive strategy, specifically including: S21, determining a PID parameter adaptive strategy according to the functional relationship between the system error, the system error change rate and each control parameter in the target control function and the control stage of the PID controller; S22, based on the PID parameter adaptive strategy, construct a fuzzy relationship function between the system input parameters and each control parameter based on periodic sampling in each control stage, and the fuzzy relationship function is shown in the following formula (3): Where R represents the fuzzy relationship matrix, and P represents the nth rule statement in each control stage in the fuzzy relationship.
[0037] Specifically, according to the functional relationship between the system error, the system error change rate and each control parameter in the target control function, the PID parameter adaptive strategy of each control parameter of the PID controller is determined for different control stages, and the fuzzy relationship function (fuzzy relationship matrix) between the system error, the system error change rate and each control parameter based on periodic sampling in each control stage is constructed in combination with the PID parameter adaptive strategy, as shown in the above formula (3). The fuzzy influence between the parameters is represented by the fuzzy relationship function.
[0038] Optionally, combined Figure 3 As shown, the above step S21 specifically includes: S211, determining the control stage of the current output response of the PID controller, where the control stage includes a first control stage, a second control stage and a third control stage; S212, if in the first control stage, control the PID controller to output at the maximum value, control the proportional coefficient to satisfy the first proportional coefficient range, control the differential action coefficient to satisfy the first differential action coefficient range, and control the integral action coefficient to be zero; S213, if in the second control stage, the proportional coefficient is controlled to satisfy the second proportional coefficient range, the differential action coefficient is controlled to satisfy the second differential action coefficient range, and the integral action coefficient is controlled to satisfy the first integral action coefficient range; S214: If in the third control stage, the proportional coefficient is controlled to satisfy the third proportional coefficient range, the differential action coefficient is controlled to satisfy the third differential action coefficient range, and the integral action coefficient is controlled to satisfy the second integral action coefficient range.
[0039] Specifically, due to different control stages, the controlled control parameters are dynamically changing, so we can first determine which control stage the output response of the PID controller is in, and then formulate a PID parameter adaptive strategy according to different control stages. p , K i and K d The output characteristics of the system have different effects. Therefore, the control parameter K of the PID controller varies with |e| and |ec| during the control process. p , K i and K d The strategies for formulating Figure 3 As shown, combined with the output response curve of the control system, the K p , K i and K d The principle of adaptation.
[0040] Among them, when the output response is in the first stage (stage 1) of the curve, the deviation value |e| is large. In order to speed up the response speed of the system, no matter how the error changes, the output of the controller should be considered to be the maximum or minimum output, that is, the output at the maximum value, so as to quickly adjust the error and reduce the absolute value of the error at the maximum speed. At the same time, in order to avoid the differential overflow of the system, causing the system control action to exceed the specified range, a larger K should be taken. p and smaller K d In addition, in order to prevent the system from being saturated and avoid a large overshoot in the system response, the integral action should be removed at this stage, that is, K i = 0. For example: Control K p =0.8, K d =0.3, K i = 0. That is, when in the first stage, not only the PID controller should be controlled to output at the maximum or minimum value, but also K p Satisfy the first proportional coefficient range and control K d Satisfy the first differential action coefficient range and control K i= 0. The first stage corresponds to the start-up stage of the tail rope retracting and releasing device. In the first stage, the tail rope begins to gradually accelerate from a stationary state, and the required rope tension reaches a maximum value.
[0041] When the output response is in the second stage (stage 2) of the curve, the deviation value |e| is medium. In order to reduce the overshoot of the system response, K p , K i and K d The value should not be too large, but should be moderate to ensure the response speed of the system. p =0.1; K d =0.1; K i =0.1. Therefore, K can be controlled p Satisfy the second proportional coefficient range and control K i Satisfy the second differential action coefficient range and control K d The first integral action coefficient range is satisfied. The second stage corresponds to the uniform rotation stage of the tail rope retracting and releasing device. The uniform rotation stage is the longest stage in the process of tail rope retracting and releasing. In the uniform rotation stage, the tail rope is retracted and released at a constant speed, and the required rope tension is relatively low, so it is necessary to maintain K p , K i and K d Good size.
[0042] When the output response is in the third stage (stage 3) of the curve, the deviation value |e| is small. In order to make the system have good steady-state performance, K should be increased. p and K i In order to avoid frequent oscillation of the system near the set value and consider the anti-interference ability of the system, K should be appropriately selected. d Value. For example: Control K p =0.3; K d =0.3; K i =0.15. Therefore, K can be controlled p Satisfy the third proportional coefficient range and control K i Satisfy the third differential action coefficient range and control K d The second integral action coefficient range is satisfied. The third stage corresponds to the stopping stage of the tail rope retracting and releasing device, and the stopping stage needs to overcome the rotational inertia so that the tail rope can stop smoothly.
[0043] It should be noted that the above-mentioned first proportional coefficient range, second proportional coefficient range, third proportional coefficient range, first differential action coefficient range, second differential action coefficient range, third differential action coefficient range, first integral action coefficient range and second integral action coefficient range can be determined according to the historical data of each control parameter at different control stages. Among them, the value of the first proportional coefficient range is greater than the value of the second proportional coefficient range, and the value of the second proportional coefficient range is less than the value of the third proportional coefficient range; the value of the first differential action coefficient range is greater than the value of the second differential action coefficient range, and the value of the second differential action coefficient range is less than the value of the third differential action coefficient range; the value of the first integral action coefficient range is less than the value of the second integral action coefficient range. For example: the first proportional coefficient range is 0.85-0.6, the second proportional coefficient range is 0.3-0.05, and the third proportional coefficient range is 0.6-0.3. In this embodiment, since the value range can be dynamically adjusted according to the control feedback situation each time to achieve more precise adjustment and control, the specific range is not uniquely limited here.
[0044] The above-mentioned PID parameter adaptive strategy is determined according to the functional relationship between the system error and the system error change rate and the various control parameters of the PID controller. The various control parameters of the PID can be adaptively adjusted according to the system error and the system error change rate, so as to accurately control the output of the PID controller, perform torque control according to the output, and further achieve accurate control of the tail rope tension.
[0045] Optionally, the above step S22 specifically includes: S221, constructing the membership function of each control stage, the membership function is shown in the following formula (4): In the formula, μ represents the degree of membership, E represents the system error matrix, EC represents the system error change rate matrix, ΔK p represents the proportional coefficient variation matrix, i, j∈n, n=1, 2, ..., n, n represents the total number of input fuzzy relations; S222. Calculate the Cartesian product matrix of the binary fuzzy relationship between the system error matrix and the system error change rate matrix on the domain according to the membership function. The Cartesian product is shown in the following formula (5): D k =E i ×EC j (5) Where D k Denotes the Cartesian product matrix, Cartesian product D k The membership degree corresponding to the matrix is shown in the following formula (6): S223, transpose the Cartesian product matrix to obtain a transposed matrix, and calculate the ternary fuzzy relationship between the system error, the system error change rate and the proportional coefficient on the domain according to the transposed matrix and the proportional coefficient matrix. The ternary fuzzy relationship is shown in the following formula (7): S224. Convert the ternary fuzzy relationship of each control stage to obtain a fuzzy relationship function corresponding to each control stage.
[0046] Specifically, in order to determine the fuzzy relationship between input and output, a fuzzy controller can be used to introduce fuzzy control rules. In the fuzzy control rules, the rule statement in each control stage determines a fuzzy relationship. For example, in the first stage, the rule statement is that the system error |e| is large, K p Larger, K d Smaller, K i = 0, the rule statement expresses |e| and K p , K d and K i According to the fuzzy reasoning method, the corresponding fuzzy relationship is obtained for each rule statement, and finally the fuzzy relationship function of each control stage is obtained, as shown in the above formula (4).
[0047] More specifically, the above membership function maps the fuzzy set to the interval [0, 1], which is used to describe the fuzziness of the transition of things. It can be understood as follows: if for any element x in the domain (scope of research) U, there is a number A(x)∈[0, 1] corresponding to it, then A is called a fuzzy set on U, and A(x) is called the membership of x to A. When x changes in U, A(x) is a function, called the membership function of A. As shown in the above formula (4), in this application, the membership functions of the system error, the rate of change of the system error, and the proportional coefficient are constructed. Among them, is the membership function of the i-th fuzzy relationship in the system error matrix E; is the membership function of the jth fuzzy relationship in the system error change rate matrix EC; is the membership function of the jth fuzzy relation in the i-th row of the proportional coefficient variation matrix ΔKp. When the membership μ is closer to 1, the degree to which the elements in the domain belong to the fuzzy set is higher; when the membership μ is closer to 0, the degree to which the elements in the domain belong to the fuzzy set is lower.
[0048] In this embodiment, the above formula (4) can also be expressed by the following formula (8): In formula (7), R represents the fuzzy relation matrix, and × represents the minimum operation in fuzzy reasoning.
[0049] More specifically, the Cartesian product of the binary fuzzy relation E×EC on the domain of e×ec can be calculated using the above formula (4), which is represented by the Cartesian product matrix of the above formula (5). k After that, each D k Rewrite as a column vector Coming soon k After writing down the elements of each row in column order, write down the elements of the second row, and similarly for the other rows, to obtain the transposed matrix of each Cartesian product matrix, and then calculate e×ec×K p The ternary fuzzy relation E×EC×K in the domain of discourse p , the ternary fuzzy relationship is as shown in the above formula (7), R K Represents the value of the ternary fuzzy relationship. By rewriting equation (7) and combining the ternary fuzzy relationships in each control stage, the fuzzy relationship function shown in equation (4) above can be obtained.
[0050] Optionally, in the above step S2, a global fuzzy relationship control function is constructed according to the fuzzy relationship functions in each control stage, specifically including: Based on the summation of the fuzzy relationship functions of each control stage, the global fuzzy relationship control function is obtained. The global fuzzy relationship control function is shown in the following formula (9): Specifically, since each control stage corresponds to a fuzzy relationship matrix R K , when all R K After that, the overall fuzzy relationship control function R (global fuzzy control function) can be established as shown in the above formula (9).
[0051] In this embodiment, the PID parameter adaptive strategy can be used to control the various control parameters of the PID controller to achieve the K of the PID. p , K i and K d The three control parameters are adaptively corrected, and the PID control contains an integral effect, which can overcome the oscillation and steady-state error that may be generated by the fuzzy controller when the deviation tends to zero, and theoretically achieve zero-static error regulation. In addition, the PID parameter adaptive strategy is combined to construct a global fuzzy relationship control function, taking into account K p The control accuracy of the system is affected the most. Therefore, e, ec and K are constructed. p The fuzzy relationship between them can be used to further accurately calculate the output of the system. The higher the control accuracy of the output, the higher the torque control accuracy of the tail rope, which can improve the control accuracy of the tail rope tension.
[0052] S3. Determine the output fuzzy set of the PID controller according to the global fuzzy relationship control function through a fuzzy inference algorithm.
[0053] Specifically, based on each fuzzy relation subset in the global fuzzy relation control function, the output fuzzy set of the output linguistic variable of the PID controller on the domain is calculated by the fuzzy inference algorithm. The output fuzzy set is shown in the following formula (10): In the formula, The composition operation representing the fuzzy relation, Represents the row vector of the fuzzy relationship matrix.
[0054] Among them, the fuzzy reasoning algorithm (reasoning synthesis rule) is to fuzzify the input variables (input data) through the input membership function, that is, to convert the determined input into a fuzzy set described by the membership function. Then, the fuzzy reasoning rules are constructed into a rule base. According to the rule base, the fuzzified input variables are reasoned through the fuzzy reasoning engine to obtain the reasoning result. Finally, the reasoning result is defuzzified through the output membership function to obtain the final output result. In this process, the membership value of the membership function is usually taken as the true value for fuzzy reasoning.
[0055] Specifically, after obtaining the global fuzzy control function R based on the membership function, the output fuzzy set of the corresponding output linguistic variables of the PID controller on the domain can be calculated by inference synthesis rules according to the subset of the input linguistic variables of the PID controller on the domain, as shown in the above formula (10). According to the above column vector The calculation method of is solved.
[0056] S4. Obtain the target output based on the output fuzzy set of the PID controller, and control the tail rope retracting and releasing device according to the target output.
[0057] Combination Figure 4 As shown in the figure, since the result of fuzzy reasoning output is a fuzzy set, but the controlled object is an exact quantity, after calculating the output fuzzy set, it is necessary to extract an exact control quantity from the output fuzzy set, and use the selected control quantity as the target output of the system, and use the target output as the next round of feedback control closed loop to control the motor torque of the tail rope retracting and releasing device.
[0058] Optionally, in the above step S4, obtaining the target output based on the output fuzzy set of the PID controller specifically includes: S41, establishing a mapping relationship between the output quantity fuzzy set and the standard set based on a preset conversion algorithm, and calculating the output quantity comparison value based on the mapping relationship; S42, comparing the output comparison value with each output value in the output fuzzy set, and taking the output value with the smallest error with the output comparison value as the target output.
[0059] Specifically, a mapping relationship between the output fuzzy set and the standard set can be constructed based on a preset conversion algorithm to convert the fuzzy quantity into an accurate quantity. The process of converting the fuzzy quantity into an accurate quantity is called clarification, defuzzification or fuzzy judgment. The preset conversion algorithm is the fuzzy judgment method, including the maximum membership method, the centroid method, the weighted average method, etc. The maximum membership method is to select the element with the largest membership value in the output fuzzy set as the output value; the centroid method is to calculate a centroid based on the membership function value of all elements in the output fuzzy set, and use the centroid as the output value; the weighted average method is to perform a weighted average of the membership values of each element in the output fuzzy set to obtain the output value.
[0060] As a possible implementation method, the target output is selected by weighted average method in this application. Assume that there are n elements in the output fuzzy set, each element is x i , the membership degree of the fuzzy set of the decision output on each domain element is μ u (x i ), μ u (x i ) as the domain element x i The weighted coefficient of the weighted average method is shown in the following formula (11): After the final decision value calculated according to formula (11) is the above-mentioned output comparison value, each element in the output fuzzy set R can be traversed, the output comparison value is subtracted from each output value in the output fuzzy set, and the output with the smallest error is selected as the target output.
[0061] In the embodiment of the present invention, by constructing the functional relationship between the system input parameters and each control parameter in the PID controller, and combining the PID parameter adaptive strategy to determine the fuzzy relationship function between the system input parameters and each control parameter in the PID controller in each control stage, because the constructed fuzzy relationship function has the function of online parameter adaptiveness and contains integral effect, it can not only realize the adaptive adjustment of each control parameter, but also overcome the oscillation and steady-state error that may be generated by the fuzzy controller when the system error tends to zero, and realize zero-static error adjustment, so that a more accurate target output can be calculated, and the torque, speed and other parameters of the motor in the tail rope retracting and releasing device can be more accurately controlled according to the target output, thereby controlling the tail rope tension and ensuring that the motor in the control system has good dynamic and static performance. In addition, the strong adaptability of the fuzzy reasoning algorithm can be combined with the fuzzy relationship function to calculate the target output more quickly, which is conducive to improving the control efficiency.
[0062] Embodiment 2 Please refer to Figure 5 , Figure 5 1 is a schematic diagram of the structure of a control system of a tail rope retracting and releasing device based on fuzzy parameter control provided by an embodiment of the present invention. The control system M50 of the tail rope retracting and releasing device based on fuzzy parameter control includes: The data acquisition module M501 acquires the system input parameters and establishes the target control function between the system input parameters and the control parameters in the PID controller in each control stage; The relationship building module M502 is used to build the fuzzy relationship function between the system input parameters and each control parameter in the PID controller in each control stage based on the target control function and the PID parameter adaptive strategy, and to build a global fuzzy relationship control function based on the fuzzy relationship function in each control stage; A calculation module M503 is used to determine the output fuzzy set of the PID controller according to the global fuzzy relationship control function through a fuzzy inference algorithm; The output control module M504 is used to obtain the target output based on the output fuzzy set of the PID controller, and to control the tail rope retracting and releasing device according to the target output.
[0063] The fuzzy parameter control PID algorithm system based on the tail rope retracting and releasing device provided in the embodiment of the present invention can realize each process in the control method of the tail rope retracting and releasing device based on fuzzy parameter control, and can achieve the same beneficial effect. To avoid repetition, it will not be described here.
[0064] The embodiment of the present invention also provides a computer device, please refer to Figure 6 , Figure 6 : is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. The computer device D60 includes: a processor D601, a memory D602, and a computer program stored in the memory D602 and executable on the processor D601. The processor D601 calls the computer program stored in the memory D602 to execute each step of the control method of the tail rope retracting and releasing device based on fuzzy parameter control provided in an embodiment of the present invention, and can achieve the same technical effect, refer to the description in the above embodiment, and will not be repeated here.
[0065] It should be pointed out that those skilled in the art can understand that the electronic device in the embodiment of the present invention is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc. The electronic device can be a computing device such as a desktop computer, a notebook, a handheld computer, and a cloud server. The electronic device can perform human-computer interaction through a keyboard, a mouse, a remote control, a touchpad, or a voice-controlled device.
[0066] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes and steps in the control method of the tail rope retracting and releasing device based on fuzzy parameter control provided in the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0067] It should be noted that the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory may be an internal storage unit of an electronic device, such as a hard disk or memory of the electronic device. In other embodiments, the memory may also be an external storage device of an electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Of course, the memory may also include both the internal storage unit of the electronic device and its external storage device. In this embodiment, the memory is generally used to store operating devices and various application software installed in the electronic device, such as program codes of a control method of a tail rope retracting and releasing device based on fuzzy parameter control, etc. In addition, the memory may also be used to temporarily store various types of data that have been output or are to be output.
[0068] A person skilled in the art can understand that all or part of the processes in the control method of the tail rope retracting and releasing device based on fuzzy parameter control in the above embodiment can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of various embodiments of the control method of the tail rope retracting and releasing device based on fuzzy parameter control. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0069] The above specific implementation is a preferred implementation of the control method of the tail rope retracting and releasing device based on fuzzy parameter control of the present invention, and is not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to this specific implementation. All equivalent changes made in accordance with the shape and structure of the present invention are within the protection scope of the present invention.
Claims
1. A control method for a tail rope retracting and releasing device based on fuzzy parameter control, characterized in that: The following steps are involved: Obtaining system input parameters, and establishing a target control function between the system input parameters and each control parameter in the PID controller in each control stage; Based on the target control function, a fuzzy relationship function between the system input parameter and each control parameter in the PID controller at each control stage is constructed according to the PID parameter adaptive strategy, and a global fuzzy relationship control function is constructed according to the fuzzy relationship function at each control stage; Determine the output fuzzy set of the PID controller according to the global fuzzy relationship control function by using a fuzzy inference algorithm; The target output is obtained based on the output fuzzy set of the PID controller, and the tail rope retracting and releasing device is controlled according to the target output.
2. The control method of the tail rope retracting and releasing device based on fuzzy parameter control according to claim 1, characterized in that: The obtaining of system input parameters and establishing a target control function between the system input parameters and each control parameter in the PID controller in each control stage include: The system input parameters are obtained, and the system input parameters include the system error and the system error change rate of the PID controller; the target control function of the PID controller under periodic sampling is constructed according to the system error of the PID controller, the system error change rate and each control parameter in the PID controller, and the target control function is as follows: Where, e(k) represents the system error at the kth acquisition time, ec(k) represents the rate of change of the system error at the kth acquisition time, and K p Represents the proportionality coefficient, K i Indicates the integral action coefficient, K d represents the differential action coefficient, and T represents the sampling period.
3. The control method of the tail rope retracting and releasing device based on fuzzy parameter control according to claim 2, characterized in that: The target control function is based on the PID parameter adaptive strategy to construct the fuzzy relationship function between the system input parameters and each control parameter in the PID controller in each control stage, including: Determine the PID parameter adaptive strategy according to the functional relationship between the system error in the target control function, the system error change rate and each of the control parameters, and the control stage of the PID controller; Based on the PID parameter adaptive strategy, the fuzzy relationship function between the system input parameter and each control parameter based on periodic sampling in each control stage is constructed, and the fuzzy relationship function is as follows: Where R represents the fuzzy relationship matrix, and P represents the nth rule statement in each control stage in the fuzzy relationship.
4. The control method of the tail rope retracting and releasing device based on fuzzy parameter control according to claim 3, characterized in that: The step of determining the PID parameter adaptive strategy according to the functional relationship between the system error in the target control function, the system error change rate and each of the control parameters and the control stage of the PID controller comprises: Determine the control stage of the current output response of the PID controller, wherein the control stage includes a first control stage, a second control stage, and a third control stage; If in the first control stage, the PID controller is controlled to output at a maximum value, the proportional coefficient is controlled to satisfy a first proportional coefficient range, the differential action coefficient is controlled to satisfy a first differential action coefficient range, and the integral action coefficient is controlled to be zero; If in the second control stage, the proportional coefficient is controlled to satisfy the second proportional coefficient range, the differential action coefficient is controlled to satisfy the second differential action coefficient range, and the integral action coefficient is controlled to satisfy the first integral action coefficient range; If in the third control stage, the proportional coefficient is controlled to satisfy the third proportional coefficient range, the differential action coefficient is controlled to satisfy the third differential action coefficient range, and the integral action coefficient is controlled to satisfy the second integral action coefficient range.
5. The control method of the tail rope retracting and releasing device based on fuzzy parameter control according to claim 3, characterized in that: The method of constructing the fuzzy relationship function between the system input parameter and each control parameter based on periodic sampling in each control stage based on the PID parameter adaptive strategy includes: The membership function of each control stage is constructed, and the membership function is as follows: In the formula, μ represents the degree of membership, E represents the system error matrix, EC represents the system error change rate matrix, ΔK p represents the proportional coefficient variation matrix, i, j∈n, n=1, 2, ..., n, n represents the total number of input fuzzy relations; The Cartesian product matrix of the binary fuzzy relationship between the system error matrix and the system error change rate matrix on the domain is calculated according to the membership function, and the Cartesian product is as follows: D k =E i ×EC j ; Where D k Denotes the Cartesian product matrix, the Cartesian product D k The membership degree corresponding to the matrix is: The Cartesian product matrix is transposed to obtain a transposed matrix, and the ternary fuzzy relationship between the system error, the system error change rate and the proportional coefficient on the domain is calculated according to the transposed matrix and the proportional coefficient matrix. The ternary fuzzy relationship is as follows: The fuzzy relationship function corresponding to each control stage is obtained by performing conversion according to the ternary fuzzy relationship of each control stage.
6. The control method of the tail rope retracting and releasing device based on fuzzy parameter control according to claim 3, characterized in that: The constructing of a global fuzzy relationship control function according to the fuzzy relationship functions in each control stage includes: summing the fuzzy relationship functions in each control stage to obtain the global fuzzy relationship control function, wherein the global fuzzy relationship control function is as follows:
7. The control method of the tail rope retracting and releasing device based on fuzzy parameter control according to claim 3, characterized in that: The method of determining the output fuzzy set of the PID controller according to the global fuzzy relationship control function by using a fuzzy inference algorithm includes: calculating the output fuzzy set of the output linguistic variable of the PID controller on the domain of discourse by using a fuzzy inference algorithm based on each fuzzy relationship subset in the global fuzzy relationship control function, wherein the output fuzzy set is as follows: In the formula, The composition operation representing the fuzzy relation, Represents the row vector of the fuzzy relationship matrix.
8. The control method of the tail rope retracting and releasing device based on fuzzy parameter control according to any one of claims 1 to 7, characterized in that: The step of obtaining a target output quantity based on the output quantity fuzzy set of the PID controller comprises: Establishing a mapping relationship between the output quantity fuzzy set and the standard set based on a preset conversion algorithm, and calculating an output quantity comparison value based on the mapping relationship; The output comparison value is compared with each output value in the output fuzzy set, and the output value with the smallest error with the output comparison value is taken as the target output.
9. The control method of the tail rope retracting and releasing device based on fuzzy parameter control according to any one of claims 1 to 7, characterized in that: The method further includes: determining a sampling period based on a time sampling function, wherein the time sampling function is as follows: In the formula, ω max is the upper angular frequency of the sampling signal.
10. A control system for a tail rope retracting and releasing device based on fuzzy parameter control, characterized in that the system include: A data acquisition module is used to acquire system input parameters and establish a target control function between the system input parameters and each control parameter in the PID controller in each control stage; A relationship building module, used for building a fuzzy relationship function between the system input parameter and each control parameter in the PID controller at each control stage based on the target control function and according to the PID parameter adaptive strategy, and building a global fuzzy relationship control function according to the fuzzy relationship function at each control stage; A calculation module, used for determining the output fuzzy set of the PID controller according to the global fuzzy relationship control function through a fuzzy inference algorithm; The output control module is used to obtain a target output based on the output fuzzy set of the PID controller, and to control the tail rope retracting and releasing device according to the target output.
