TW201807423A - Circuit board inspection method with inspection route optimization function - Google Patents

Circuit board inspection method with inspection route optimization function Download PDF

Info

Publication number
TW201807423A
TW201807423A TW105127649A TW105127649A TW201807423A TW 201807423 A TW201807423 A TW 201807423A TW 105127649 A TW105127649 A TW 105127649A TW 105127649 A TW105127649 A TW 105127649A TW 201807423 A TW201807423 A TW 201807423A
Authority
TW
Taiwan
Prior art keywords
detection path
detection
circuit board
detecting
group
Prior art date
Application number
TW105127649A
Other languages
Chinese (zh)
Inventor
陳智勇
黃詩婷
林閔雯
Original Assignee
樹德科技大學
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 樹德科技大學 filed Critical 樹德科技大學
Priority to TW105127649A priority Critical patent/TW201807423A/en
Publication of TW201807423A publication Critical patent/TW201807423A/en

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

A Circuit board inspection method with inspection route optimization function, which is used for inspecting a circuit board that including a plurality of inspection nodes, wherein the circuit board inspection method comprises: grouping the plurality of inspection nodes into N groups; encoding the N groups by permutation, so as to obtain an initial inspection route group; and calculating the initial inspection route group by a Particle Swarm Optimization (PSO) algorithm, so as to obtain an optimized inspection route.

Description

具檢測路徑最佳化功能之電路板檢測方法Circuit board detection method with detection path optimization function

本發明係有關於一種電路板檢測方法,特別是一種具檢測路徑最佳化功能之電路板檢測方法。The invention relates to a circuit board detecting method, in particular to a circuit board detecting method with a detection path optimization function.

近年來,印刷電路板檢測機具隨著表面黏著式零件(Surface Mounted Technology,SMT)、插入式零件(Through Hole Technology,THT)、高密度連接板(High Density Interconnect,HDI)與電子封裝技術等電子元件技術而快速成長。然而,電子零件面積微小化,線路板組裝密度也增高,伴隨而來的問題就是增加檢測上的困難度,進而影響產品生產時程。對於電子製造業而言,若能縮短產品的檢測時間,即意味著相同的時間內能有較多的產量。以各大廠家訂單動輒千萬單位的出貨量而言,單位檢測時間減少,都有可能在商場上取得先機,或是在出貨、交貨上佔有優勢。In recent years, printed circuit board inspection tools have been equipped with Surface Mounted Technology (SMT), Through Hole (THT), High Density Interconnect (HDI) and electronic packaging technology. Component technology grows rapidly. However, the area of electronic parts is miniaturized, and the board assembly density is also increased. The accompanying problem is to increase the difficulty in detection, which in turn affects the production time course of the product. For the electronics manufacturing industry, if the detection time of the product can be shortened, it means that there is more production in the same time. In terms of shipments of tens of millions of units from major manufacturers, the unit inspection time is reduced, and it is possible to take the lead in the mall or have an advantage in shipping and delivery.

鑑於上述習知技藝的問題,本發明之目的就是在提供一種具檢測路徑最佳化功能之電路板檢測方法,以透過離散化之粒子群最佳化演算法取得最佳檢測路徑,不僅可自動規劃最有效率之檢測路徑,更可大幅縮短電路板之檢測時間。In view of the above problems of the prior art, the object of the present invention is to provide a circuit board detection method with a detection path optimization function, which can obtain an optimal detection path through a discrete particle group optimization algorithm, which is not only automatic. Plan the most efficient inspection path and significantly reduce board inspection time.

本發明之一目的在於提供一種具檢測路徑最佳化功能之電路板檢測方法,用以對包含複數個檢測點之電路板進行檢測,此電路板檢測方法包含:對複數個檢測點進行編組,以形成N組檢測點;透過字串排列編碼對N組檢測點進行排列,以形成初始檢測路徑群體;以及透過粒子群最佳化(Particle Swarm Optimization,PSO)演算法對初始檢測路徑群體進行運算動作,以取得最佳檢測路徑。An object of the present invention is to provide a circuit board detection method with a detection path optimization function for detecting a circuit board including a plurality of detection points, the circuit board detection method comprising: grouping a plurality of detection points, The N sets of detection points are formed; the N sets of detection points are arranged by string arrangement coding to form an initial detection path group; and the initial detection path group is operated by a Particle Swarm Optimization (PSO) algorithm. Action to get the best detection path.

此外,本發明之具檢測路徑最佳化功能之電路板檢測方法更包含:定義複數個檢測點之座標。In addition, the circuit board detecting method with the detection path optimization function of the present invention further includes: defining coordinates of a plurality of detection points.

此外,本發明之具檢測路徑最佳化功能之電路板檢測方法更包含:透過鄰近法將N組檢測點組成初始檢測路徑個體;透過字串排列編碼對初始檢測路徑個體中的N組檢測點進行排列,以形成複數個檢測路徑個體;以及隨機選取部分複數個檢測路徑個體,以形成初始檢測路徑群體。In addition, the circuit board detecting method with the detection path optimization function of the present invention further comprises: forming N sets of detection points into an initial detection path entity by a neighboring method; and encoding the N sets of detection points in the initial detection path by the string arrangement coding. Arranging to form a plurality of detection path individuals; and randomly selecting a plurality of partial detection path individuals to form an initial detection path group.

此外,本發明之具檢測路徑最佳化功能之電路板檢測方法更包含:將粒子群最佳化演算法離散化,以透過離散化之粒子群最佳化演算法對初始檢測路徑群體進行運算動作。In addition, the circuit board detection method with the detection path optimization function of the present invention further comprises: discretizing the particle group optimization algorithm, and performing the operation on the initial detection path group by the discretized particle group optimization algorithm. action.

前述之離散化之粒子群最佳化演算法更包含:取得初始檢測路徑群體中之各複數個檢測路徑個體之位置及移動速度。The discretized particle swarm optimization algorithm further includes: obtaining a position and a moving speed of each of the plurality of detection path individuals in the initial detection path group.

前述之離散化之粒子群最佳化演算法更包含:透過移動成本公式計算初始檢測路徑群體中之各複數個檢測路徑個體之適應函數值。The foregoing discretized particle swarm optimization algorithm further comprises: calculating, by the mobile cost formula, an adaptive function value of each of the plurality of detection path individuals in the initial detection path group.

前述之離散化之粒子群最佳化演算法更包含:依據適應函數值更新各複數個檢測路徑個體之個體最佳函數值。The foregoing discretized particle swarm optimization algorithm further comprises: updating the individual optimal function value of each of the plurality of detection path individuals according to the adaptive function value.

前述之離散化之粒子群最佳化演算法更包含:依據適應函數值更新初始檢測路徑群體之群體最佳函數值。The foregoing discretized particle swarm optimization algorithm further comprises: updating the group optimal function value of the initial detection path group according to the adaptive function value.

前述之離散化之粒子群最佳化演算法更包含:依據更新後之個體最佳函數值及群體最佳函數值,調整初始檢測路徑群體中之各複數個檢測路徑個體之位置及移動速度。The foregoing discretized particle swarm optimization algorithm further comprises: adjusting the position and moving speed of each of the plurality of detection path individuals in the initial detection path group according to the updated individual optimal function value and the group optimal function value.

