JPH05298283A - Route decision method - Google Patents

Route decision method

Info

Publication number
JPH05298283A
JPH05298283A JP9782992A JP9782992A JPH05298283A JP H05298283 A JPH05298283 A JP H05298283A JP 9782992 A JP9782992 A JP 9782992A JP 9782992 A JP9782992 A JP 9782992A JP H05298283 A JPH05298283 A JP H05298283A
Authority
JP
Japan
Prior art keywords
branches
shortest
branch
nodes
closed
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
Application number
JP9782992A
Other languages
Japanese (ja)
Inventor
Takashi Tanaka
孝 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP9782992A priority Critical patent/JPH05298283A/en
Publication of JPH05298283A publication Critical patent/JPH05298283A/en
Pending legal-status Critical Current

Links

Landscapes

  • Supply And Installment Of Electrical Components (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PURPOSE:To find the shortest closed loop connecting N nodes. CONSTITUTION:Assuming that each node should be selected twice from N nodes, N branches (i,j) are selected in succession in order of shorter length dij, preparing m closing loops by means of the connected branch. Then two branches (i,j) which belong to dissimilar closing loops are selected. When a new closed loop is prepared by removing the two branches and connecting the remaining two openings, a new closed loop is made by finding the shortest combination, and an approximated solution is obtained by repeating the operation until the two closings are made one.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、N個の節点を一巡する
閉路のうち、最短のものの近似解を求める方法に関し、
回路基板に複数個の電子部品を装着するときの最短経路
決定等に応用できる。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for finding an approximate solution of the shortest closed circuit that goes around N nodes.
It can be applied to determine the shortest route when mounting a plurality of electronic components on a circuit board.

【0002】[0002]

【従来の技術】電子部品を基板に実装するについては、
効率向上のため様々な工夫がこらされている。例えば、
特開平3−167895号公報には、部品フィ−ダを、
部品搬出頻度の高いものから優先的に、該部品フィ−ダ
がその供給する部品に関する分布中心の最も近くに取り
付けられるよう配置した部品実装装置が記載されてい
る。これは、部品供給における最適化を計ったものであ
るが、基板に電子部品を装着する際の順序決定には、ま
た別の手法を用いねばならない。そこで考えられるの
が、最適化手法の一つ「巡回セ−ルスマン問題」の適用
である。これは、N個の節点を持つ完全無向グラフ(す
べての節点対(i,j)に枝がある)において枝(i,
j)の長さをdijとするとき(dij=dji)、全節点を
一巡する閉路(巡回路)の中で最短のものを見出すとい
うものである。基板上に部品を1点づつ配置して行く場
合に適用して最短経路を見つければ、部品装着ヘッドな
いし基板支持台の移動距離を短くでき、作業時間の短縮
につながる。
2. Description of the Related Art For mounting electronic components on a board,
Various efforts have been made to improve efficiency. For example,
Japanese Laid-Open Patent Publication No. 3-167895 discloses a component feeder,
A component mounting apparatus is described in which the component feeders are arranged so that the component feeders are mounted so that the component feeders are mounted closest to the center of distribution of the components supplied by the component feeders. This is an optimization in component supply, but another method must be used to determine the order when mounting electronic components on a board. One possible solution is to apply one of the optimization methods, the “Circle-Sailsman Problem”. This means that in a fully undirected graph with N nodes (every node pair (i, j) has a branch), the branch (i,
When the length of j) is d ij (d ij = d ji ), the shortest closed circuit (tour circuit) that goes around all nodes is found. If the shortest path is found by applying it when arranging the components one by one on the substrate, the moving distance of the component mounting head or the substrate support can be shortened, which leads to a reduction in working time.

【0003】ところで、「巡回セ−ルスマン問題」を適
用すると言っても、どのような解法でも良いという訳に
は行かない。良く使われるものに「欲張り法」がある。
これは、閉路を形成しない、各節点は2度以上選ばない
という2つの条件のもとで長さdijの短いものから順に
枝(i,j)をN−1個選び、1つの開路を形成し、最
後に開路の端の2つの節点をつないで1つの閉路を作成
する、というものである。その一例を図3に示す。枝の
横の数字は短さの順位を表している。この方法では、最
後の方になって形成される枝が極端に長くなる場合が多
く、全体としても長くなってしまう。ニュ−ラルネット
ワ−ク(ホップフィ−ルドネットワ−ク、ボルツマン・
マシン等)を応用することも考えられるが、節点数が数
十点以上になった場合、実用的な時間内に実用的な解を
求めることが困難になる。
By the way, it cannot be said that any solution method may be used even if it is said that the "Circulating Sailsman Problem" is applied. The greedy method is one that is often used.
This is because N-1 branches (i, j) are selected in order from the shortest length d ij under the two conditions that a closed path is not formed and each node is not selected more than once. It is formed, and finally, two nodes at the end of the open circuit are connected to create one closed circuit. An example thereof is shown in FIG. The numbers next to the branches indicate the rank of shortness. In this method, the branches formed at the end are often extremely long, and the length of the branches is long as a whole. Regular network (Hop field network, Boltzmann
It is also possible to apply a machine, etc.), but if the number of nodes exceeds several tens, it becomes difficult to find a practical solution within a practical time.

【0004】[0004]

【発明が解決しようとする課題】本発明は、複数個の節
点を結ぶ閉路のうち最短のものを求めるに際し、節点の
数が数百点になっても、実用的な時間内に十分実用的な
近似解を得ることができる経路決定方法を提供すること
を目的とする。
DISCLOSURE OF THE INVENTION The present invention finds a shortest closed path connecting a plurality of nodes even if the number of nodes is several hundred, and is sufficiently practical within a practical time. It is an object of the present invention to provide a route determination method that can obtain various approximate solutions.

【0005】[0005]

【課題を解決するための手段】本発明では、各節点は2
度づつ選ばれるという条件のもとで枝(i,j)を、長
さdijの短いものから順にN個づつ選択し、接続関係に
ある枝によりm個(mは不特定数)の閉路を作成し、次
に、異なる閉路に属する枝(i,j)を2つ選び、この
2つの枝を取り去り、残った2つの開路をつないで新し
い1つの閉路を作成したとき、最も短くなる組み合わせ
を求めて、新しい閉路を作成し、閉路が1つになるまで
この作業を繰り返すことにより、近似解を求める。
In the present invention, each node has 2 points.
Under the condition that each branch (i, j) is selected in order from the shortest length d ij , m (where m is an unspecified number) closed loops are selected according to the connected branches. And then select two branches (i, j) belonging to different cycles, remove these two branches, and connect the remaining two open paths to create a new closed path, the shortest combination Then, a new cycle is created, and this work is repeated until the number of cycles becomes one, thereby obtaining an approximate solution.

【0006】[0006]

【作用】上記手順を遂行することにより、実用上許容で
きる時間内に最短閉路の近似解を求めることができる。
By performing the above procedure, it is possible to find the approximate solution of the shortest closed circuit within a practically permissible time.

【0007】[0007]

【実施例】図に基づき一実施例を説明する。図1に現れ
た節点は全部で15個あり、これらにA〜Oの符号を付
す。任意の2節点をi、jとし、節点を結ぶ枝(i,
j)の長さをdijとする(i=1,2,3…N j=
1,2,3…N i≠jdij=dji)。電子部品の装
着に本手法を適用する場合、dijはi部品を装着してか
らj部品を装着するまでの時間となる。枝(i,j)は
N2=N・(N−1)/2本存在する。Nが15である
から、この場合の枝(i,j)の数は105本というこ
とになる。これらの枝(i,j)の中から、各節点は2
度づつ選択されるという条件を課して、N個の枝を、短
いものから順に選んで行く。この作業を通じ、接続し合
う枝同士によって、自然にm個(mは不特定数)の閉路
が形成される(m=1の場合は、それがそのまま近似解
となる)。本実施例の場合、節点の分布状況から、
(M,N)(A,B)(K,L),…(N,O)の14
の枝が選出されたところで、2つの閉路と1つの枝
(A,B)が生成される。但し15番目の枝を選ぶこと
ができない。このような場合、枝(A,B)を15番目
の枝として再び選ぶ。これにより、(A−B−A)の閉
路が形成されたことになる。
Embodiment An embodiment will be described with reference to the drawings. There are a total of 15 nodes appearing in FIG. 1, and these are denoted by symbols A to O. Let arbitrary two nodes be i and j, and branches (i, j
The length of j) is d ij (i = 1, 2, 3 ... N j =
1, 2, 3, ... N i ≠ jd ij = d ji ). When this method is applied to the mounting of electronic components, dij is the time from the mounting of the i component to the mounting of the j component. Branch (i, j) is
N C 2 = N · (N−1) / 2 exist. Since N is 15, the number of branches (i, j) in this case is 105. Of these branches (i, j), each node is 2
The N branches are selected in order from the shortest one under the condition that they are selected each time. Through this operation, m (m is an unspecified number) closed circuits are naturally formed by the branches that are connected to each other (when m = 1, they become approximate solutions as they are). In the case of this embodiment, from the distribution of nodes,
(M, N) (A, B) (K, L), ... (N, O) 14
When the branch is selected, two closed circuits and one branch (A, B) are generated. However, the fifteenth branch cannot be selected. In such a case, branch (A, B) is re-selected as the 15th branch. As a result, a closed circuit of (A-B-A) is formed.

【0008】次の作業手順としては、異なる閉路に属す
る枝を2つ選び{(i1,j1)、(i2,j2)}、
これを取り去る。すると2つの開路が残る。この開路を
つないで新しい1つの閉路を作成したとき、最も短くな
る組み合わせを求めて、枝を入れ替えて行く。すなわち Dp=di1ji+di2j2n=MIN{(di1i2+dj1j2),(di1j2
j1i2)} ΔD=Dn−Dp 上記において、ΔDが最も小さくなる枝(i1,j
1)、枝(i2,j2)の組み合わせを求め、枝の入れ
替えを行う。このようにして、2つの閉路を1つにする
作業を、最終的に閉路がただ1個になるまで繰り返す
(m−1回の入れ替えを行う)。こうして作成した閉路
が最短閉路の近似解である。
As the next work procedure, two branches belonging to different closed circuits are selected {(i1, j1), (i2, j2)},
Remove this. Then there are two open paths. When this open circuit is connected to create a new closed circuit, the shortest combination is obtained and the branches are replaced. That is, D p = d i1ji + d i2j2 D n = MIN {(d i1i2 + d j1j2 ), (d i1j2 +
d j1i2 )} ΔD = D n −D p In the above, the branch (i1, j
1), the combination of the branches (i2, j2) is obtained, and the branches are exchanged. In this way, the operation of making two closed circuits into one is repeated until only one closed circuit is finally obtained (m-1 times of replacement are performed). The closed circuit thus created is the approximate solution of the shortest closed circuit.

【0009】実施例につき上記操作を行うと 枝(H,G),枝(J,K)→ 枝(H,J),枝
(G,K) 枝(A,B),枝(C,D)→ 枝(A,C),枝
(B,D) このように枝が入れ替わり、図2の閉路が得られる。
When the above operation is carried out for the embodiment, branch (H, G), branch (J, K) → branch (H, J), branch (G, K) branch (A, B), branch (C, D) ) → branch (A, C), branch (B, D) In this way, the branches are interchanged, and the closed circuit of FIG. 2 is obtained.

