CN105654187A - Grid binary tree method of control system midpoint locating method - Google Patents
Grid binary tree method of control system midpoint locating method Download PDFInfo
- Publication number
- CN105654187A CN105654187A CN201510970110.5A CN201510970110A CN105654187A CN 105654187 A CN105654187 A CN 105654187A CN 201510970110 A CN201510970110 A CN 201510970110A CN 105654187 A CN105654187 A CN 105654187A
- Authority
- CN
- China
- Prior art keywords
- hyperplane
- eigenvalues
- binary tree
- grid area
- partition
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000005192 partition Methods 0.000 claims abstract description 87
- 238000007781 pre-processing Methods 0.000 claims abstract description 22
- 238000004364 calculation method Methods 0.000 claims description 16
- 239000011159 matrix material Substances 0.000 claims description 10
- 238000007619 statistical method Methods 0.000 claims description 2
- 238000004904 shortening Methods 0.000 claims 1
- 238000012216 screening Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 6
- 238000005457 optimization Methods 0.000 description 4
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明是针对显式模型预测控制中点定位方法的优化,该网格二叉树法相对于传统的二叉树法,只需面对更少的多胞形分区规模,降低了预处理的复杂度,大大减少了预处理时间。同时它也解决了哈希表法中存在的冲突问题,改进了哈希表法在线计算时间。在存储空间需求这一性能方面,也满足了我们对控制系统的要求。The present invention is aimed at the optimization of the midpoint positioning method of explicit model predictive control. Compared with the traditional binary tree method, the grid binary tree method only needs to deal with fewer polytopic partition scales, reduces the complexity of preprocessing, and greatly reduces preprocessing time. At the same time, it also solves the conflict problem in the hash table method, and improves the online calculation time of the hash table method. In terms of the performance of storage space requirements, it also meets our requirements for the control system.
背景技术Background technique
在传统的模型预测控制中存在反复的在线优化计算,它造成了控制器负荷过重并且效率低下。为了解决这些问题,在2002年前后ManfredMorari和AlbertoBemporad等学者引入了多参数二次规划理论,建立了显式模型预测控制方法体系。它主要是利用模型预测控制系统内在的分段仿射规律,根据控制对象的模型、约束、性能要求等信息,通过多参数二次规划(multi-parametricQuadraticProgram,mp-QP)将系统状态空间划分为一个个凸的分区并预先计算出各个分区上对应的最优控制率。这意味着传统的模型预测控制中复杂费时的在线优化过程被提前到控制系统实际运行前完成,而在线控制时只需确定系统当前状态点所处分区,即可得到相应的最优控制率。这种查找运算的效率远高于反复在线优化计算,控制系统的实时性能得到大幅度提高,同时也降低了对控制系统软硬件的要求。In the traditional model predictive control, there are repeated online optimization calculations, which cause the controller to be overloaded and inefficient. In order to solve these problems, scholars such as Manfred Morari and Alberto Bemporad introduced the multi-parameter quadratic programming theory around 2002, and established an explicit model predictive control method system. It mainly uses the inherent piecewise affine law of the model predictive control system, according to the model, constraints, performance requirements and other information of the control object, and divides the system state space through multi-parametric Quadratic Program (mp-QP). For each convex partition and pre-calculate the corresponding optimal control rate on each partition. This means that the complex and time-consuming online optimization process in traditional model predictive control is completed before the actual operation of the control system, while online control only needs to determine the partition where the current state point of the system is located, and the corresponding optimal control rate can be obtained. The efficiency of this search operation is much higher than repeated online optimization calculation, the real-time performance of the control system is greatly improved, and the requirements for the software and hardware of the control system are also reduced.
根据上面的介绍可以知道显式模型预测控制在线控制阶段的主要任务就是解决点定位问题。顾名思义,点定位问题指的就是判断空间中的状态点处于哪一个分区。这里的分区是指通过多参数二次规划(mp-QP)将状态空间划分为的一个个凸分区,确定点所处的分区目的即取得该分区最优控制率,经过简单换算实现系统最优控制。我们采用的点定位方法的性能直接关系到显式模型预测控制系统的性能,这里点定位方法的性能指的是数据所占存储空间、离线计算时间和在线计算时间三个方面。According to the above introduction, we can know that the main task of the explicit model predictive control online control stage is to solve the problem of point positioning. As the name suggests, the point location problem refers to judging which partition the state point in the space is in. The partition here refers to the convex partitions that divide the state space into convex partitions through multi-parameter quadratic programming (mp-QP). Excellent control. The performance of the point location method we adopt is directly related to the performance of the explicit model predictive control system. The performance of the point location method here refers to three aspects: the storage space occupied by the data, the offline computing time and the online computing time.
传统的点定位方法有直接查找法、可达分区法、哈希表法、二叉树法等等,详细介绍这些方法的公开文献已有许多,这里就不再赘述。虽然它们也能实际有效地解决点定位问题,但是在性能方面已经不能满足我们的控制需求。传统的二叉树方法与其他的点定位方法相比,它在存储空间需求和在线查找效率上有着无法匹敌的优势,但是它的预处理时间却不能满足我们控制系统的要求,传统的哈希表法所展现的在线效率也使我们不敢恭维。这里我们就希望能提出一种新的点定位方法,它需要保留传统二叉树法和哈希表法的优点,同时也要在存储空间需求上有着不俗的表现。Traditional point location methods include direct search method, reachable partition method, hash table method, binary tree method, etc. There are many public documents that introduce these methods in detail, so I won’t repeat them here. Although they can actually and effectively solve the point positioning problem, they can no longer meet our control needs in terms of performance. Compared with other point positioning methods, the traditional binary tree method has unmatched advantages in storage space requirements and online search efficiency, but its preprocessing time cannot meet the requirements of our control system. The traditional hash table method The online efficiency exhibited also leaves us speechless. Here we hope to propose a new point positioning method, which needs to retain the advantages of the traditional binary tree method and hash table method, and also has a good performance in terms of storage space requirements.
发明内容Contents of the invention
本发明要客服传统点定位方法的的上述缺点,提供了一种网格二叉树法。它不仅完整保留了传统二叉树法和哈希表法所展现的低预处理时间和高在线效率,同时它也多少继承了二叉树法在存储空间需求方面的优势。The present invention overcomes the above-mentioned shortcomings of the traditional point positioning method, and provides a grid binary tree method. It not only fully retains the low preprocessing time and high online efficiency exhibited by the traditional binary tree method and hash table method, but also somewhat inherits the advantages of the binary tree method in terms of storage space requirements.
点定位的实质就是在确定空间中某一点所处分区,然后取得此分区控制率实现控制效果。二叉树法的预处理过程中最为复杂耗时的操作是从大量的分区边界超平面中挑选出一组最合适的组合来建立二叉树,这个过程要求在建立二叉树的每个节点时都要执行反复的计算和对比,计算量随着分区的维度和数量成指数增长。而哈希表法中最费时的步骤当属在线阶段时通过直接查找确定状态点所在分区。于是这里我们就结合两个方法,取其精华,去其糟粕,提出了网格二叉树法。The essence of point positioning is to determine the partition of a certain point in the space, and then obtain the control rate of this partition to achieve the control effect. The most complicated and time-consuming operation in the preprocessing process of the binary tree method is to select a group of the most suitable combinations from a large number of partition boundary hyperplanes to build a binary tree. This process requires repeated operations when building each node of the binary tree. For calculation and comparison, the amount of calculation increases exponentially with the dimension and number of partitions. The most time-consuming step in the hash table method is to determine the partition where the state point is located by directly searching during the online stage. So here we combine the two methods, take the essence and discard the dross, and propose the grid binary tree method.
网格二叉树法分为两个主要的阶段——离线预处理阶段和在线计算阶段。离线预处理阶段引入了多参数二次规划理论,计算机能自行将控制系统的状态空间划分为一个个凸的分区并计算得到每个分区对应的控制率,然后我们根据划分参数构建哈希表网格区域多胞形,在存在冲突的网格区域构建二叉树。在线计算阶段首先根据状态点坐标快速确定所在网格区域,经过建立的二叉树筛选或者直接获得状态点控制率,通过简单线性运算得到系统的控制输出量。The grid binary tree method is divided into two main stages - offline preprocessing stage and online calculation stage. The multi-parameter quadratic programming theory is introduced in the offline preprocessing stage. The computer can divide the state space of the control system into convex partitions and calculate the control rate corresponding to each partition. Then we construct a hash table according to the partition parameters. The grid area is polytopic, and a binary tree is constructed in the conflicting grid area. In the online calculation stage, the grid area is quickly determined according to the coordinates of the state points, and the control rate of the state points is obtained through the established binary tree screening or directly, and the control output of the system is obtained through simple linear operations.
本发明所述的控制系统中点定位问题的网格二叉树法,具体包括以下步骤:The grid binary tree method of the midpoint location problem of the control system of the present invention specifically comprises the following steps:
步骤1.网格二叉树法离线预处理过程Step 1. Offline preprocessing process of grid binary tree method
1.1,在控制系统中引入多参数二次规划,将系统状态空间划分为一个个凸的分区,并计算得到每个分区对应的控制率,保存在FG数组中。1.1. Introduce multi-parameter quadratic programming into the control system, divide the system state space into convex partitions, and calculate the control rate corresponding to each partition, and save it in the FG array.
1.2,由确定同义分区的式子计算得到同义分区并分组,每一组同义分区仅保留一个特征值数据,这样就消除了特征值数组FG中的冗余数据。1.2. The synonymous partitions are calculated and grouped by the formula for determining the synonymous partitions, and only one eigenvalue data is reserved for each group of synonymous partitions, thus eliminating redundant data in the eigenvalue array FG.
空间中分区的划分是依据特征值——同一分区中的所有点具有相同的特征值。我们将特征值相等的分区称为同义分区。显式模型预测控制中分区特征值(在这里即显式模型预测控制的控制率)被称为FG矩阵。例如某个显式模型预测控制输出维度为1的二维状态空间分区P的FG矩阵为:The division of partitions in space is based on eigenvalues—all points in the same partition have the same eigenvalues. We refer to partitions with equal eigenvalues as synonymous partitions. The partition eigenvalues in explicit model predictive control (here, the control rate of explicit model predictive control) are called FG matrix. For example, the FG matrix of a two-dimensional state space partition P with an explicit model predictive control output dimension of 1 is:
FG1=[f11f12g1](1)FG 1 =[f 11 f 12 g 1 ](1)
相邻另一个分区Q的FG矩阵为:The FG matrix of another partition Q adjacent to it is:
FG2=[f21f22g2](2)FG 2 =[f 21 f 22 g 2 ](2)
若满足:If satisfied:
(f11-f21)2+(f12-f22)2+(g1-g2)2≤δ(3)(f 11 -f 21 ) 2 +(f 12 -f 22 ) 2 +(g 1 -g 2 ) 2 ≤δ(3)
其中(3)式即为确定同义分区的式子,f和g是组成特征值矩阵的元素,我们需要的控制输出是由特征值和状态向量计算得到。当δ是一个极小的正数,则认为P和Q是同义的,它们互为同义分区。Among them, the formula (3) is the formula for determining the synonymous partition, f and g are the elements that make up the eigenvalue matrix, and the control output we need is calculated from the eigenvalue and the state vector. When δ is a very small positive number, it is considered that P and Q are synonymous, and they are mutually synonymous partitions.
1.3,根据划分参数计算哈希函数,将得到的数据记录于一个数组中,我们把数组命名为Fhash。哈希函数如下式:1.3. Calculate the hash function according to the partition parameters, and record the obtained data in an array. We name the array Fhash. The hash function is as follows:
这里的N代表划分参数,a和b是某个维度上的边界坐标,我们需要记录在数组中的数据为-a和在线计算阶段时就可以通过状态点坐标X快速确定所处哈希表网格区域。N here represents the division parameter, a and b are the boundary coordinates on a certain dimension, and the data we need to record in the array are -a and In the online calculation stage, the grid area of the hash table can be quickly determined by the coordinate X of the state point.
1.4,根据划分参数构造哈希表网格区域多胞形,按照顺序选取第一个网格区域与分区求交,统计在这个网格区域中的特征值数量。1.4. Construct the polytope of the grid area of the hash table according to the partition parameters, select the first grid area to intersect with the partition in order, and count the number of eigenvalues in this grid area.
1.5,判断该网格区域是否存在冲突。网格区域中特征值数量大于1即为存在冲突。若存在冲突,跳转至1.7,开始在网格区域中建立二叉树,若不存在冲突,进入下一步。1.5. Determine whether there is a conflict in the grid area. If the number of eigenvalues in the grid area is greater than 1, there is a conflict. If there is a conflict, skip to 1.7 and start building a binary tree in the grid area. If there is no conflict, go to the next step.
1.6,判断该网格区域是否完全处在对象空间外。若网格区域不与任意一个分区相交,则直接在Hash数组中相应位置记录为0。若网格区域中只存在一种特征值,则直接在Hash数组中相应位置记录特征值编号。完成这步后跳转至1.19。1.6, judge whether the grid area is completely outside the object space. If the grid area does not intersect with any partition, it will be directly recorded as 0 in the corresponding position in the Hash array. If there is only one kind of eigenvalue in the grid area, record the eigenvalue number directly in the corresponding position in the Hash array. Skip to 1.19 after completing this step.
1.7,首先在Hash数组中填入二叉树根节点地址,并标记为负值。接着移除网格区域中线性相关的超平面和对象空间的外部边界,不选择它们作为待选超平面。在这里对象空间中的一个个分区都是由超平面划分而成,二叉树法的原理就是在一个个节点处判断点与超平面的位置关系,确定状态点处于超平面的哪一侧,排除近一半的分区后进入下一个节点继续判断,最后得到状态点所处分区。因此用对象空间的外部边界作为节点判断依据是多余的,它的一侧还是整个对象空间,起不到排除作用。1.7, first fill in the address of the root node of the binary tree in the Hash array, and mark it as a negative value. Then remove the linearly dependent hyperplanes in the grid region and the outer boundaries of the object space, and deselect them as candidate hyperplanes. Here, each partition in the object space is divided by a hyperplane. The principle of the binary tree method is to judge the positional relationship between the point and the hyperplane at each node, determine which side the state point is on the hyperplane, and exclude the near After half of the partitions, enter the next node to continue to judge, and finally get the partition where the status point is located. Therefore, it is redundant to use the outer boundary of the object space as the basis for node judgment, and one side of it is still the entire object space, which cannot be excluded.
1.8,将分区按特征值(这里的特征值即为控制率)分组,特征值相同的分区为一组,将相同的特征值合为一个数据。1.8, group the partitions by eigenvalues (the eigenvalues here are the control rates), group the partitions with the same eigenvalues, and combine the same eigenvalues into one data.
1.9,计算每一组分区中的极点坐标,并消除每一组极点坐标中的重复坐标,进入根节点。1.9. Calculate the pole coordinates in each group of partitions, and eliminate the duplicate coordinates in each group of pole coordinates, and enter the root node.
1.10,从当前节点待选超平面中抽取第一个超平面。1.10, extract the first hyperplane from the hyperplanes to be selected at the current node.
1.11,统计超平面两侧的特征值数量。这个统计的方法是建立二叉树重要的一步,它无需判断所有的分区极点即可统计超平面两侧的特征值数量,大大缩短预处理时间。主要步骤如下:1.11, count the number of eigenvalues on both sides of the hyperplane. This statistical method is an important step in building a binary tree. It can count the number of eigenvalues on both sides of the hyperplane without judging all partition poles, which greatly shortens the preprocessing time. The main steps are as follows:
a,载入按特征值相等的特性分组的分区极点数据。a, Load partitioned pole data grouped by properties with equal eigenvalues.
b,载入待判断超平面,抽取第一组第一个极点坐标,我们将超平面两侧分别定义为Hp-和Hp+,两侧的特征值数量分别为m和n个,先令m和n均为0.b. Load the hyperplane to be judged, and extract the coordinates of the first pole of the first group. We define the two sides of the hyperplane as Hp- and Hp+ respectively, and the number of eigenvalues on both sides is m and n respectively, and shilling m and n is all 0.
c,我们将Lf和Rf作为极点是否处于Hp-和Hp+的标记,值为0代表假,值为1代表真。先令Lf和Rf均为0。c, we use Lf and Rf as the markers of whether the pole is in Hp- and Hp+, the value is 0 for false, and the value for 1 is true. Both Lf and Rf are shilled.
d,判断极点与超平面的位置关系。对于超平面Hp={x|hx=k},如果点x满足hx≤k,则认为点x位于Hp-,否则位于Hp+。其中h和k为超平面表达式参数,x为待判断状态点坐标。d, Judging the positional relationship between the pole and the hyperplane. For the hyperplane Hp={x|hx=k}, if the point x satisfies hx≤k, then the point x is considered to be located at Hp-, otherwise it is located at Hp+. Among them, h and k are hyperplane expression parameters, and x is the coordinate of the state point to be judged.
e,若极点位于Hp-,令Lf=1,跳转至g,否则进行下一步。e, if the pole is at Hp-, set Lf=1, go to g, otherwise go to the next step.
f,判断极点是否位于Hp+,若为真,令Rf=1。否则跳转至h。f, judge whether the pole is located at Hp+, if true, set Rf=1. Otherwise jump to h.
g,判断Rf=1与Lf=1是否同时成立,若为假,进行下一步,若为真,跳转至i。g, judge whether Rf=1 and Lf=1 are true at the same time, if it is false, go to the next step, if it is true, jump to i.
h,判断是否是本组最后一个极点,若为假,抽取本组下一个极点坐标,并跳转至d。若为真,如果Lf=1,m的值加1,如果Rf=1,n的值加1。h, judge whether it is the last pole of this group, if it is false, extract the coordinates of the next pole of this group, and jump to d. If true, the value of m is incremented by 1 if Lf=1, and the value of n is incremented by 1 if Rf=1.
i,判断这一组是否为最后一组极点数据,若为假,抽取下一组第一个极点坐标,并跳转至c,否则超平面两侧特征值数量统计完成。i, judge whether this group is the last group of pole data, if it is false, extract the first pole coordinates of the next group, and jump to c, otherwise the statistics of the eigenvalues on both sides of the hyperplane are completed.
1.12,判断这是否是最后一个待选超平面,若为假,抽取下一个待选超平面,跳转至1.11统计超平面两侧特征值数量,若为真,进入下一步。1.12. Determine whether this is the last hyperplane to be selected. If it is false, extract the next hyperplane to be selected. Go to 1.11 to count the number of eigenvalues on both sides of the hyperplane. If it is true, go to the next step.
1.13,根据指标确定参考超平面。我们希望建立的二叉树深度地且节点少,我们不可能尝试所有的组合建立所有可能的二叉树,再选取最好的一棵。我们只需考虑节点两侧(即超平面两侧)特征值数量大致相同,则认为该超平面比较适合作为参考超平面。描述指标如下:1.13, determine the reference hyperplane according to the index. We hope to build a binary tree that is deep and has few nodes. It is impossible for us to try all combinations to build all possible binary trees and select the best one. We only need to consider that the number of eigenvalues on both sides of the node (that is, on both sides of the hyperplane) is roughly the same, and we think that the hyperplane is more suitable as a reference hyperplane. The description indicators are as follows:
J=(m+n)2+(m-n)2 J=(m+n) 2 +(mn) 2
m、n分别为位于Hp-和Hp+的特征值数量,J越小,则认为该超平面越适合称为参考超平面。两侧特征值数量之和描述对该二叉树节点数的预期,两侧特征值之差描述对二叉树左右子树平衡性预期。m and n are the number of eigenvalues at Hp- and Hp+ respectively, and the smaller J is, the more suitable the hyperplane is to be called the reference hyperplane. The sum of the number of eigenvalues on both sides describes the expectation of the number of nodes of the binary tree, and the difference of the eigenvalues on both sides describes the expectation of the balance of the left and right subtrees of the binary tree.
1.14,判断左子树是否建立完成。若为真,跳转至1.16,否则进入下一步。1.14. Determine whether the left subtree is established. If true, jump to 1.16, otherwise go to the next step.
1.15,将位于参考超平面Hp-侧的极点传递给左子节点,将待选超平面去除参考超平面后传递给左子节点,进入左子节点后跳转至1.10。1.15. Pass the pole on the Hp-side of the reference hyperplane to the left child node, remove the reference hyperplane from the candidate hyperplane and pass it to the left child node, and then jump to 1.10 after entering the left child node.
1.16,判断右子树是否建立完成。若为真,跳转至1.18,若为假,进入下一步。1.16. Determine whether the right subtree is established. If true, jump to 1.18, if false, go to the next step.
1.17,将位于参考超平面Hp+侧的极点传递给右子节点,将待选超平面去除参考超平面后传递给右子节点,进入右子节点后跳转至1.10。1.17, transfer the pole located on the reference hyperplane Hp+ side to the right child node, remove the reference hyperplane from the candidate hyperplane and pass it to the right child node, and jump to 1.10 after entering the right child node.
1.18,返回父节点,并判断二叉树是否建立完成,若为假,跳转至1.12,若为真,保存数据,至此网格区域中二叉树建立完成。1.18, return to the parent node, and judge whether the binary tree has been established, if it is false, jump to 1.12, if it is true, save the data, and the binary tree in the grid area has been established.
1.19,判断当前操作网格区域是否为最后一个网格区域。若不是,则选取下一个网格区域,并将其与分区求交,统计其中特征值数量,并跳转至1.5。若是最后一个网格区域,说明预处理步骤已经完成,结束操作。1.19. Determine whether the current operating grid area is the last grid area. If not, select the next grid area and intersect it with the partition, count the number of eigenvalues in it, and jump to 1.5. If it is the last grid area, it means that the preprocessing step has been completed, and the operation ends.
步骤2.网格二叉树法在线计算过程Step 2. Online calculation process of grid binary tree method
2.1,读取目标点坐标,根据哈希函数快速定位到所在网格区域,并读取Hash数组中对应记录。2.1. Read the coordinates of the target point, quickly locate the grid area according to the hash function, and read the corresponding records in the Hash array.
2.2,判断记录值是否为负。若记录值为负,跳转至2.4,执行二叉树搜索。若记录值不为负,进行下一步。2.2, judge whether the recorded value is negative. If the record value is negative, skip to 2.4 and perform a binary tree search. If the recorded value is not negative, proceed to the next step.
2.3,判断记录值是否为正。若不为正,说明记录值为0,该网格区域完全处于对象空间外,状态点也不处于对象空间内,直接退出在线查找阶段。若记录值为正说明网格区域中只存在一种特征值,记录值即为特征值编号,可以直接取得特征值,在线查找阶段结束。2.3, judge whether the recorded value is positive or not. If it is not positive, it means that the record value is 0, the grid area is completely outside the object space, and the state point is not in the object space, and the online search stage is directly exited. If the record value is positive, it means that there is only one kind of eigenvalue in the grid area, and the record value is the eigenvalue number, and the eigenvalue can be obtained directly, and the online search phase ends.
2.4,记录值取反即为根节点地址,进入根节点。2.4, the reverse of the recorded value is the address of the root node, and enter the root node.
2.5,判断目标点与节点处参考超平面关系。若目标点位于Hp-侧,进入左子节点,若目标点位于Hp+侧,进入右子节点。2.5. Determine the relationship between the target point and the reference hyperplane at the node. If the target point is on the Hp- side, enter the left child node, if the target point is on the Hp+ side, enter the right child node.
2.6,判断该节点是否为最后一个二叉树节点,若为假,跳转至2.5,若为真,进入下一步。2.6. Determine whether the node is the last binary tree node. If it is false, go to 2.5. If it is true, go to the next step.
2.7,判断目标点与最后一个参考超平面的位置关系,若位于Hp-,选取左侧子叶,若位于Hp+,选取右侧子叶。根据叶子节点上对应特征值编号,从特征值矩阵FG中提取特征值,点定位在线计算阶段完成。2.7. Determine the positional relationship between the target point and the last reference hyperplane. If it is located at Hp-, select the left cotyledon; if it is located at Hp+, select the right cotyledon. According to the corresponding eigenvalue number on the leaf node, the eigenvalue is extracted from the eigenvalue matrix FG, and the point positioning is completed in the online calculation stage.
本发明的优点是:在存储空间需求、离线预处理时间和在线查找时间三个性能方面取得了非常好的权衡。相比于传统的二叉树法和哈希表法,本发明拥有低离线预处理时间和高在线查找效率,同时在存储空间需求方面也取得了一定改善。The advantage of the present invention is that a very good trade-off has been achieved in terms of storage space requirements, offline preprocessing time and online search time. Compared with the traditional binary tree method and hash table method, the present invention has low off-line preprocessing time and high on-line search efficiency, and at the same time has achieved certain improvements in storage space requirements.
附图说明Description of drawings
图1是本发明的状态空间分区示意图Fig. 1 is a schematic diagram of the state space partition of the present invention
图2是本发明存在冲突的网格区域示意图Fig. 2 is a schematic diagram of grid areas where conflict exists in the present invention
图3是本发明建立的二叉树示意图Fig. 3 is the binary tree schematic diagram that the present invention establishes
图4是本发明的超平面两侧特征值数量判断流程图Fig. 4 is the flow chart of judging the number of eigenvalues on both sides of the hyperplane of the present invention
图5是本发明的离线预处理流程图Fig. 5 is the off-line preprocessing flowchart of the present invention
图6是本发明的在线计算阶段流程图Fig. 6 is a flow chart of the online computing stage of the present invention
表1是本发明的网格二叉树法同经典点定位方法性能对比Table 1 is the performance comparison of the grid binary tree method of the present invention with the classical point location method
具体实施方式detailed description
下面结合附图,进一步说明本发明的网格二叉树法步骤。参照附图1-6,表1.The steps of the grid binary tree method of the present invention will be further described below in conjunction with the accompanying drawings. Referring to accompanying drawings 1-6, table 1.
本发明所述的网格二叉树法,具体步骤如下:Grid binary tree method of the present invention, concrete steps are as follows:
步骤1.网格二叉树法的离线预处理过程,流程图详见图4和图5Step 1. The offline preprocessing process of the grid binary tree method, the flow chart is shown in Figure 4 and Figure 5
1.1,在控制系统中引入多参数二次规划,将系统状态空间划分为一个个凸的分区,并计算得到每个分区对应的控制率,保存在FG数组中。状态空间分区示意图详见图1。1.1. Introduce multi-parameter quadratic programming into the control system, divide the system state space into convex partitions, and calculate the control rate corresponding to each partition, and save it in the FG array. The schematic diagram of the state space partition is shown in Figure 1.
1.2,由确定同义分区的式子计算得到同义分区并分组,每一组同义分区仅保留一个特征值数据。1.2. Calculate and group the synonymous partitions by the formula used to determine the synonymous partitions. Only one eigenvalue data is reserved for each group of synonymous partitions.
1.3,根据划分参数计算哈希函数,将得到的数据记录于一个数组中。1.3. Calculate the hash function according to the partition parameters, and record the obtained data in an array.
1.4,根据划分参数构造哈希表网格区域多胞形,按照顺序选取第一个网格区域与分区求交,统计在这个网格区域中的特征值数量。1.4. Construct the polytope of the grid area of the hash table according to the partition parameters, select the first grid area to intersect with the partition in order, and count the number of eigenvalues in this grid area.
1.5,判断该网格区域是否存在冲突,示意图见图2。网格区域中特征值数量大于1即为存在冲突。若存在冲突,跳转至1.7,开始在网格区域中建立二叉树,若不存在冲突,进入下一步。1.5, to determine whether there is a conflict in the grid area, the schematic diagram is shown in Figure 2. If the number of eigenvalues in the grid area is greater than 1, there is a conflict. If there is a conflict, skip to 1.7 and start building a binary tree in the grid area. If there is no conflict, go to the next step.
1.6,判断该网格区域是否完全处在对象空间外。若网格区域不与任意一个分区相交,则直接在Hash数组中相应位置记录为0。若网格区域中只存在一种特征值,则直接在Hash数组中相应位置记录特征值编号。完成这步后跳转至1.19。1.6, judge whether the grid area is completely outside the object space. If the grid area does not intersect with any partition, it will be directly recorded as 0 in the corresponding position in the Hash array. If there is only one kind of eigenvalue in the grid area, record the eigenvalue number directly in the corresponding position in the Hash array. Skip to 1.19 after completing this step.
1.7,在Hash数组中填入二叉树根节点地址,并标记为负值。在该网格区域中建立二叉树,建立完成的二叉树示意图见图3。1.7, fill in the address of the root node of the binary tree in the Hash array, and mark it as a negative value. A binary tree is established in the grid area, and the schematic diagram of the established binary tree is shown in FIG. 3 .
1.8,将分区按特征值分组,特征值相同的分区为一组,将相同的特征值合为一个数据。1.8, group partitions by eigenvalues, partitions with the same eigenvalues are grouped together, and combine the same eigenvalues into one data.
1.9,计算每一组分区中的极点坐标,并消除每一组极点坐标中的重复坐标,进入根节点。1.9. Calculate the pole coordinates in each group of partitions, and eliminate the duplicate coordinates in each group of pole coordinates, and enter the root node.
1.10,从当前节点待选超平面中抽取第一个超平面。1.10, extract the first hyperplane from the hyperplanes to be selected at the current node.
1.11,统计超平面两侧的特征值数量。1.11, count the number of eigenvalues on both sides of the hyperplane.
1.12,判断这是否是最后一个待选超平面,若为假,抽取下一个待选超平面,跳转至1.11统计超平面两侧特征值数量,若为真,进入下一步。1.12. Determine whether this is the last hyperplane to be selected. If it is false, extract the next hyperplane to be selected. Go to 1.11 to count the number of eigenvalues on both sides of the hyperplane. If it is true, go to the next step.
1.13,根据指标确定参考超平面。考虑节点两侧(即超平面两侧)特征值数量大致相同,则认为该超平面比较适合作为参考超平面。1.13, determine the reference hyperplane according to the index. Considering that the number of eigenvalues on both sides of the node (that is, on both sides of the hyperplane) is roughly the same, it is considered that the hyperplane is more suitable as a reference hyperplane.
1.14,判断左子树是否建立完成。若为真,跳转至1.16,否则进入下一步。1.14. Determine whether the left subtree is established. If true, jump to 1.16, otherwise go to the next step.
1.15,将位于参考超平面一侧的极点传递给左子节点,将待选超平面去除参考超平面后传递给左子节点,进入左子节点后跳转至2.10。1.15, pass the pole on the side of the reference hyperplane to the left child node, remove the reference hyperplane from the candidate hyperplane and pass it to the left child node, and then jump to 2.10 after entering the left child node.
1.16,判断右子树是否建立完成。若为真,跳转至1.18,若为假,进入下一步。1.16. Determine whether the right subtree is established. If true, jump to 1.18, if false, go to the next step.
1.17,将位于参考超平面另一侧的极点传递给右子节点,将待选超平面去除参考超平面后传递给右子节点,进入右子节点后跳转至1.10。1.17, pass the pole on the other side of the reference hyperplane to the right child node, remove the reference hyperplane from the candidate hyperplane and pass it to the right child node, and then jump to 1.10 after entering the right child node.
1.18,返回父节点,并判断二叉树是否建立完成,若为假,跳转至1.12,若为真,保存数据,至此网格区域中二叉树建立完成。1.18, return to the parent node, and judge whether the binary tree has been established, if it is false, jump to 1.12, if it is true, save the data, and the binary tree in the grid area has been established.
1.19,判断当前操作网格区域是否为最后一个网格区域。若不是,则选取下一个网格区域,并将其与分区求交,统计其中特征值数量,并跳转至1.5。若是最后一个网格区域,说明预处理步骤已经完成,结束操作。1.19. Determine whether the current operating grid area is the last grid area. If not, select the next grid area and intersect it with the partition, count the number of eigenvalues in it, and jump to 1.5. If it is the last grid area, it means that the preprocessing step has been completed, and the operation ends.
步骤2.二级网格法的在线计算过程,流程图详见图5Step 2. The online calculation process of the two-level grid method, the flow chart is shown in Figure 5
2.1,读取目标点坐标,根据哈希函数快速定位到所在网格区域,并读取Hash数组中对应记录。2.1. Read the coordinates of the target point, quickly locate the grid area according to the hash function, and read the corresponding records in the Hash array.
2.2,判断记录值是否为负。若记录值为负,跳转至2.4,执行二叉树搜索。若记录值不为负,进行下一步。2.2, judge whether the recorded value is negative. If the record value is negative, skip to 2.4 and perform a binary tree search. If the recorded value is not negative, proceed to the next step.
2.3,判断记录值是否为正。若不为正,说明记录值为0,该网格区域完全处于对象空间外,状态点也不处于对象空间内,直接退出在线查找阶段。若记录值为正说明网格区域中只存在一种特征值,记录值即为特征值编号,可以直接取得特征值,退出在线查找阶段。2.3, judge whether the recorded value is positive or not. If it is not positive, it means that the record value is 0, the grid area is completely outside the object space, and the state point is not in the object space, and the online search stage is directly exited. If the record value is positive, it means that there is only one eigenvalue in the grid area, and the record value is the eigenvalue number, and the eigenvalue can be obtained directly, and the online search stage is exited.
2.4,记录值取反即为根节点地址,进入根节点。2.4, the reverse of the recorded value is the address of the root node, and enter the root node.
2.5,判断目标点与节点处参考超平面关系。2.5. Determine the relationship between the target point and the reference hyperplane at the node.
2.6,判断该节点是否为最后一个二叉树节点,若为假,跳转至2.5,若为真,进入下一步。2.6. Determine whether the node is the last binary tree node. If it is false, go to 2.5. If it is true, go to the next step.
2.7,判断目标点与最后一个参考超平面的位置关系并据此取得状态点所在分区特征值,退出在线查找阶段。2.7. Judging the positional relationship between the target point and the last reference hyperplane and obtaining the eigenvalue of the partition where the state point is located accordingly, exiting the online search stage.
案例分析case analysis
本发明通过一个二阶实例对比了网格二叉树法与经典点定位方法的性能,展示它在存储空间需求、离线预处理时间、在线计算时间三个方面的优越性。The present invention compares the performance of the grid binary tree method and the classic point positioning method through a second-order example, and demonstrates its superiority in storage space requirements, offline preprocessing time, and online calculation time.
表1是本发明的网格二叉树法与经典点定位方法的性能对比。表1快速二叉树法与各算法性能对比Table 1 is the performance comparison between the grid binary tree method of the present invention and the classical point positioning method. Table 1 Performance comparison between fast binary tree method and other algorithms
从表中不难发现网格二叉树法相较于传统的二叉树法在预处理时间上有了极大的改善,同时与其它的点定位方法相比也不遑多让。同时与哈希表法相比,它的平均在线计算时间大大地缩短了,同时它在存储空间需求上的表现也不差,能够满足我们控制系统的需求。From the table, it is not difficult to find that the grid binary tree method has greatly improved the preprocessing time compared with the traditional binary tree method, and it is also comparable to other point positioning methods. At the same time, compared with the hash table method, its average online calculation time is greatly shortened, and its performance in storage space requirements is not bad, which can meet the needs of our control system.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510970110.5A CN105654187A (en) | 2015-12-21 | 2015-12-21 | Grid binary tree method of control system midpoint locating method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510970110.5A CN105654187A (en) | 2015-12-21 | 2015-12-21 | Grid binary tree method of control system midpoint locating method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105654187A true CN105654187A (en) | 2016-06-08 |
Family
ID=56477514
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510970110.5A Pending CN105654187A (en) | 2015-12-21 | 2015-12-21 | Grid binary tree method of control system midpoint locating method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105654187A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107153707A (en) * | 2017-05-12 | 2017-09-12 | 华中科技大学 | A kind of Hash table construction method and system for nonvolatile memory |
CN107608214A (en) * | 2017-10-16 | 2018-01-19 | 浙江工业大学之江学院 | Multilevel splitting independent positioning method in Three Degree Of Freedom helicopter explicit model PREDICTIVE CONTROL |
CN107817680A (en) * | 2017-10-10 | 2018-03-20 | 浙江工业大学之江学院 | Independent positioning method based on k d trees in helicopter explicit model PREDICTIVE CONTROL |
CN108333927A (en) * | 2018-01-22 | 2018-07-27 | 浙江工业大学之江学院 | A kind of more cell space approximation explicit model forecast Control Algorithms of brshless DC motor |
CN109359701A (en) * | 2018-11-28 | 2019-02-19 | 重庆邮电大学 | A 3D model data analysis method for high-precision extraction and fast classification |
CN109960186A (en) * | 2017-12-25 | 2019-07-02 | 北京创昱科技有限公司 | Processing method, device, electronic device and storage medium for controlling flow |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104375416A (en) * | 2014-08-21 | 2015-02-25 | 浙江工业大学 | Synonymy redundancy elimination grid method of point locating in control system |
-
2015
- 2015-12-21 CN CN201510970110.5A patent/CN105654187A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104375416A (en) * | 2014-08-21 | 2015-02-25 | 浙江工业大学 | Synonymy redundancy elimination grid method of point locating in control system |
Non-Patent Citations (1)
Title |
---|
谢作樟: "显式模型预测控制点定位算法的优化与实验研究", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107153707A (en) * | 2017-05-12 | 2017-09-12 | 华中科技大学 | A kind of Hash table construction method and system for nonvolatile memory |
CN107153707B (en) * | 2017-05-12 | 2020-08-14 | 华中科技大学 | Hash table construction method and system for nonvolatile memory |
CN107817680A (en) * | 2017-10-10 | 2018-03-20 | 浙江工业大学之江学院 | Independent positioning method based on k d trees in helicopter explicit model PREDICTIVE CONTROL |
CN107817680B (en) * | 2017-10-10 | 2020-07-17 | 浙江工业大学之江学院 | Point positioning method based on k-d tree in helicopter explicit model predictive control |
CN107608214A (en) * | 2017-10-16 | 2018-01-19 | 浙江工业大学之江学院 | Multilevel splitting independent positioning method in Three Degree Of Freedom helicopter explicit model PREDICTIVE CONTROL |
CN107608214B (en) * | 2017-10-16 | 2020-08-14 | 浙江工业大学之江学院 | Multi-stage grid point positioning method in three-degree-of-freedom helicopter explicit model predictive control |
CN109960186A (en) * | 2017-12-25 | 2019-07-02 | 北京创昱科技有限公司 | Processing method, device, electronic device and storage medium for controlling flow |
CN108333927A (en) * | 2018-01-22 | 2018-07-27 | 浙江工业大学之江学院 | A kind of more cell space approximation explicit model forecast Control Algorithms of brshless DC motor |
CN109359701A (en) * | 2018-11-28 | 2019-02-19 | 重庆邮电大学 | A 3D model data analysis method for high-precision extraction and fast classification |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105654187A (en) | Grid binary tree method of control system midpoint locating method | |
AU2018253470B2 (en) | Device and method for extracting terrain boundary | |
CN107908536B (en) | Performance evaluation method and system for GPU application in CPU-GPU heterogeneous environment | |
CN115755954B (en) | Routing inspection path planning method, system, computer equipment and storage medium | |
CN106599230A (en) | Method and system for evaluating distributed data mining model | |
Zhou et al. | Congestion-aware global routing using deep convolutional generative adversarial networks | |
CN105205052B (en) | A data mining method and device | |
CN110428015A (en) | A kind of training method and relevant device of model | |
CN104616062A (en) | Nonlinear system recognizing method based on multi-target genetic programming | |
CN115481549A (en) | Cylindrical linear motor multi-objective optimization method, device and storage medium | |
CN118733006B (en) | Script file generation method, task processing method and electronic device | |
CN118917259B (en) | Method, device, computer equipment, readable storage medium and program product for non-graph optimization based on reinforcement learning | |
CN109074348A (en) | For being iterated the equipment and alternative manner of cluster to input data set | |
WO2021143686A1 (en) | Neural network fixed point methods and apparatuses, electronic device, and readable storage medium | |
WO2015145978A1 (en) | Energy-amount estimation device, energy-amount estimation method, and recording medium | |
CN106056208A (en) | Bio-geographic optimization algorithm-oriented constraint handling method and device | |
CN114781688A (en) | Method, device, equipment and storage medium for identifying abnormal data of business expansion project | |
CN113761026A (en) | Feature selection method, apparatus, device and storage medium based on conditional mutual information | |
CN116862013A (en) | Machine learning model hyperparameter tuning method based on multi-model Bayesian optimization | |
KR101623113B1 (en) | Apparatus and method for learning and classification of decision tree | |
CN107194468A (en) | Towards the decision tree Increment Learning Algorithm of information big data | |
CN104570759B (en) | The quick Binomial Trees of control system midpoint orientation problem | |
KR101878213B1 (en) | Method, apparatus and computer program for summaring of a weighted graph | |
CN111026661B (en) | Comprehensive testing method and system for software usability | |
CN104503225B (en) | Independent positioning method in control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160608 |