前述之離散化之粒子群最佳化演算法更包含:依據調整後之位置及移動速度,輸出最佳檢測路徑。The foregoing discretized particle swarm optimization algorithm further includes: outputting an optimal detection path according to the adjusted position and moving speed.

承上所述,本發明之具檢測路徑最佳化功能之電路板檢測方法將需檢測之複數個檢測點進行編碼,並配合檢測探針移動之條件限制與切比雪夫距離(Chebyshev distance)計算移動成本,將探針檢測電路板之移動路徑問題轉換為旅行商問題(Travelling Salesman Problem,TSP),以規劃適用於檢測路徑之排列編碼。接著透過粒子群最佳化演算法之離散化加法、乘法與減法運算元,以規劃出最佳檢測路徑,不僅可大幅縮減電路板之檢測時間,對於粒子群最佳化演算法在離散型旅行商問題相關工程實務之應用也有相當大的助益。According to the above description, the circuit board detection method with the detection path optimization function of the present invention encodes a plurality of detection points to be detected, and cooperates with the condition limit of the detection probe movement and the Chebyshev distance calculation. The cost of moving converts the path of the probe detection board to the Travelling Salesman Problem (TSP) to plan the permutation code for the detection path. Then, through the discretization addition, multiplication and subtraction elements of the particle swarm optimization algorithm, to plan the best detection path, not only can the detection time of the board be greatly reduced, but also the particle group optimization algorithm in discrete travel. The application of engineering-related engineering practices has also been of considerable help.

茲為使 鈞審對本發明的技術特徵及所能達到之技術功效有更進一步的瞭解與認識,謹佐以較佳的實施例及配合詳細的說明如後。For a better understanding of the technical features of the present invention and the technical effects that can be achieved, the preferred embodiments and the detailed description are as follows.

以下將參照附圖,說明本發明之具檢測路徑最佳化功能之電路板檢測方法之實施例,為使便於理解,下述實施例中的相同元件係以相同的符號標示來說明。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of a circuit board detecting method having a detection path optimization function according to the present invention will be described with reference to the accompanying drawings. For ease of understanding, the same elements in the following embodiments are denoted by the same reference numerals.

請參閱圖1及圖2,圖1為本發明之具檢測路徑最佳化功能之電路板檢測方法之流程圖。圖2為使用本發明之具檢測路徑最佳化功能之電路板檢測方法檢測電路板之示意圖。本發明之具檢測路徑最佳化功能之電路板檢測方法,係可例如用以藉由兩個探針對包含複數個檢測點v 1 ~v 8 之電路板60進行檢測。Please refer to FIG. 1 and FIG. 2. FIG. 1 is a flowchart of a method for detecting a circuit board with a detection path optimization function according to the present invention. 2 is a schematic diagram of a circuit board detecting method for detecting a circuit board using the detection path optimization function of the present invention. The method for detecting a circuit board having the detection path optimization function of the present invention can be used, for example, to detect a circuit board 60 including a plurality of detection points v 1 to v 8 by two probes.

在下列實施例中,本發明係以兩個探針(左探針PL 及右探針PR )作舉例,然而本發明不限於此,探針之數量亦可為三個以上,且檢測點之數量同樣不限於圖式之繪示。左探針PL 可沿著x軸及/或y軸移動,右探針PR 可沿著x軸及/或y軸移動,使得左探針PL 及右探針PR 可沿著一檢測路徑個體對電路板60之複數個檢測點v 1 ~v 8 進行檢測。其中,x軸係垂直於y軸,且左探針PL 及右探針PR 可例如分別透過兩組馬達驅動,然而本發明不限於此。In the following embodiments, the present invention uses two probes (left probe P L and right probe P R ) as an example, but the present invention is not limited thereto, and the number of probes may be three or more, and detection The number of points is also not limited to the drawing. The left probe P L can move along the x-axis and/or the y-axis, and the right probe P R can move along the x-axis and/or the y-axis, so that the left probe P L and the right probe P R can be along one The detection path individual detects a plurality of detection points v 1 to v 8 of the circuit board 60. Wherein, the x-axis is perpendicular to the y-axis, and the left probe P L and the right probe P R can be driven, for example, by two sets of motors, respectively, but the invention is not limited thereto.

首先,在步驟S100中,定義電路板60上之複數個檢測點v 1 ~v 8 之座標。接著在步驟S102中,對複數個檢測點v 1 ~v 8 進行編組,以形成N組檢測點。在圖2之實施例中,係以兩個檢測點為一組作舉例。然而本發明不限於此,在其他實施例中亦可以三個以上之檢測點為一組,並配合三個以上之探針對電路板60進行檢測。First, in step S100, coordinates of a plurality of detection points v 1 to v 8 on the circuit board 60 are defined. Next, in step S102, a plurality of detection points v 1 to v 8 are grouped to form N sets of detection points. In the embodiment of Fig. 2, two detection points are taken as a group. However, the present invention is not limited thereto. In other embodiments, more than three detection points may be used as a group, and the circuit board 60 may be detected by using more than three probes.

接著,在步驟S104中,透過鄰近法將N組檢測點組成初始檢測路徑個體。以電路板60需檢測八組的檢測點為例(如表一所示),檢測點組a可為檢測點v 1v 8 ;檢測點組b可為檢測點v 1v 2 ;檢測點組c可為檢測點v 7v 6 ;檢測點組d可為檢測點v 2v 4 ;檢測點組e可為檢測點v 2v 3 ;檢測點組f可為檢測點v 5v 7 ;檢測點組g可為檢測點v 8v 7 ;以及檢測點組h可為檢測點v 3v 4 。若初始檢測路徑個體為{a, b, c, d, e, f, g, h},則左探針PL 及右探針PR 可分別對初始檢測路徑個體上之各組檢測點進行檢測。舉例來說,首先左探針PL 及右探針PR 可分別對檢測點v 1v 8 進行檢測,接著左探針PL 及右探針PR 可分別對檢測點v 1v 2 進行檢測,依此類推完成八組檢測點之檢測。Next, in step S104, the N sets of detection points are formed into an initial detection path individual by the proximity method. Taking the detection points of the eight groups of the circuit board 60 as an example (as shown in Table 1), the detection point group a may be the detection points v 1 , v 8 ; the detection point group b may be the detection points v 1 , v 2 ; The point group c may be the detection points v 7 , v 6 ; the detection point group d may be the detection points v 2 , v 4 ; the detection point group e may be the detection points v 2 , v 3 ; the detection point group f may be the detection point v 5 , v 7 ; the detection point group g may be the detection points v 8 , v 7 ; and the detection point group h may be the detection points v 3 , v 4 . If the initial detection path is {a, b, c, d, e, f, g, h}, the left probe P L and the right probe P R can respectively perform detection points on the individual detection path individuals. Detection. For example, first, the left probe P L and the right probe P R can detect the detection points v 1 , v 8 respectively, and then the left probe P L and the right probe P R can respectively detect the detection points v 1 , v . 2 to test, and so on to complete the detection of eight sets of detection points.