【0010】本発明の方法で得られた閉路につき、更に
反復改善法の適用が可能である。すなわち、L本の枝を
入れ替えてみて、閉路の長さが入れ替え前より短くなれ
ば、そのように枝を置き換える。これを繰り返すことに
より、近似解の精度を高められる。計算時間の点から、
Lは2あるいは3とする。図2で得た近似解について
は、反復改善法を適用しても効果がなかった。これは、
本発明の手順のみで既に良好な近似解が得られているた
めである。
The closed loop obtained by the method of the present invention can be further applied with the iterative improvement method. That is, when the L branches are exchanged and the length of the closed circuit becomes shorter than that before the exchange, the branches are replaced as such. By repeating this, the accuracy of the approximate solution can be improved. In terms of calculation time,
L is 2 or 3. The iterative improvement method applied to the approximate solution obtained in FIG. 2 had no effect. this is,
This is because a good approximate solution has already been obtained only by the procedure of the present invention.

【0011】ここで、本発明方法との対比のため、欲張
り法に反復改善法を適用したケ−スについて、図3、図
4に基づき説明する。まず、各節点は2度しか選択され
ない、閉路を構成しないという条件のもとで、短い枝よ
り順に14個の枝を選出し、1つの開路を作成する。最
後に、閉路とするため、15番目の枝(B,O)を選ぶ
(図3)。この方法では、図1、図2で得られた結果に
比べ、経路がかなり長くなっている。ここに反復改善法
を適用する。枝の入れ換え数は2とし、改善効果がなく
なるまで入れ換えを続ける。その結果を図4に示す(枝
の入れ換えは4回実行されている)。改善は見られる
が、図2のものに比べまだ少し長い。
For comparison with the method of the present invention, a case in which the iterative improvement method is applied to the greedy method will be described with reference to FIGS. 3 and 4. First, under the condition that each node is selected only twice and does not form a closed path, 14 branches are selected in order from the shortest branch, and one open path is created. Finally, the fifteenth branch (B, O) is selected to make it a closed circuit (FIG. 3). In this method, the path is considerably longer than the results obtained in FIGS. 1 and 2. The iterative improvement method is applied here. The number of branches to be replaced is 2, and the replacement is continued until the improvement effect disappears. The result is shown in FIG. 4 (replacement of the branch is executed four times). There are improvements, but it's still a bit longer than the one in Figure 2.

