CN109445279B - Parameter adjusting method and electronic equipment - Google Patents

Parameter adjusting method and electronic equipment Download PDF

Info

Publication number
CN109445279B
CN109445279B CN201811205887.2A CN201811205887A CN109445279B CN 109445279 B CN109445279 B CN 109445279B CN 201811205887 A CN201811205887 A CN 201811205887A CN 109445279 B CN109445279 B CN 109445279B
Authority
CN
China
Prior art keywords
parameter
value
parameter value
actual
iteration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811205887.2A
Other languages
Chinese (zh)
Other versions
CN109445279A (en
Inventor
马军超
李冬冬
周琦
李涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China General Nuclear Power Corp
China Nuclear Power Technology Research Institute Co Ltd
CGN Power Co Ltd
Original Assignee
China General Nuclear Power Corp
China Nuclear Power Technology Research Institute Co Ltd
CGN Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China General Nuclear Power Corp, China Nuclear Power Technology Research Institute Co Ltd, CGN Power Co Ltd filed Critical China General Nuclear Power Corp
Priority to CN201811205887.2A priority Critical patent/CN109445279B/en
Publication of CN109445279A publication Critical patent/CN109445279A/en
Application granted granted Critical
Publication of CN109445279B publication Critical patent/CN109445279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/0205Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric not using a model or a simulator of the controlled system
    • G05B13/024Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric not using a model or a simulator of the controlled system in which a parameter or coefficient is automatically adjusted to optimise the performance

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a parameter adjusting method, which comprises the following steps: (1) sending a parameter adjusting command to a system so that the system adjusts parameters to target parameter values according to the parameter adjusting command; (2) and (3) reading back the actual parameter value fed back by the system, judging whether the difference value between the target parameter value and the actual parameter value is within a preset threshold range, if so, finishing, otherwise, calculating the target parameter value according to a Newton iteration algorithm, and repeating the steps (1) - (2). The method can adjust the actual parameter value step by using a Newton iterative algorithm, so that the actual parameter value is infinitely close to the theoretical parameter value, and the adjustment precision is high.

Description

Parameter adjusting method and electronic equipment
Technical Field
The invention relates to the field of control application, in particular to a method for adjusting a system parameter fixed value with high accuracy.
Background
In the prior art, when parameters of a digital instrument and a control system of a nuclear power station are adjusted, due to influences caused by an integrated circuit manufacturing process, circuit temperature drift and the like, a theoretical parameter to be adjusted and an actual parameter value have a large deviation, even if the modified parameter value is fed back, the modified parameter can only be determined in time, and precision adjustment cannot be performed. Therefore, a parameter adjustment method capable of solving the above problems is urgently needed.
Disclosure of Invention
The invention aims to provide a parameter adjusting method and electronic equipment, which can adjust actual parameter values step by using a Newton iterative algorithm so that the actual parameter values are infinitely close to theoretical parameter values and the adjusting precision is high.
In order to achieve the purpose, the invention discloses a parameter adjusting method for adjusting parameters of a digital instrument and a control system of a nuclear power station, which comprises the following steps: (1) sending a parameter adjusting command to a system so that the system adjusts parameters to target parameter values according to the parameter adjusting command; (2) and (3) reading back the actual parameter value fed back by the system, judging whether the difference value between the target parameter value and the actual parameter value is within a preset threshold range, if so, finishing, otherwise, calculating the target parameter value according to a Newton iteration algorithm, and repeating the steps (1) - (2).
Compared with the prior art, the method can use Newton iterative algorithm to adjust the actual parameter value step by step, so that the actual parameter value is infinitely close to the theoretical parameter value, and the adjustment precision is high.
Preferably, the initial adjustment point (x) is set0,y0) As a first adjustment point, y0For initial actual parameter values, x0The method for calculating the target parameter according to the Newton iterative algorithm for the initial target parameter value comprises the following steps: starting from one generation, i generation iteration is carried out, and a functional relation y is assumedi=f(xi) Correcting y according to one or more adjustment points closest to the theoretical adjustment pointi=f(xi) Root of function, assuming actual parameter values yiIs equal to the initial target parameter value x0And through yi=f(xi) Obtaining the target parameter value x of the i generation iteration by inverse solutioniRepeating the steps (1) to (2) to obtain an ith adjustment point (x) close to the theoretical adjustment pointi,yi),yiFor the actual parameter values of the i-generation iteration, the target parameter value x is judgediWith the value of the actual parameter yiIf the difference value is not within the preset threshold value range, ending the processAnd if the threshold value is within the range, carrying out next generation iteration.
Functional relationship yi=f(xi) Is a linear equation yi=kixiIn the i-generation iteration, according to the two adjustment points (x) closest to the theoretical adjustment pointi-1,yi-1)、(xi-2,yi-2) K value of modified linear equation:
Figure GDA0003544795950000021
in one iteration, according to the initial adjustment point (x)0,y0) Determination of yi=f(xi) Root of function of
Figure GDA0003544795950000022
Preferably, when step (2) is executed after a generation of iteration, it is not determined whether the difference between the target parameter value and the actual parameter value is within a preset threshold range, and step (1) is directly executed after the actual parameter value fed back by the system is read back.
Preferably, in the step (2), the actual parameter value fed back by the system is read back to determine whether the modification fails or the communication is abnormal, and if so, an alarm is given.
Preferably, a serial port RS232 protocol is adopted to carry out two-way communication with the system, and CRC-16 is adopted to check whether the communication data packet is correct or not during communication, if so, the data is valid, and if not, the data is discarded.
Specifically, the step of checking whether the communication data packet is correct by using the CRC-16 includes: and judging whether the waiting time is overtime or not, if so, returning, otherwise, reading data by the serial port, judging whether the data start flag bit is correct or not, if so, judging whether the number of bytes of the frame is correct or not, if so, judging whether the CRC-16 check code is correct or not, if so, judging that the data is valid, and if not, judging that the data is invalid and discarding the data.
Preferably, the system is a nuclear power plant digital meter and control system.
The invention discloses an electronic device comprising one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs including instructions for performing a parameter adjustment method as described above.
The invention also discloses a computer readable storage medium comprising a computer program for use in conjunction with an electronic device having a memory, the computer program being executable by a processor to perform a parameter adjustment method as described above.
Drawings
Fig. 1 is a flow chart of a parameter adjustment method according to the present invention.
Fig. 2 is a flow chart of the present invention for checking data using a CRC-16 check on a communication data packet.
Detailed Description
In order to explain technical contents, structural features, and objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1, the present invention discloses a parameter adjusting method 100, which comprises the following steps: (11) sending a parameter adjusting command to a system so that the system adjusts parameters to target parameter values according to the parameter adjusting command; (12) reading back an actual parameter value fed back by the system, (13) judging whether a difference value between the target parameter value and the actual parameter value is within a preset threshold range, if so, ending (14), otherwise, calculating the target parameter value according to (15) a Newton iteration algorithm, and repeating the steps. The system is a nuclear power station digital instrument and control system, and the parameter adjusting method is a parameter adjusting method of the nuclear power station digital instrument and control system. And i is 1, 2, 3, 4 and the like, and the step (15) is iterated gradually from one generation until the difference value between the target parameter value and the actual parameter value is within the preset threshold value range, so as to complete the adjustment of the parameter.
The specific process of the actual parameter value fed back by the read-back system is as follows: and sending a reading command to the system, and feeding back the modified parameter value, namely the actual parameter value, by the system according to the reading command.
Preferably, in the step (12), the actual parameter value fed back by the system is read back, and then a step (16) is further included to judge whether the modification fails or the communication is abnormal, and if so, an alarm is given (17).
The invention adopts a serial port RS232 protocol to carry out two-way communication with the system, and adopts CRC-16 to check whether the communication data packet is correct or not during communication, if so, the data is valid, and if not, the data is discarded.
The basic format of the data packet is shown in the following table one:
Figure GDA0003544795950000031
watch 1
Referring to fig. 2, the step of checking the communication data packet using CRC-16 includes: (41) and judging whether the waiting time is overtime or not, if so, returning, if not, 42, reading data by the serial port, 43, judging whether the data start flag bit is correct or not, if so, 44, judging whether the number of bytes of the frame is correct or not, if so, 45, judging whether the CRC-16 check code is correct or not, if so, 46, judging that the data is valid, otherwise, 47, judging that the data is invalid and 48, discarding the data.
Wherein, the step (15) specifically comprises: according to the actual parameter value yiAnd an initial target parameter value xiDetermining k x as the linear equation y; y is0As initial actual parameter value, x0Is an initial target parameter value, xiFor the actual parameter values of the i-th iteration, xiIs the target parameter value for the i-generation iteration. Iteration i generation is performed starting from one generation: two points (x) are selected which are closesti-1,yi-1)、(xi-2,yi-2) K value of modified linear equation:
Figure GDA0003544795950000041
when i is 1, selecting point (x)0,y0) Determining the k value k of a linear equation0(ii) a Assuming the actual value y of the parameteriIs equal to the initial target parameter value x0According to linear equation yi=ki-1xiSolving backwards to obtain target parameter values
Figure GDA0003544795950000042
Repeating the steps (1) to (2) to set the target parameter value as xiIs sent to the system and read back to obtain the actual parameter value yiIf the target parameter value xiWith the value of the actual parameter yiIf the difference value is not within the preset threshold range, the step is repeated to carry out the next generation of iteration (i +1 generation of iteration). i is 1, 2, 3, 4 up to infinity.
The specific process of the reference regulation method of the present invention is described in detail below:
after starting, (21) sending the system with the initial target reference value x0To perform a first adjustment.
(22) Reading back the system to obtain the fed back initial reference actual value y0So as to obtain a first adjustment point: initial adjustment point (x)0,y0)。
(23) Judging the initial reference actual value y0With an initial target reference value x0If the difference value is within the preset threshold range, ending the process if the difference value is within the preset threshold range, and otherwise executing the step (24).
(24) Performing one iteration: according to the initial actual parameter value y0And an initial target parameter value x0Determination of the Linear equation y0=k0x0Assuming the actual parameter value y1Is equal to the initial target parameter value x0According to linear equation y0=k0x0Solving backwards to obtain target parameter values
Figure GDA0003544795950000051
(25) Sending the target reference value x to the system1To perform a second adjustment.
(26) Reading back the system to obtain a fed back reference actual value y1So as to obtain a second adjustment point: (x)1, y1) And step (27) is performed.
(27) Performing a second iteration: selecting the two closest points (x)1,y1)、(x0,y0) K value of modified linear equation:
Figure GDA0003544795950000052
assuming the actual parameter value y2Is equal to the initial target parameter value x0According to linear equation y2=k1x0Solving backwards to obtain target parameter values
Figure GDA0003544795950000053
(28) Sending the target reference value x to the system2To perform a third adjustment.
(29) Reading back the system to obtain a fed back reference actual value y2So as to obtain a third adjustment point: (x)2, y2) And step (30) is performed.
(30) Judging the initial reference actual value y2With an initial target reference value x2And (4) judging whether the difference value is within the preset threshold range, if so, finishing, and otherwise, executing the step (31).
(31) Three iterations were performed: two points (x) are selected which are closest2,y2)、(x1,y1) K value of modified linear equation:
Figure GDA0003544795950000054
assuming the actual parameter value y3Is equal to the initial target parameter value x0According to linear equation y3=k2x0Solving backwards to obtain target parameter values
Figure GDA0003544795950000055
(32) Sending the target reference value x to the system3The parameter adjustment command of (2) to perform a fourth adjustment.
(32) Reading back the system to obtain a fed back reference actual value y3So as to obtain a fourth adjustment point: (x)3, y3) And performing the step(33)。
(33) Judging the initial reference actual value y2With an initial target reference value x2If the difference value is within the range of the preset threshold value, ending the iteration if the difference value is within the range of the preset threshold value, and otherwise, carrying out the iteration of the next generation, and sequentially carrying out the iteration of the generation i + 1. i represents the current iteration.
In the above steps, after the first generation iteration, it is not determined whether the difference between the target parameter value and the actual parameter value is within the preset threshold range, and after the actual parameter value fed back by the system is read back, the parameter adjustment command is directly sent back to the system, and the actual parameter value is read back and enters the second generation iteration.
Of course, alternatively, the linear equation y-k x may be determined by another function equation y-f (x) according to the rule of deviation such as actual system drift. The value K is the root of the function y ═ f (x).
Of course, when the closest point is selected to perform i +1 iteration to determine the target parameter value, the target parameter value may be determined according to the number of adjustment points, such as one, two, three, and the like, closest to the theoretical point, where the number of adjustment points is determined by the type of the function y ═ f (x), and in the linear equation, two adjustment points may be used. When the number of the existing adjusting points cannot satisfy the function y ═ f (x) in the initial iteration, the existing adjusting points can be replaced by some preset points such as (0,0) points. For example, when the function is a linear equation, a preset adjustment point (0,0) is used instead of one adjustment point in one generation of iteration.
The invention discloses an electronic device comprising one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing the parameter adjustment method as described above.
The present invention discloses a computer readable storage medium comprising a computer program for use in conjunction with an electronic device having a memory, the computer program being executable by a processor to perform a parameter adjustment method as described above.
The above disclosure is only for the preferred embodiment of the present invention, and it should be understood that the present invention is not limited thereto, and the invention is not limited to the above disclosure.