表一 Table I

接著,在步驟S106中,透過字串排列編碼對初始檢測路徑個體中的N組檢測點進行排列,以形成複數個檢測路徑個體。舉例來說,以字串排列編碼後之初始檢測路徑個體{a, b, c, d, e, f, g, h}為例,複數個檢測路徑個體可例如為{h, b, d, c, a, f, g, e}、{g, e, c, a, d, f, b, h}、{c, b, a, h, e, f, g, d}……共8!=40320個排列組合之檢測路徑個體。接著,隨機選取部分複數個檢測路徑個體,以形成初始檢測路徑群體。Next, in step S106, the N sets of detection points in the initial detection path individual are arranged by the string arrangement coding to form a plurality of detection path individuals. For example, taking the initial detection path individuals {a, b, c, d, e, f, g, h} after the string arrangement as an example, the plurality of detection path individuals may be, for example, {h, b, d, c, a, f, g, e}, {g, e, c, a, d, f, b, h}, {c, b, a, h, e, f, g, d}... !=40320 individual test path combinations. Then, a plurality of partial detection path individuals are randomly selected to form an initial detection path group.

然而,由於受限於機構設計,在透過粒子群最佳化(Particle Swarm Optimization,PSO)演算法對初始檢測路徑群體進行運算動作之前,需對左探針PL 及右探針PR 移動之條件進行限制,以避免左探針PL 及右探針PR 在移動時發生碰撞。However, due to the limitation of the mechanism design, the left probe P L and the right probe P R need to be moved before the initial detection path group is operated by the Particle Swarm Optimization (PSO) algorithm. The conditions are limited to avoid collision of the left probe P L and the right probe P R while moving.

請配合圖1及圖2一併參閱圖3、圖4(A)及圖4(B),圖3為本發明之具檢測路徑最佳化功能之電路板檢測方法符合條件3時之移動路徑示意圖。圖4(A)及圖4(B)為本發明之具檢測路徑最佳化功能之電路板檢測方法符合條件4時之移動路徑示意圖。Please refer to FIG. 3, FIG. 4(A) and FIG. 4(B) together with FIG. 1 and FIG. 2, FIG. 3 is a moving path of the circuit board detecting method with the detection path optimization function according to condition 3 schematic diagram. 4(A) and 4(B) are schematic diagrams showing the movement path of the circuit board detection method with the detection path optimization function according to condition 4 in the present invention.

假設左探針PL 及右探針PR 係分別配置於電路板60的左右兩側,且電路板60共有組檢測點,則左探針PL 及右探針PR 目前所在之檢測點組之座標分別為,其中。接著左探針PL 及右探針PR 移動至下一檢測點組之座標分別為,其中,依此類推完成組檢測點之檢測。It is assumed that the left probe P L and the right probe P R are respectively disposed on the left and right sides of the circuit board 60, and the circuit board 60 has a common Group detection point, the detection point group where the left probe P L and the right probe P R are currently located The coordinates are and ,among them . Then the left probe P L and the right probe P R move to the next detection point group The coordinates are and ,among them , and so on Detection of group detection points.

由於受限於機構設計,左探針PL 之x軸之座標必須小於或等於右探針PR 之x軸之座標,意即,以避免左探針PL 及右探針PR 在移動時發生碰撞。因此,左探針PL 及右探針PR 之移動路徑必須排除不可行的情況,以滿足,其需符合下列4個條件:Coordinates of the x-axis of the left probe P L due to the limited mechanical design Must be less than or equal to the coordinate of the x-axis of the right probe P R Meaning To avoid collision between the left probe P L and the right probe P R while moving. Therefore, the moving path of the left probe P L and the right probe P R must be excluded from the case where it is not feasible to satisfy It must meet the following four conditions:

條件1:在複數個檢測路徑個體中,若出現左探針PL 之x軸之座標大於右探針PR 之x軸之座標的情況,意即,則將此檢測路徑個體視為不可行的,接著同時停止驅動左探針PL 及右探針PR 移動(即不沿著此檢測路徑個體對電路板60進行檢測,以避免左探針PL 及右探針PR 在移動時發生碰撞)。Condition 1: In the plurality of detection path individuals, if the coordinates of the x-axis of the left probe P L appear Coordinates larger than the x-axis of the right probe P R Situation, meaning , the individual detection path is regarded as infeasible, and then the left probe P L and the right probe P R are stopped to be driven at the same time (ie, the circuit board 60 is not detected along the detection path to avoid the left probe. P L and right probe P R collide when moving).

條件2:在複數個檢測路徑個體中,若左探針PL 之x軸之座標小於右探針PR 之x軸之座標,意即,則同時驅動左探針PL 及右探針PR 移動。換言之,在每一檢測點組中,x軸之座標較小的檢測點皆由左探針PL 檢測,而x軸之座標較大的檢測點皆由右探針PR 檢測,藉以符合機構的空間限制,不僅可減少左探針PL 及右探針PR 的移動時間,亦可防止左探針PL 及右探針PR 在移動時發生碰撞。Condition 2: In the individual of the plurality of detection paths, if the coordinates of the x-axis of the left probe P L Less than the coordinate of the x-axis of the right probe P R Meaning At the same time, the left probe P L and the right probe P R are driven to move. In other words, in each detection point group, the detection points with smaller coordinates of the x-axis are detected by the left probe PL , and the detection points with larger coordinates of the x-axis are detected by the right probe P R , thereby conforming to the mechanism. space limitations, not only to reduce the movement time left probe P L and P R of the right probe, left probe also prevent collision P L and P R occurs at the right probe is moved.

條件3:在複數個檢測路徑個體中,若左探針PL 之x軸之座標等於右探針PR 之x軸之座標,意即,將可能產生移動路徑不明確的情況。因此,需定義一移動狀態集合,其中0表示左探針PL 之y軸之座標小於等於右探針PR 之y軸之座標,意即;以及1表示左探針PL 之y軸之座標大於右探針PR 之y軸之座標,意即。此外,參數分別表示左探針PL 及右探針PR 在移動前、移動後、以及目前所在之檢測點組與下一檢測點組平行於y軸之座標狀態。Condition 3: In the individual of the plurality of detection paths, if the coordinates of the x-axis of the left probe P L Equal to the coordinate of the x-axis of the right probe P R Meaning , it will be possible to create a situation where the movement path is ambiguous. Therefore, you need to define a set of mobile states. Where 0 is the coordinate of the y-axis of the left probe P L Less than or equal to the coordinates of the y-axis of the right probe P R Meaning ; and 1 represents the coordinates of the y-axis of the left probe P L Coordinates larger than the y-axis of the right probe P R Meaning . In addition, the parameters , and Respectively indicating the left probe P L and the right probe P R before, after, and at the current detection point group With the next checkpoint group The coordinate state parallel to the y-axis.