【0012】[0012]

【発明の効果】本発明の方法は、節点群を何個かの閉路
に振りわけ、2つの閉路を最も短い経路でつなぐ操作を
繰り返すことにより、ただ1個の閉路を求め、これを近
似解とする、というものであって、欲張り法のように長
い枝が発生することがなく、条件(節点の分布状況)に
よって近似解の精度に多少のばらつきが出るとはいうも
のの、精度の良い近似解を安定して得ることができる。
The method of the present invention finds only one closed loop by allocating the node group to some closed loops and repeating the operation of connecting the two closed loops with the shortest path, and the approximated solution is obtained. However, unlike the greedy method, long branches do not occur, and the accuracy of the approximate solution may vary slightly depending on the conditions (distribution of nodes), but the accurate approximation The solution can be stably obtained.

【0013】また、反復改善法、またはその他の改善ア
ルゴリズムと併用することにより、様々な条件の下でも
精度のよい近似解に到達することが可能であり、実践的
である。
Further, by using iterative improvement method or other improvement algorithm together, it is possible to reach an accurate approximate solution even under various conditions, which is practical.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1ステップ、m個の閉路を作成する
状況を示す図である。
FIG. 1 is a diagram showing a first step of the present invention, a situation in which m closed circuits are created.

【図2】本発明の第2ステップ、閉路同士をつないで行
ってただ1個の閉路を作成する状況を説明する図であ
る。
FIG. 2 is a diagram illustrating a second step of the present invention, which is a state in which closed circuits are connected to each other to create only one closed circuit.