Claims (8)

1. A method of parameter adjustment, comprising: the parameter adjustment method for the digital instrument and control system of the nuclear power plant comprises the following steps:
(1) sending a parameter adjusting command to a system so that the system adjusts parameters to target parameter values according to the parameter adjusting command;
(2) reading back the actual parameter value fed back by the system, judging whether the difference value between the target parameter value and the actual parameter value is within a preset threshold range, if so, ending, otherwise, calculating the target parameter value according to a Newton iteration algorithm, and repeating the steps (1) - (2);
will initially adjust the point (x)0,y0) As a first adjustment point, y0For initial actual parameter values, x0The method for calculating the target parameter according to the Newton iterative algorithm for the initial target parameter value comprises the following steps: starting from one generation, i generation iteration is carried out, and a functional relation y is assumedi=f(xi) Correcting y according to one or more adjustment points closest to the theoretical adjustment pointi=f(xi) Root of function, assuming actual parameter values yiIs equal to the initial target parameter value x0And through yi=f(xi) Obtaining the target parameter value x of the i generation iteration by inverse solutioniRepeating the steps (1) to (2) to obtain the ith adjustment point (x) close to the theoretical adjustment pointi,yi),yiFor the actual parameter values of the i-generation iteration, the target parameter value x is judgedi With the value of the actual parameter yiIf the difference value is not in the preset threshold range, the next generation iteration is carried out.
2. The parameter adjustment method according to claim 1, wherein:
functional relationship yi=f(xi) Is a linear equation yi=kixiIn the i generationIn iteration, according to the two adjustment points (x) closest to the theoretical adjustment pointi-1,yi-1)、(xi-2,yi-2) K value of modified linear equation:
Figure FDA0003544795940000011
wherein, in one generation iteration, the initial adjusting point (x) is determined0,y0) Determination of yi=f(xi) Root of function of
Figure FDA0003544795940000012
3. The parameter adjustment method according to claim 1, wherein: and (3) when the step (2) is executed after a generation of iteration, directly returning to execute the step (1) after reading back the actual parameter value fed back by the system without judging whether the difference value between the target parameter value and the actual parameter value is within a preset threshold value range.
4. The parameter adjustment method according to claim 1, wherein: and (2) reading back the actual parameter value fed back by the system to judge whether the modification fails or the communication is abnormal, and if so, alarming.
5. The parameter adjustment method according to claim 1, wherein: and performing two-way communication with the system by adopting a serial port RS232 protocol, and checking whether the communication data packet is correct or not by adopting CRC-16 during communication, wherein if the communication data packet is correct, the data is valid, and if the communication data packet is not correct, the data is discarded.
6. The parameter adjustment method of claim 5, wherein: the step of checking the data using the CRC-16 check communication packet includes: and judging whether the waiting time is overtime or not, if so, returning, otherwise, reading data by the serial port, judging whether the data start flag bit is correct or not, if so, judging whether the number of bytes of the frame is correct or not, if so, judging whether the CRC-16 check code is correct or not, if so, judging that the data is valid, and if not, judging that the data is invalid and discarding the data.
7. An electronic device, characterized in that: the method comprises the following steps:
one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the programs comprising instructions for performing the parameter adjustment method of any of claims 1-6.
8. A computer readable storage medium comprising a computer program for use in conjunction with an electronic device having a memory, characterized in that: the computer program is executable by a processor to perform the parameter adjustment method according to any one of claims 1-6.
CN201811205887.2A 2018-10-16 2018-10-16 Parameter adjusting method and electronic equipment Active CN109445279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811205887.2A CN109445279B (en) 2018-10-16 2018-10-16 Parameter adjusting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811205887.2A CN109445279B (en) 2018-10-16 2018-10-16 Parameter adjusting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN109445279A CN109445279A (en) 2019-03-08
CN109445279B true CN109445279B (en) 2022-07-05