因此,如圖3所示,當時,左探針PL 及右探針PR 共有六種移動路徑。接著,可依據移動成本公式對這些移動路徑進行運算,以依據計算出來的移動成本及可行性擇優選擇其中一個移動路徑。Therefore, as shown in Figure 3, when At the same time, the left probe P L and the right probe P R share six movement paths. Then, these moving paths can be calculated according to the moving cost formula to select one of the moving paths according to the calculated moving cost and feasibility.

條件4:在複數個檢測路徑個體中,若不符合上述條件1~3且符合,左探針PL 及右探針PR 將會產生移動路徑交錯,並且將此移動狀態以表示;反之,則表示無交錯。Condition 4: Among the plurality of detection path individuals, if the above conditions 1 to 3 are not met and the and , the left probe P L and the right probe P R will generate a moving path interleaving, and this moving state is Express; otherwise, It means no interlacing.

因此,如圖4(A)及圖4(B)所示,當發生移動路徑交錯時,可先驅動左探針PL 及右探針PR 之一者移動,接著再驅動左探針PL 及右探針PR 之另一者移動,藉以避免左探針PL 及右探針PR 在移動路徑交錯時發生碰撞。Therefore, as shown in FIG. 4(A) and FIG. 4(B), when the movement path interleaving occurs, one of the left probe P L and the right probe P R can be driven to move first, and then the left probe P is driven. The other of L and the right probe P R moves to prevent the left probe P L and the right probe P R from colliding when the moving paths are staggered.

以左探針PL 及右探針PR 係分別透過兩組馬達驅動為例,假設馬達驅動左探針PL 及右探針PR 之移動速度恆定且相等,由目前所在之檢測點組移動至下一檢測點組,取左探針PL 及右探針PR 之較大移動距離即為移動成本,且移動成本公式如下:Taking the left probe P L and the right probe P R as the examples through the two sets of motor driving, respectively, assuming that the moving speed of the motor driving left probe P L and right probe P R is constant and equal, from the current detection point group Move to the next detection point group , taking the larger moving distance of the left probe P L and the right probe P R is the moving cost And the mobile cost formula is as follows:

(1) (1)

基於單一個探針是由兩組馬達所控制,單一個探針由目前所在之位置移動至電路板的任一點,移動所需的時間應為兩組馬達之移動時間取其最大值,因此使用歐幾里得之直線計算之移動成本公式(1)並不符合實際情況。Based on a single probe controlled by two sets of motors, a single probe moves from the current position to any point on the board. The time required for the movement should be the maximum value of the movement time of the two sets of motors, so use The moving cost formula (1) of Euclidean's straight line calculation does not correspond to the actual situation.

鑑於上述問題,本發明係使用切比雪夫距離(Chebyshev distance)計算,亦稱為度量。此距離計算方式在平面幾何中,二個點之間的距離定義為其各座標數值差的最大值。因此,左探針PL 及右探針PR 之移動成本,將是四組馬達中移動量之最大值,故移動成本公式可修正如下:In view of the above problems, the present invention uses a Chebyshev distance calculation, also known as measure. This distance is calculated in the plane geometry, and the distance between two points is defined as the maximum value of the difference between the coordinates of each coordinate. Therefore, the moving cost of the left probe P L and the right probe P R will be the maximum amount of movement in the four groups of motors, so the moving cost formula can be corrected as follows:

(2) (2)

若左探針PL 及右探針PR 之移動狀態符合上述條件4,則更可將移動成本公式(2)修正為下列移動成本公式(3):If the moving state of the left probe P L and the right probe P R meets the above condition 4, the moving cost formula (2) can be modified to the following moving cost formula (3):

(3) (3)

因此,對於左探針PL 及右探針PR 之檢測問題的目標函數,可以下列公式表示:Therefore, the objective function for the detection problem of the left probe P L and the right probe P R can be expressed by the following formula:

(4) (4)

其必須符合:It must comply with:

;

;以及 ;as well as

.

其中為一個二元變數。當時,表示左探針PL 及右探針PR 在移動前、移動後及平行於y軸的條件下,選擇從檢測點組移動至檢測點組;當時,表示左探針PL 及右探針PR 在移動前、移動後及平行於y軸的條件下,不選擇從檢測點組移動至檢測點組的檢測路徑。此外,公式(4)之條件則是表示限制左探針PL 及右探針PR 每次僅能檢測一組檢測點,且在組檢測點中,每一組檢測點只能被檢測一次。among them For a binary variable. when When the left probe P L and the right probe P R are before moving After moving And parallel to the y-axis Under the condition, select from the detection point group Move to the detection point group ;when When the left probe P L and the right probe P R are before moving After moving And parallel to the y-axis Condition, do not select from the detection point group Move to the detection point group Detection path. In addition, the condition of the formula (4) is that the restriction left probe P L and the right probe P R can detect only one set of detection points at a time, and In the group detection points, each group of detection points can only be detected once.

因此,藉由上述條件1至條件4之限制,本發明可有效地避免在驅動左探針PL 及右探針PR 移動時發生碰撞。Therefore, with the limitations of the above conditions 1 to 4, the present invention can effectively avoid collision when driving the left probe P L and the right probe P R to move.

接著檢視旅行商問題(Travelling Salesman Problem,TSP)的基本定義為:給定一路網,其中N為節點(Nodes)之集合,A為節線(Links)之集合;在此路網上求得一條以最小成本,自一點出發並經過N中所有節點恰一次,再回到起始點的路線。若將節點視為檢測點組別,則公式(4)符合旅行商問題的模型。然而,限制條件增加空間中不可行解的數量,提升時間複雜度也讓搜尋空間變得更多如同奇異點(singularity)的排列組合,其困難度比旅行商問題更高。因此一個更有效率的搜尋演算法是解決此類問題的關鍵。Then the basic definition of Travelling Salesman Problem (TSP) is: Given a network , where N is the set of nodes, and A is the set of links; on this road, one is obtained at a minimum cost, starting from one point and passing through all the nodes in N, and then back to the beginning. Point the route. If the node is regarded as a group of detection points, formula (4) conforms to the model of the traveling salesman problem. however, and Restrictions increase the number of infeasible solutions in space, and increasing the complexity of time also makes the search space more like a singularity arrangement, which is more difficult than the traveling salesman problem. So a more efficient search algorithm is the key to solving such problems.

旅行商問題常被用來試驗演算法解決問題的效能,由過去所使用之啟發式演算法的經驗,生物地理演算法因為減少交配的運算機制,在計算時間上相較於遺傳演算法有較高的優勢。然而,兩者的架構流程內都包含選擇(Selection)的演化式機制,無論是採取競爭法、輪盤法、穩定法、排序法都佔據太多的演化計算的時間,很難將計算時間降低,不符合實用的效益。本發明基於研究之經驗,使用粒子群最佳化演算法作為本發明的主要演算法,基本的想法就是想要避免選擇運算子以增加運算效能。傳統的粒子群最佳化演算法僅適用於解決數值型問題,對於排列組合類型的問題並未被提及,因此是使用粒子群最佳化演算法解決電路板檢測問題的最大挑戰。The traveling salesman problem is often used to test the effectiveness of the algorithm to solve the problem. From the experience of the heuristic algorithm used in the past, the biogeographic algorithm has a lower computational time than the genetic algorithm. High advantage. However, both of them have an evolutionary mechanism of selection in the architecture flow. It is difficult to reduce the calculation time by taking the time of competition, roulette, stability, and sorting. Does not meet the practical benefits. Based on the experience of the research, the present invention uses the particle swarm optimization algorithm as the main algorithm of the present invention, and the basic idea is to avoid selecting operators to increase the computing efficiency. The traditional particle swarm optimization algorithm is only suitable for solving numerical problems. The problem of arranging combination types is not mentioned, so it is the biggest challenge to solve the board detection problem by using particle swarm optimization algorithm.