【図3】欲張り法により得られた閉路の図である。FIG. 3 is a diagram of a closed circuit obtained by the greedy method.

【図4】図3で得られた閉路に、反復改善法を適用した
場合を示す図である。
FIG. 4 is a diagram showing a case in which an iterative improvement method is applied to the closed circuit obtained in FIG.

【符号の説明】[Explanation of symbols]

A〜O 節点 A to O nodes

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 N個の節点を有する完全無向グラフ(す
べての節点対(i,j)に枝がある)において、全節点
を一巡する閉路の中で最短のものを見出すに際し、各節
点は2度づつ選ばれるという条件のもとで枝(i,j)
を、長さdijの短いものから順にN個づつ選択し、接続
関係にある枝によりm個の閉路を作成し、次に、異なる
閉路に属する枝(i,j)を2つ選び、この2つの枝を
取り去り、残った2つの開路をつないで新しい1つの閉
路を作成したとき、最も短くなる組み合わせを求めて、
新しい閉路を作成し、閉路が1つになるまでこの作業を
繰り返すことにより、近似解を求めることを特徴とする
経路決定方法。
1. In a completely undirected graph having N nodes (every node pair (i, j) has a branch), each node is found in finding the shortest closed circuit that goes through all the nodes. Branch (i, j) under the condition that is selected twice
N are selected in order from the shortest length d ij , m closed circuits are created by branches having a connection relationship, and then two branches (i, j) belonging to different closed paths are selected. When the two branches are removed and the remaining two open circuits are connected to create a new closed circuit, the shortest combination is found,
A route determination method characterized in that an approximate solution is obtained by creating a new cycle and repeating this work until there is one cycle.
JP9782992A 1992-04-17 1992-04-17 Route decision method Pending JPH05298283A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9782992A JPH05298283A (en) 1992-04-17 1992-04-17 Route decision method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9782992A JPH05298283A (en) 1992-04-17 1992-04-17 Route decision method

Publications (1)

Publication Number Publication Date
JPH05298283A true JPH05298283A (en) 1993-11-12

Family

ID=14202616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9782992A Pending JPH05298283A (en) 1992-04-17 1992-04-17 Route decision method

Country Status (1)

Country Link
JP (1) JPH05298283A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996440B2 (en) 2000-08-04 2006-02-07 Matsushita Electric Industrial Co., Ltd. Method for optimization of an order of component mounting, apparatus using the same, and mounter
WO2006064680A1 (en) * 2004-12-15 2006-06-22 Matsushita Electric Industrial Co., Ltd. Action time shortening method, action time shortening device, program, and parts mounting machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996440B2 (en) 2000-08-04 2006-02-07 Matsushita Electric Industrial Co., Ltd. Method for optimization of an order of component mounting, apparatus using the same, and mounter
WO2006064680A1 (en) * 2004-12-15 2006-06-22 Matsushita Electric Industrial Co., Ltd. Action time shortening method, action time shortening device, program, and parts mounting machine
US7899561B2 (en) 2004-12-15 2011-03-01 Panasonic Corporation Operating time reducing method, operating time reducing apparatus, program and component mounter

Similar Documents

Publication Publication Date Title
US7072304B2 (en) Network path selection based on bandwidth
Hertz et al. Improvement procedures for the undirected rural postman problem
Segal et al. A queueing network analyzer for manufacturing
Nucera et al. Observability analysis: a new topological algorithm
Provan A polynomial‐time algorithm to find shortest paths with recourse
US7664040B2 (en) Method of accelerating the shortest path problem
Dowsland Hill-climbing, simulated annealing and the Steiner problem in graphs
Park et al. A neural network based multi-destination routing algorithm for communication network
CA2033706A1 (en) Apparatus and method for detecting and eliminating call looping in a node-by-node routing network
Torrieri Algorithms for finding an optimal set of short disjoint paths in a communication network
WO2010127527A1 (en) Method and apparatus for implementing k-shortest paths algorithm in the case of existing multiple edges between adjacent nodes
Perepelkin et al. Fast rerouting algorithm in distributed computer networks based on subnet routing method
Alzaid et al. Global link arrangement for practical dragonfly
JPH05298283A (en) Route decision method
Fettweis et al. Parallel Viterbi decoding by breaking the compare-select feedback bottleneck
Lin et al. SIFAR: Static test compaction for synchronous sequential circuits based on single fault restoration
JP2004503989A (en) Routing in communication networks
JP5060515B2 (en) Ground-to-ground traffic estimation method, ground-to-ground traffic estimation device and program
Bertsekas et al. Validation of algorithms for optimal routing of flow in networks
Raidl et al. Evolutionary local search for the edge-biconnectivity augmentation problem
JPH05298282A (en) Method for deciding route
JP4315386B2 (en) Minimum path calculation method, apparatus thereof, and communication network using the same
EP2028792B1 (en) Method and apparatus for identifying components of a network having high importance for network integrity
Németh et al. Test generation algorithm for the All-Transition-State criteria of Finite State Machines
US20150365254A1 (en) Network relay apparatus and method for generating a data forwarding table