Family

ID=65546656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811205887.2A Active CN109445279B (en) 2018-10-16 2018-10-16 Parameter adjusting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN109445279B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166747A (en) * 2019-05-05 2019-08-23 深圳中电益为科技有限公司 A kind of monitor cluster control system and management method
CN111664147A (en) * 2020-06-10 2020-09-15 广东博智林机器人有限公司 Clamping device, control method, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5220524A (en) * 1990-12-13 1993-06-15 Micron Technology, Inc. Machine method to perform newton iterations for reciprocals
CN102508167A (en) * 2011-10-25 2012-06-20 上海交通大学 Device and method for automatically testing and calibrating parameters of battery management systems
CN104571166A (en) * 2014-11-24 2015-04-29 河海大学常州校区 Method for evaluating performance of variable-air-volume air conditioner system based on controller parameters
CN104597847A (en) * 2013-10-31 2015-05-06 中国科学院沈阳计算技术研究所有限公司 Akima spline fitting based look-ahead interpolation method
CN106709193A (en) * 2016-12-30 2017-05-24 西北工业大学 Aero-engine thin-wall blade processing bias compensation method based on learning algorithm
CN108247434A (en) * 2018-01-17 2018-07-06 华侨大学 A kind of abrasive grain cuts thick distributed problem solving method and its application method in grinding process design

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5220524A (en) * 1990-12-13 1993-06-15 Micron Technology, Inc. Machine method to perform newton iterations for reciprocals
CN102508167A (en) * 2011-10-25 2012-06-20 上海交通大学 Device and method for automatically testing and calibrating parameters of battery management systems
CN104597847A (en) * 2013-10-31 2015-05-06 中国科学院沈阳计算技术研究所有限公司 Akima spline fitting based look-ahead interpolation method
CN104571166A (en) * 2014-11-24 2015-04-29 河海大学常州校区 Method for evaluating performance of variable-air-volume air conditioner system based on controller parameters
CN106709193A (en) * 2016-12-30 2017-05-24 西北工业大学 Aero-engine thin-wall blade processing bias compensation method based on learning algorithm
CN108247434A (en) * 2018-01-17 2018-07-06 华侨大学 A kind of abrasive grain cuts thick distributed problem solving method and its application method in grinding process design

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于NURBS插补算法的汽轮机叶片数控加工;乐英 等;《组合机床与自动化加工技术》;20170131(第1期);第78-81页 *