鑑於上述問題,本發明在步驟S106中,透過字串排列編碼對初始檢測路徑個體中的N組檢測點進行排列,以令電路板檢測問題符合演化式計算。In view of the above problem, in the step S106, the present invention arranges the N sets of detection points in the initial detection path by the string arrangement coding so that the board detection problem conforms to the evolutionary calculation.

粒子群最佳化(Particle Swarm Optimization,PSO)演算法是一種以族群動力學為基礎的最佳化方法,其基本概念係來自於社會行為的模擬。在一個社會化的群體中,每一個個體的行為不但會受到其過去經驗和認知的影響,同時也會受到整體社會行為影響。粒子群最佳化演算法具有類似現實環境中生物群體相互協調與群體行為一致性的運作特色,每一個生物個體均有其最高適應度的自我最佳經驗,而相對於個體最佳解,整個群體的全域最佳參數解的記憶我們稱之為生物群體的社會性,使得生物個體間的經驗能彼此互相交換並且傳承。在每一次的迭代過程中,群體中所有個體在搜尋空間中各自擁有其位置和移動速度,並且根據自我過去最佳經驗與群體最佳行為進行機率式的搜尋策略調整,其學習公式如下:The Particle Swarm Optimization (PSO) algorithm is an optimization method based on ethnic dynamics. The basic concept is derived from the simulation of social behavior. In a socialized group, each individual's behavior is not only affected by its past experience and cognition, but also by the overall social behavior. The particle swarm optimization algorithm has similar operational characteristics to the mutual coordination of the biological groups in the real environment and the consistency of the group behavior. Each individual has its own best self-optimal experience, and the whole best solution relative to the individual. The memory of the global optimal parameter solution of the group is called the social nature of the biological group, so that the experiences between the biological individuals can be exchanged and passed on each other. In each iteration process, all individuals in the group have their position and movement speed in the search space, and the probabilistic search strategy is adjusted according to the best experience of the past and the best behavior of the group. The learning formula is as follows:

(5) (5)

其中,分別為粒子在時間之位置,表示目前之狀態、為前一個時間之狀態;為粒子之移動速度;為粒子之編號;為粒子之維度;為移動慣性常數;分別為粒子個體以及粒子群體之學習率常數;分別為粒子之個體最佳函數值及群體最佳函數值。among them, and Particles at time and Location, Indicates the current status, The state of the previous time; For the speed of movement of the particles; The number of the particle; Is the dimension of the particle; To move the inertia constant; versus The learning rate constants of the individual particles and the particle population; versus They are the individual optimal function values of the particles and the group optimal function values.

當粒子的速度決定後,則下一時間狀態之粒子解可被修正為:When the velocity of the particle is determined, the particle solution of the next time state Can be corrected to:

(6) (6)

然而,依照上述連續型之粒子群最佳化演算法之運算公式並無法解決排列組合編碼方式之電路板檢測問題。因此,本發明將粒子群最佳化演算法離散化,並且將其應用於旅行商問題,以透過離散化之粒子群最佳化演算法對初始檢測路徑群體進行運算動作。首先,公式(5)之一般數值型的運算符號「+」、「-」及「‧」在排列組合編碼的意義必須重新被定義,其說明如下:However, according to the above-mentioned continuous particle group optimization algorithm, the circuit board detection problem of the array coding method cannot be solved. Therefore, the present invention discretizes the particle swarm optimization algorithm and applies it to the traveling salesman problem to perform an arithmetic operation on the initial detection path group through the discretized particle swarm optimization algorithm. First, the meanings of the general numeric type operators "+", "-", and "‧" in equation (5) must be redefined in the meaning of the permutation combination. The explanation is as follows:

定義1:假設一個解序列為:。定義一個交換運算元(swap operator)為交換解中之元素,則為解經運算元操作後之新解,因此將離散化之粒子群最佳化演算法內符號「+」賦予了新的含義。Definition 1: Suppose a solution sequence is: , . Define a swap operator Exchange solution Medium element with ,then For solution Operator element The new solution after the operation gives a new meaning to the symbol "+" in the discretized particle swarm optimization algorithm.

如表一所示,以八個節點(即八組檢測點)的旅行商問題為例,其解為,若交換運算元為,則As shown in Table 1, the traveling salesman problem of eight nodes (that is, eight sets of detection points) is taken as an example, and its solution is If the exchange operator is ,then .

定義2:一個或多個交換運算元可以合併成為一個集合,其中是獨立之交換運算元,它們之間的順序是有意義的。交換運算元集合代表這個交換序列中的所有交換運算元依序作用於該解(即複數個檢測路徑個體),亦即:Definition 2: One or more exchange operands can be merged into one set ,among them It is an independent exchange of operands, and the order between them is meaningful. The set of exchange operands represents all of the exchange operands in the exchange sequence acting sequentially on the solution (ie, a plurality of detection path individuals), ie:

定義3:不同的交換順序作用在同一解上可能產生相同的新解,所有相同效果的交換順序的集合稱為交換順序的等價集合。Definition 3: Different exchange orders may produce the same new solution on the same solution, and the set of exchange orders of all the same effects is called the equivalent set of exchange orders.

定義4:若干個交換順序可以合併成一個新的交換順序,定義為兩個交換順序的合併運算元「」。假設兩個交換順序集合,按照其先後順序作用於解上,得到新解。假設另外有一個交換順序集合作用於同一解上,能夠得到相同的解,可定義屬於相同等價集合。Definition 4: Several exchange orders can be combined into one new exchange order, defined as the merge operation elements of the two exchange orders." "." Assume two sets of exchange orders with Acting on the solution according to its order Get a new solution . Suppose there is another exchange order set Act on the same solution Can get the same solution , can be defined , with Belong to the same set of equivalences.

定義5:在交換順序集合的等價集合中,擁有最少交換運算元子的交換順序集合稱為該等價集合的基本交換順序集合,可按如下的方法構造一個基本交換順序集合:Definition 5: In an equivalent set of exchange order sets, the set of exchange orders with the least number of exchange operation elements is called the basic exchange order set of the equivalence set, and a basic exchange order set can be constructed as follows:

假設給定兩個解,其需要構造一個基本交換順序集合,使得,其中。由的第1個元素依序開始搜尋,其過程如下:Assume given two solutions with , which needs to construct a basic exchange order set Make ,among them , . by The first element starts searching in sequence, and the process is as follows:

。因此,第一個交換運算元是,得到 , , . Therefore, the first exchange operand is , ,get .

。因此, 第二個交換運算元是,得到 , , . Therefore, the second exchange operand is , ,get .

。因此, 第三個交換運算元是,得到 , , . Therefore, the third exchange operand is ,get .

。因此, 第四個交換運算元是,得到 , , . Therefore, the fourth exchange operand is ,get .

。因此, 第五個交換運算元是,得到 , , . Therefore, the fifth exchange operand is ,get .

運算至此步驟,這樣就得到一個基本交換 順序:Calculate to this step So that you get a basic exchange order: .

由於數值型「-」運算元在離散化之粒子群最佳化演算法中沒有適當之符號代表,因此沿用「-」運算元。Since the numeric "-" operator does not have a proper symbolic representation in the discretized particle swarm optimization algorithm, the "-" operator is used.

定義6:假定為一個介於(0,1)之間的實數且,有個交換運 算元的交換順序集合,則「」運算元可以定義如下:Definition 6: Assumption Is a real number between (0,1) and ,Have Exchange order set of exchange operands ,then" The operands can be defined as follows:

(7) (7)

其中為亂數函式,可產生一個介於[0,1]之間的實數。代表交換運算集合為空取消本次交換運算。上述公式(7)之目的在於定義「」運算元以亂數決定是否保留交換順序集合中的元素,其中越大保留機率越高。among them For a random number function, a real number between [0, 1] can be generated. The exchange operation set is empty to cancel the exchange operation. The purpose of the above formula (7) is to define " The operand determines whether to keep the exchange order set in random numbers. Elements in which The greater the retention, the higher the chance.

依照上述六項定義,學習公式(5)之相關運算元更新後如下:According to the above six definitions, the relevant operands of the learning formula (5) are updated as follows:

(8) (8)

當粒子的速度決定後,則下一時間狀態的粒子解可被修正為:When the velocity of the particle is determined, the particle solution of the next time state Can be corrected to:

(9) (9)

其中,分別為各複數個檢測路徑個體在時間之位置,表示目前之狀態、為前一個時間之狀態;為各複數個檢測路徑個體之移動速度;為各複數個檢測路徑個體之編號;為各複數個檢測路徑個體之維度;為移動慣性常數;分別為各複數個檢測路徑個體以及初始檢測路徑群體之學習率常數;分別為個體最佳函數值及群體最佳函數值。among them, and Individual time for each of the multiple detection paths and Location, Indicates the current status, The state of the previous time; The moving speed of each of the plurality of detection paths; The number of each individual detection path; Dimensions for each of the plurality of detection paths; To move the inertia constant; versus The learning rate constants of each of the plurality of detection path individuals and the initial detection path group; versus They are the individual best function values and the group optimal function values.

上述公式(8)及(9)即為離散化之粒子群最佳化(Discrete Particle Swarm Optimization,DPSO)演算法之學習公式。由公式(8)及(9)中可以發現,離散化之粒子群最佳化演算法保留了連續型之粒子群最佳化演算法之移動速度參考群體最佳以及個體最佳的關鍵概念。其中,「-」的運算元描述兩組排列編碼字串的差異;「」的功能則是可以合併不同交換運算元,讓多組不同的交換順序集合,利用此運算元得以合併運算;以及「」的概念則與亂數函式合併,表達隨機改變粒子移動的動能。The above formulas (8) and (9) are the learning formulas of the Discrete Particle Swarm Optimization (DPSO) algorithm. It can be found from equations (8) and (9) that the discretized particle swarm optimization algorithm retains the key concept of the moving speed reference group optimal and individual best of the continuous particle swarm optimization algorithm. Among them, the operand of "-" describes the difference between the two sets of coded strings; The function is to combine different exchange operands, let multiple sets of different exchange orders be combined, and use this operand to merge; and The concept is combined with a random number function to express the kinetic energy that randomly changes the movement of particles.

接著,便可透過離散化之粒子群最佳化演算法對初始檢測路徑群體進行運算動作。在步驟S108中,在取得初始檢測路徑群體中之各複數個檢測路徑個體之位置及移動速度之後,透過移動成本公式(3)計算初始檢測路徑群體中之各複數個檢測路徑個體之適應函數值(即移動成本)。Then, the initial detection path group can be operated by the discretized particle group optimization algorithm. In step S108, the position of each of the plurality of detection path individuals in the initial detection path group is obtained. And moving speed Thereafter, the fitness function value (ie, the moving cost) of each of the plurality of detection path individuals in the initial detection path group is calculated by the moving cost formula (3).

接著,在步驟S110中,依據移動成本公式(3)所計算之適應函數值更新各複數個檢測路徑個體之個體最佳函數值。若所計算之適應函數值優於檢測路徑個體所記憶之個體最佳函數值,則以所計算之適應函數值取代檢測路徑個體所記憶之個體最佳函數值,並且以此適應函數所對應之位置及移動速度取代檢測路徑個體所記憶之最佳位置及最佳移動速度;反之,若所計算之適應函數值未優於檢測路徑個體所記憶之個體最佳函數值,則維持原先之狀態。Next, in step S110, the individual optimal function value of each of the plurality of detection path individuals is updated according to the fitness function value calculated by the movement cost formula (3). . If the calculated fitness function value is better than the individual optimal function value memorized by the individual in the detection path , replacing the individual optimal function value memorized by the individual in the detection path with the calculated fitness function value And adapt to the position of the function And moving speed It replaces the optimal position and optimal moving speed of the individual detected by the detection path; conversely, if the calculated adaptive function value is not better than the individual optimal function value memorized by the individual detecting path , to maintain the original state.

接著,依據移動成本公式(3)所計算之適應函數值更新初始檢測路徑群體之群體最佳函數值。若所計算之適應函數值優於初始檢測路徑群體所記憶之群體最佳函數值,則以所計算之適應函數值取代初始檢測路徑群體所記憶之群體最佳函數值,並且以此適應函數所對應之位置及移動速度取代初始檢測路徑群體所記憶之最佳位置及最佳移動速度;反之,若所計算之適應函數值未優於初始檢測路徑群體所記憶之群體最佳函數值,則維持原先之狀態。Then, the group optimal function value of the initial detection path group is updated according to the fitness function value calculated by the moving cost formula (3) . If the calculated fitness function value is better than the group optimal function value memorized by the initial detection path group , replacing the optimal group function value remembered by the initial detection path group with the calculated fitness function value And adapt to the position of the function And moving speed Replaces the optimal position and optimal moving speed remembered by the initial detection path group; conversely, if the calculated fitness function value is not better than the group optimal function value remembered by the initial detection path group , to maintain the original state.

接著,在步驟S112中,依據更新後之個體最佳函數值及群體最佳函數值,調整初始檢測路徑群體中之各複數個檢測路徑個體之位置及移動速度,並且進一步判斷是否已調整所有檢測路徑個體之位置及移動速度。若尚未調整所有檢測路徑個體之位置及移動速度,則回到步驟S108中計算其餘之檢測路徑個體之適應函數值。Next, in step S112, according to the updated individual optimal function value Group optimal function value , adjusting the position of each of the plurality of detection paths in the initial detection path group And moving speed And further determine whether the position of all the individual detection paths has been adjusted And moving speed . If the position of all individual detection paths has not been adjusted And moving speed Then, the process returns to step S108 to calculate the adaptive function value of the remaining detection path individuals.

若已調整所有檢測路徑個體之位置及移動速度,則進行步驟S114,以依據調整後之各複數個檢測路徑個體之位置及移動速度,輸出最佳檢測路徑。If the position of all individual detection paths has been adjusted And moving speed , proceeding to step S114 to determine the position of each of the plurality of detection paths according to the adjustment And moving speed , output the best detection path.

請配合圖1及圖2一併參閱圖5(A)、圖5(B)、圖5(C)及圖5(D),圖5(A)、圖5(B)、圖5(C)及圖5(D)為本發明之具檢測路徑最佳化功能之電路板檢測方法之演算過程之示意圖。Please refer to FIG. 5(A), FIG. 5(B), FIG. 5(C) and FIG. 5(D) together with FIG. 1 and FIG. 2, FIG. 5(A), FIG. 5(B), FIG. 5(C). And FIG. 5(D) is a schematic diagram of the calculation process of the circuit board detecting method with the detection path optimization function of the present invention.

以圖2及表一所示之八組檢測點為例,說明粒子演化之過程:Take the eight sets of detection points shown in Figure 2 and Table 1 as an example to illustrate the process of particle evolution:

假設有一個粒子個體(即檢測路徑個體)在時間之位置為,其檢測路徑如圖5(A)所示;假設目前粒子個體所記憶之個體最佳解(即個體最佳函數值)為,其檢測路徑如圖5(B)所示;假設目前粒子群體之群體最佳解(即初始檢測路徑群體之群體最佳函數值)為,其檢測路徑如圖5(C)所示;以及假設粒子個體在時間之移動速度為,並且令一交換順序集合Suppose there is a particle individual (ie, the detection path individual) at the time The location is The detection path is shown in Fig. 5(A); it is assumed that the individual optimal solution (ie, the individual optimal function value) memorized by the individual particles is The detection path is shown in Figure 5(B); suppose the population optimal solution of the current particle population (ie, the population optimal function value of the initial detection path group) is , whose detection path is as shown in Figure 5(C); and assuming that the individual particles are in time The moving speed is And make an exchange order set .

個體最佳解與個體差異運算:Individual best solution and individual difference calculation:

假設亂數函式產生之兩個實數,則保留,並且令一個交換順序集合Suppose the two real numbers generated by the random number function versus , then keep and And make an exchange order set .

群體最佳解與個體差異運算:Group optimal solution and individual difference calculation:

;

假設亂數函式產生之四個實數,則會被捨棄,則會被保留,並且令一個Suppose the four real numbers generated by the random number function , , and ,then with Will be abandoned, versus Will be retained and make one .

依照公式(8)計算,可以表示為下列方程式:Calculated according to formula (8), Can be expressed as the following equation:

;

;

;

計算後可以得到更新後之粒子,其檢測路徑如圖5(D)所示。After calculation, you can get the updated particles. The detection path is as shown in Fig. 5(D).

因此,透過上述離散化之粒子群最佳化演算法之加法、乘法與減法運算元,不僅可規劃出最佳檢測路徑,更可大幅縮減電路板之檢測時間,實具備產業利用價值。Therefore, the addition, multiplication and subtraction elements of the discretized particle group optimization algorithm can not only plan the optimal detection path, but also greatly reduce the detection time of the board, and have industrial utilization value.

上述所揭露的各個實施例僅為例示性,而非為限制性。任何未背離本發明之精神與範疇,而對本發明所揭露之實施例進行的等效修改或變更,皆應包含於後附之申請專利範圍中。The various embodiments disclosed above are illustrative only and not limiting. Equivalent modifications or variations of the embodiments of the present invention are intended to be included within the scope of the appended claims.

60‧‧‧電路板
S100、S102、S104、S106、S108、S110、S112、S114‧‧‧步驟
PL ‧‧‧左探針
PR ‧‧‧右探針
v 1v 2v 3v 4v 5v 6v 7v 8 ‧‧‧檢測點
60‧‧‧ boards
S100, S102, S104, S106, S108, S110, S112, S114‧‧ steps
P L ‧‧‧Left probe
P R ‧‧‧Right probe
v 1 , v 2 , v 3 , v 4 , v 5 , v 6 , v 7 , v 8 ‧‧‧ detection points

圖1為本發明之具檢測路徑最佳化功能之電路板檢測方法之流程圖。1 is a flow chart of a method for detecting a circuit board with a detection path optimization function according to the present invention.

圖2為使用本發明之具檢測路徑最佳化功能之電路板檢測方法檢測電路板之示意圖。2 is a schematic diagram of a circuit board detecting method for detecting a circuit board using the detection path optimization function of the present invention.

圖3為本發明之具檢測路徑最佳化功能之電路板檢測方法符合條件3時之移動路徑示意圖。FIG. 3 is a schematic diagram of a moving path when the circuit board detecting method with the detection path optimization function according to the present invention meets the condition 3.

圖4(A)及圖4(B)為本發明之具檢測路徑最佳化功能之電路板檢測方法符合條件4時之移動路徑示意圖。4(A) and 4(B) are schematic diagrams showing the movement path of the circuit board detection method with the detection path optimization function according to condition 4 in the present invention.

圖5(A)、圖5(B)、圖5(C)及圖5(D)為本發明之具檢測路徑最佳化功能之電路板檢測方法之演算過程之示意圖。5(A), 5(B), 5(C) and 5(D) are schematic diagrams showing the calculation process of the circuit board detecting method with the detection path optimization function of the present invention.

Claims (10)

一種具檢測路徑最佳化功能之電路板檢測方法,用以對包含複數個檢測點之一電路板進行檢測,該電路板檢測方法包含: 對該複數個檢測點進行編組,以形成N組檢測點; 透過一字串排列編碼對該N組檢測點進行排列,以形成一初始檢測路徑群體;以及 透過一粒子群最佳化(Particle Swarm Optimization,PSO)演算法對該初始檢測路徑群體進行一運算動作,以取得一最佳檢測路徑。A circuit board detecting method for detecting a path optimization function for detecting a circuit board including a plurality of detecting points, wherein the circuit board detecting method comprises: grouping the plurality of detecting points to form N sets of detecting Pointing; arranging the N sets of detection points by a string arrangement code to form an initial detection path group; and performing a preliminary detection path group by a Particle Swarm Optimization (PSO) algorithm The operation is performed to obtain an optimal detection path. 如申請專利範圍第1項所述之具檢測路徑最佳化功能之電路板檢測方法,更包含:定義該複數個檢測點之座標。The method for detecting a circuit board with a detection path optimization function according to the first aspect of the patent application includes: defining a coordinate of the plurality of detection points. 如申請專利範圍第1項所述之具檢測路徑最佳化功能之電路板檢測方法,更包含: 透過一鄰近法將該N組檢測點組成一初始檢測路徑個體; 透過該字串排列編碼對該初始檢測路徑個體中的該N組檢測點進行排列,以形成複數個檢測路徑個體;以及 隨機選取部分該複數個檢測路徑個體,以形成該初始檢測路徑群體。The method for detecting a circuit board having the detection path optimization function according to the first aspect of the patent application includes: forming, by a neighboring method, the N sets of detection points into an initial detection path; and arranging the coding pairs through the string The N sets of detection points in the initial detection path individual are arranged to form a plurality of detection path individuals; and the plurality of detection path individuals are randomly selected to form the initial detection path group. 如申請專利範圍第3項所述之具檢測路徑最佳化功能之電路板檢測方法,更包含: 將該粒子群最佳化演算法離散化,以透過離散化之該粒子群最佳化演算法對該初始檢測路徑群體進行該運算動作。The method for detecting a circuit board having the detection path optimization function described in claim 3, further comprising: discretizing the particle swarm optimization algorithm to optimize the particle swarm optimization through the discretization The method performs the operation on the initial detection path group. 如申請專利範圍第4項所述之具檢測路徑最佳化功能之電路板檢測方法,其中離散化之該粒子群最佳化演算法更包含: 取得該初始檢測路徑群體中之各該複數個檢測路徑個體之一位置及一移動速度。The method for detecting a circuit board with a detection path optimization function according to claim 4, wherein the discretization of the particle group optimization algorithm further comprises: obtaining each of the plurality of initial detection path groups Detecting the location of one of the individual paths and a moving speed. 如申請專利範圍第5項所述之具檢測路徑最佳化功能之電路板檢測方法,其中離散化之該粒子群最佳化演算法更包含: 透過一移動成本公式計算該初始檢測路徑群體中之各該複數個檢測路徑個體之一適應函數值。The method for detecting a circuit board with the detection path optimization function described in claim 5, wherein the discretization of the particle swarm optimization algorithm further comprises: calculating the initial detection path group by using a mobile cost formula One of the plurality of detection path individuals adapts to the function value. 如申請專利範圍第6項所述之具檢測路徑最佳化功能之電路板檢測方法,其中離散化之該粒子群最佳化演算法更包含: 依據該適應函數值更新各該複數個檢測路徑個體之一個體最佳函數值。The method for detecting a circuit board with the detection path optimization function described in claim 6 wherein the discretization of the particle swarm optimization algorithm further comprises: updating each of the plurality of detection paths according to the adaptation function value. One of the individual's best function values. 如申請專利範圍第7項所述之具檢測路徑最佳化功能之電路板檢測方法,其中離散化之該粒子群最佳化演算法更包含: 依據該適應函數值更新該初始檢測路徑群體之一群體最佳函數值。The method for detecting a circuit board with a detection path optimization function according to the seventh aspect of the patent application, wherein the discretization of the particle swarm optimization algorithm further comprises: updating the initial detection path group according to the adaptation function value; A group of best function values. 如申請專利範圍第8項所述之具檢測路徑最佳化功能之電路板檢測方法,其中離散化之該粒子群最佳化演算法更包含: 依據更新後之該個體最佳函數值及該群體最佳函數值,調整該初始檢測路徑群體中之各該複數個檢測路徑個體之該位置及該移動速度。The method for detecting a circuit board with the detection path optimization function described in claim 8 wherein the discretization of the particle swarm optimization algorithm further comprises: according to the updated optimal function value of the individual and the The group optimal function value adjusts the position of the plurality of detection path individuals in the initial detection path group and the moving speed. 如申請專利範圍第9項所述之具檢測路徑最佳化功能之電路板檢測方法,其中離散化之該粒子群最佳化演算法更包含: 依據調整後之該位置及該移動速度,輸出該最佳檢測路徑。The method for detecting a circuit board having a detection path optimization function according to claim 9 is characterized in that the discretization of the particle group optimization algorithm further comprises: outputting according to the adjusted position and the moving speed, The best detection path.
TW105127649A 2016-08-29 2016-08-29 Circuit board inspection method with inspection route optimization function TW201807423A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105127649A TW201807423A (en) 2016-08-29 2016-08-29 Circuit board inspection method with inspection route optimization function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105127649A TW201807423A (en) 2016-08-29 2016-08-29 Circuit board inspection method with inspection route optimization function

Publications (1)

Publication Number Publication Date
TW201807423A true TW201807423A (en) 2018-03-01

Family

ID=62189842

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105127649A TW201807423A (en) 2016-08-29 2016-08-29 Circuit board inspection method with inspection route optimization function

Country Status (1)

Country Link
TW (1) TW201807423A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113447022A (en) * 2020-03-24 2021-09-28 百德机械股份有限公司 Path planning method and system for workpiece detection

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113447022A (en) * 2020-03-24 2021-09-28 百德机械股份有限公司 Path planning method and system for workpiece detection

Similar Documents

Publication Publication Date Title
CN104200087B (en) For the parameter optimization of machine learning and the method and system of feature tuning
Mo et al. Research of biogeography particle swarm optimization for robot path planning
Yu et al. Intelligent decision making and bionic movement control of self-organized swarm
Wang et al. Multi-objective optimization of turbomachinery using improved NSGA-II and approximation model
Zhu et al. An improved shuffled frog-leaping algorithm to optimize component pick-and-place sequencing optimization problem
Alexandridis et al. A particle swarm optimization approach in printed circuit board thermal design
Ismail et al. Using the Bees Algorithm to solve combinatorial optimisation problems for TSPLIB
Singh et al. A review on VLSI floorplanning optimization using metaheuristic algorithms
Dubey et al. Uniform mutation and SPV rule based optimized PSO algorithm for TSP problem
Kong et al. RNN-based default logic for route planning in urban environments
Sivaranjani et al. Hybrid Particle Swarm Optimization-Firefly algorithm (HPSOFF) for combinatorial optimization of non-slicing VLSI floorplanning
Schuman et al. Evolutionary vs imitation learning for neuromorphic control at the edge
TW201807423A (en) Circuit board inspection method with inspection route optimization function
Xiao et al. A locating method for reliability-critical gates with a parallel-structured genetic algorithm
Jain et al. Solving N-queen problem using genetic algorithm by advance mutation operator
Leno et al. Layout design for efficient material flow path
Descamps et al. Graph theory in evolutionary truss design optimization
Siddiqi et al. Memory-efficient genetic algorithm for path optimization in embedded systems
Shao et al. An improved beetle antennae search algorithm based on the elite selection mechanism and the neighbor mobility strategy for global optimization problems
Kala et al. Robotic path planning using hybrid genetic algorithm particle swarm optimisation
Cpałka et al. A multi-population-based algorithm with different ways of subpopulations cooperation
Marcolino et al. Aggregating opinions to design energy-efficient buildings
Parvandeh et al. A modified single and multi-objective bacteria foraging optimisation for the solution of quadratic assignment problem
Liu et al. A novel hybrid immune algorithm and its convergence based on the steepest descent algorithm
Nolle et al. Intelligent computational optimization in engineering: Techniques and applications