Also Published As

Publication number Publication date
CN109445279A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
US12026618B2 (en) Method and system for training machine learning system
CN109445279B (en) Parameter adjusting method and electronic equipment
CN104102836B (en) A kind of quick robust state estimation method of electric system
KR20160013012A (en) Methods for ascertaining a model of a starting variable of a technical system
CN113158589B (en) Simulation model calibration method and device of battery management system
CN109284062B (en) Touch data processing method, device, terminal and medium
CN116318449B (en) Temperature calibration method and device
CN107678779A (en) A kind of timed task performs method and electronic equipment
CN102323198B (en) Method and system for correcting rock electricity experiment parameters m and n of core
US10984163B1 (en) Systems and methods for parallel transient analysis and simulation
CN111854109A (en) Indoor temperature control method and device, electronic equipment and storage medium
CN106057243B (en) Method and device is determined using reference voltage is read
CN107666107B (en) Method of correcting laser power, laser, storage medium, and electronic apparatus
CN116614620B (en) High-pixel optical lens assembly equipment and control method
CN110231772B (en) Method, device and equipment for acquiring process model
CN105528735B (en) Bearing calibration based on the exceptional data point for measuring wind speed and spatial coherence
CN110133348B (en) Method and system for compensating self-heating error of electric energy meter and storage medium
CN110113098B (en) Error code estimation method and device for quantum key distribution system
CN108875927B (en) Convergence method and device of high-dimensional deep learning model
CN108259396B (en) Method, apparatus and storage medium for parameter estimation
JP2008124075A (en) Ion implantation simulation method, simulator, and simulation program
TWI819564B (en) Method for adjusting audio frequency and audio frequency adjusting device
CN114326868B (en) Chip temperature feedback method and device, storage medium and chip temperature control method
CN110059707B (en) Method, device and equipment for optimizing image feature points
CN113640115B (en) Optimization method and system suitable for solving inverse problem of quasi-isentropic compression experimental data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant