TWI652629B - Mixed genetic algorithm - Google Patents

Mixed genetic algorithm Download PDF

Info

Publication number
TWI652629B
TWI652629B TW107101727A TW107101727A TWI652629B TW I652629 B TWI652629 B TW I652629B TW 107101727 A TW107101727 A TW 107101727A TW 107101727 A TW107101727 A TW 107101727A TW I652629 B TWI652629 B TW I652629B
Authority
TW
Taiwan
Prior art keywords
target
adaptation
targets
hybrid
pursuit
Prior art date
Application number
TW107101727A
Other languages
Chinese (zh)
Other versions
TW201933195A (en
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 TW107101727A priority Critical patent/TWI652629B/en
Application granted granted Critical
Publication of TWI652629B publication Critical patent/TWI652629B/en
Publication of TW201933195A publication Critical patent/TW201933195A/en

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本發明提供一種混合式基因運算方法,其包含下列步驟:接收一追尋目標以隨機產生複數解決路徑;將各解決路徑轉化成一第一適應目標;將第一適應目標與追尋目標比對,產生不可行解時,將第一適應目標進行一基因運算,以產生複數第二適應目標;將第二適應目標進行一單點搜尋運算及比較運算,以產生複數之第一評估路徑與第二評估路徑;將各第一評估路徑與各第二評估路徑轉化成一混合適應目標;當混合適應目標符合追尋目標,則將混合適應目標視為最佳化解,藉此,達到快速收斂及減少演算時間之效果。The present invention provides a hybrid genetic algorithm method, comprising the steps of: receiving a tracking target to randomly generate a complex solution path; converting each solution path into a first adaptation target; comparing the first adaptation target with the pursuit target, generating a non- In the solution, the first adaptation target is subjected to a genetic operation to generate a plurality of second adaptation targets; the second adaptation target is subjected to a single point search operation and a comparison operation to generate a plurality of first evaluation paths and second evaluation paths. Converting each first evaluation path and each second evaluation path into a mixed adaptation target; when the mixed adaptation target meets the pursuit target, the mixed adaptation target is regarded as an optimal solution, thereby achieving fast convergence and reducing the calculation time effect .

Description

混合式基因運算方法Hybrid genetic algorithm

本發明係關於一種演算方法,尤指一種混合式基因運算方法。The invention relates to a calculation method, in particular to a hybrid genetic operation method.

基因運算法(Genetic Algorithm,簡稱GA)是計算數學中用於解決最佳化的搜索算法,基因運算法經由初始母體的演化、迭代的過程,保留較優秀的子代。Genetic algorithm (GA) is a search algorithm used in computational mathematics to solve optimization. The genetic algorithm retains better offspring through the process of initial parent evolution and iteration.

基因運算法流程:一開始隨機產生n個染色體;利用適應函數計算所有染色體的適應值;利用適應函數計算所有染色體的適應值;利用適應函數計算所有染色體的適應值;重覆前述「評估適應函數」、「選擇、複製」、「交配」、「突變」等步驟2至4次,執行完前述步驟2至4次的動作稱為1次疊代,直到收斂,其中,收斂的條件在於,疊代次數到達一定次數或是所有染色體都非常相似。Gene algorithm flow: randomly generate n chromosomes at the beginning; use adaptive function to calculate the fitness values of all chromosomes; use adaptive function to calculate the fitness values of all chromosomes; use adaptive function to calculate the fitness values of all chromosomes; repeat the above "assessment adaptive function" Steps such as "selection, copying", "mating", and "mutation" are performed 2 to 4 times. The operation of performing the above steps 2 to 4 times is called 1 iteration until convergence, and the condition of convergence is that The number of generations reaches a certain number of times or all chromosomes are very similar.

基因運算法雖然具有全局搜索能力,可以將解空間中的全體解搜索出,而不會陷入局部解快速下降之問題;但是,基因運算法的局部搜索能力較差,導致單純的遺傳演算法比較費時,在進化後期搜索效率較低,而在實際應用中,基因運算法容易產生早熟收斂的問題,不一定是有找到最佳解而收斂,造成誤算之問題發生。Although the genetic algorithm has global search ability, it can search out the whole solution in the solution space without falling into the problem of rapid decline of local solutions. However, the local search ability of the genetic algorithm is poor, which makes the simple genetic algorithm more time-consuming. In the late stage of evolution, the search efficiency is low. In practical applications, the genetic algorithm is prone to the problem of premature convergence. It is not necessarily that the best solution is found and converges, causing miscalculations.

為解決上述課題,本發明提供一種混合式基因運算方法,將追尋目標經由基因運算配合單點搜尋運算與比較運算,達到快速收斂及最佳化之結果,進而減少演算時間。In order to solve the above problems, the present invention provides a hybrid genetic algorithm method, which combines a search target with a single point search operation and a comparison operation through a genetic operation to achieve a fast convergence and optimization result, thereby reducing the calculation time.

本發明之一項實施例提供一種混合式基因運算方法,其包含下列步驟:接收一追尋目標,針對追尋目標隨機產生複數解決路徑;將各解決路徑轉化成對應之一第一適應目標;將所述之第一適應目標與追尋目標比對,產生不可行解時,將所述之第一適應目標進行一基因運算,以產生複數第二適應目標;將所述之第二適應目標進行一單點搜尋運算,以產生複數第一評估路徑;將所述之第二適應目標進行一比較運算,以產生複數第二評估路徑;將各第一評估路徑與各第二評估路徑轉化成一混合適應目標;以及將混合適應目標與追尋目標比對,當混合適應目標符合追尋目標,則將混合適應目標視為最佳化解。An embodiment of the present invention provides a hybrid genetic algorithm method, including the steps of: receiving a tracking target, randomly generating a complex solution path for the pursuit target; converting each solution path into a corresponding one of the first adaptation targets; When the first adaptation target is compared with the pursuit target, and the infeasible solution is generated, the first adaptation target is subjected to a genetic operation to generate a plurality of second adaptation targets; and the second adaptation target is performed as a single Point search operation to generate a plurality of first evaluation paths; performing a comparison operation on the second adaptation target to generate a plurality of second evaluation paths; converting each first evaluation path and each second evaluation path into a mixed adaptive target And comparing the mixed adaptation target with the pursuit target, and when the mixed adaptation target meets the pursuit target, the mixed adaptation target is regarded as the optimal solution.

於其中一項實施例中,單點搜尋運算將各第二適應目標與追尋目標逐一進行比對,以產生符合追尋目標之各第一評估路徑。In one of the embodiments, the single point search operation compares each of the second adaptive targets with the pursuit target one by one to generate respective first evaluation paths that meet the pursuit target.

於其中一項實施例中,單點搜尋運算係模擬退火法。In one of the embodiments, the single point search operation is a simulated annealing method.

於其中一項實施例中,比較運算將所述之第二適應目標儲存至一資訊庫中。In one of the embodiments, the comparing operation stores the second adaptation target into a repository.

於其中一項實施例中,比較運算將資訊庫中所儲存之各第二適應目標轉換成一比較適應目標,當比較運算再次接收到新的各第二適應目標時,比較運算將新的各第二適應目標與各比較適應目標比對,以產生各第二評估路徑。In one embodiment, the comparison operation converts each of the second adaptive targets stored in the information base into a comparative adaptive target, and when the comparison operation receives the new second adaptive targets again, the comparison operation will be new. The second adaptation target is compared with each comparison adaptation target to generate each second evaluation path.

於其中一項實施例中,比較運算係禁忌搜索演算法。In one of the embodiments, the comparison operation is a tabu search algorithm.

於其中一項實施例中,基因運算將各第一適應目標進行選擇複製、交配及突變運算,以產生所述之第二適應目標。In one embodiment, the genetic algorithm performs selective replication, mating, and mutation operations on each of the first adaptive targets to generate the second adaptive target.

藉由上述,本發明根據追尋目標經由基因運算搭配單點搜尋運算及比較運算,快速計算出最佳化解,並且能夠保留優良之個體,以及維持群體之多樣性,藉以提升運算速度。By the above, the present invention quickly calculates an optimal solution based on the pursuit of a single point search operation and a comparison operation based on the genetic pursuit, and can preserve the excellent individual and maintain the diversity of the group, thereby improving the operation speed.

再者,本發明之比較運算能夠將優良之第二評估路徑儲存於資訊庫,以利下次運算時,以優良之第二評估路徑進行演算,便能夠有要縮減運算時間,提升演算效率與演算結果。Furthermore, the comparison operation of the present invention can store the excellent second evaluation path in the information base, so as to facilitate the calculation of the second evaluation path with the second evaluation path, so that the calculation time can be reduced and the calculation efficiency is improved. Calculation results.

為便於說明本發明於上述發明內容一欄中所表示的中心思想,茲以具體實施例表達。實施例中各種不同物件係按適於說明之比例、尺寸、變形量或位移量而描繪,而非按實際元件的比例予以繪製,合先敘明。For the convenience of the description, the central idea expressed by the present invention in the column of the above summary of the invention is expressed by the specific embodiments. Various items in the embodiments are depicted in terms of ratios, dimensions, amounts of deformation, or displacements that are suitable for illustration, and are not drawn to the proportions of actual elements, as set forth above.

請參閱圖1至圖3所示,本發明提供一種混合式基因運算方法,其包含下列步驟:Referring to FIG. 1 to FIG. 3, the present invention provides a hybrid genetic algorithm, which comprises the following steps:

隨機步驟S1:接收一追尋目標10,針對追尋目標10隨機產生複數解決路徑20。進一步說明,於本發明實施例中,針對需要解決之追尋目標10,隨機產生可能符合追尋目標10之可行的解,而各解決路徑20也就是各可行的解。Random step S1: receiving a pursuit target 10, randomly generating a complex resolution path 20 for the pursuit target 10. Further, in the embodiment of the present invention, for the pursuit target 10 to be solved, a feasible solution that may meet the pursuit target 10 is randomly generated, and each solution path 20 is also a feasible solution.

第一轉換步驟S2:將各解決路徑20轉化成對應之一第一適應目標30。進一步說明,於本發明實施例中,需要將各個解決路徑20轉換成能夠配合不同應用會用到之不同計算方式,所使用之適應函數,因此,各第一適應目標30就等同於適應函數。First conversion step S2: Convert each solution path 20 into a corresponding one of the first adaptation targets 30. Further, in the embodiment of the present invention, each solution path 20 needs to be converted into an adaptation function that can be used in different calculation manners used by different applications. Therefore, each first adaptation target 30 is equivalent to an adaptation function.

第一搜尋步驟S3:將所述之第一適應目標30與追尋目標10進行比對,其中,當各個第一適應目標30中,有其中一個第一適應目標30符合追尋目標10,則是為滿足條件,而符合之第一適應目標30便視為最佳解。a first search step S3: comparing the first adaptation target 30 with the pursuit target 10, wherein, among the respective first adaptation targets 30, one of the first adaptation targets 30 meets the pursuit target 10, then Satisfying the condition, and meeting the first adaptation goal 30 is considered the best solution.

然而,當任何一個第一適應目標30,皆無法滿足追尋目標10,即產生不可行解時,便將所述之第一適應目標30進行一基因運算40,基因運算40係將各第一適應目標30進行選擇複製41、交配42及突變43運算,以產生複數第二適應目標50。其中,將各個第一適應目標30進行基因運算40之選擇複製41,目的係將較為符合追尋目標10之各第一適應目標30保留,並排除完全不符合追尋目標10之各第一適應目標30排除,藉以作初步之篩選;將較為符合追尋目標10之各第一適應目標30進行基因運算40之交配42,係將較為符合追尋目標10之各第一適應目標30以兩個為一組,進行兩兩交配42產生新的第一適應目標30,而是否進行交配42是用交配機率來決定,而交配42後的位置也是隨機決定,藉以保持各第一適應目標30之多樣性;將交配42產生之各第一適應目標30進行基因運算40之突變43,以隨機方式決定各第一適應目標30是否突變43,而經過突變43後便產生複數個第二適應目標50。However, when any of the first adaptation targets 30 fails to satisfy the pursuit target 10, that is, when the infeasible solution is generated, the first adaptation target 30 is subjected to a genetic operation 40, and the genetic operation 40 is adapted to each first. The target 30 performs a selection copy 41, a mating 42 and a mutation 43 operation to generate a plurality of second adaptation targets 50. Wherein, each of the first adaptation targets 30 performs a selection 41 of the genetic operations 40, the purpose of which is to retain the first adaptation targets 30 that are more consistent with the pursuit target 10, and exclude the first adaptation targets 30 that do not completely meet the pursuit target 10 Excluded, for preliminary screening; the first adaptation target 30 that is more in line with the pursuit target 10 is subjected to the mating 42 of the genetic operation 40, and the first adaptation target 30 that is more in line with the pursuit target 10 is grouped by two. Performing a pairwise mating 42 produces a new first adaptation target 30, and whether mating 42 is determined by the mating probability, and the position after mating 42 is also randomly determined to maintain the diversity of each first adaptation target 30; Each of the first adaptation targets 30 generated 42 performs a mutation 43 of the genetic operation 40 to determine whether each of the first adaptation targets 30 is a mutation 43 in a random manner, and a plurality of second adaptation targets 50 are generated after the mutation 43.

第二搜尋步驟S4:將各個第二適應目標50進行一單點搜尋運算60,以產生複數第一評估路徑61,其中,單點搜尋運算60係將各第二適應目標50與追尋目標10逐一進行比對,以產生符合追尋目標10之各第一評估路徑61,於本發明實施例中,單點搜尋運算60係模擬退火法(Simulated Annealing),單點搜尋運算60是一種近似解法,用來於固定時間內尋求在一個大搜尋範圍中,將各第二適應目標50與追尋目標10逐一進行比對,進而具有跳離區域最小值的能力,以快速找到最佳之解。The second searching step S4: performing a single-point search operation 60 on each of the second adaptive targets 50 to generate a plurality of first evaluation paths 61, wherein the single-point search operation 60 separates each of the second adaptive targets 50 and the pursuit targets 10 one by one. The first evaluation path 61 is generated to meet the pursuit target 10. In the embodiment of the present invention, the single point search operation 60 is a simulated annealing method, and the single point search operation 60 is an approximate solution. In a fixed time range, it is sought to compare each of the second adaptive targets 50 with the pursuit target 10 one by one in a large search range, thereby having the ability to jump off the regional minimum to quickly find the best solution.

第三搜尋步驟S5:將各第二適應目標50進行一比較運算70,以產生複數第二評估路徑71,而於比較運算70計算之過程中,比較運算70會將各第二適應目標50儲存至一資訊庫72中,將資訊庫72中所儲存之各第二適應目標50轉換成一比較適應目標73,當持續計算之過程中,比較運算70會不斷再次接收到新的各第二適應目標50,比較運算70會將新的各第二適應目標50與各比較適應目標73比對,以產生各第二評估路徑71,其中,於本發明實施例中,資訊庫72會儲存10筆比較適應目標73。The third searching step S5: performing a comparison operation 70 on each of the second adaptation targets 50 to generate a plurality of second evaluation paths 71, and in the calculation of the comparison operation 70, the comparison operation 70 stores the second adaptation targets 50. In the information library 72, each of the second adaptive targets 50 stored in the information base 72 is converted into a comparative adaptive target 73. During the continuous calculation, the comparison operation 70 continuously receives the new second adaptive targets again. 50. The comparison operation 70 compares each new second adaptation target 50 with each comparison adaptation target 73 to generate each second evaluation path 71. In the embodiment of the present invention, the information base 72 stores 10 comparisons. Adapt to goal 73.

進一步說明:當第一次將各第二適應目標50進行比較運算70時,各第二適應目標50便會視為符合追尋目標10,而轉換為各比較適應目標73;當持續第二次、第三次以上之演算,而經由前述第一搜尋步驟S3所產生之各第二適應目標50再次進入比較運算70時,便會將新的各第二適應目標50與資訊庫72中之各比較適應目標73比較,找出更優符合追尋目標10之第二適應目標50,再將更適合之第二適應目標50轉換成比較適應目標73,而原先之比較適應目標73便會被取代掉。於本發明實施例中,比較運算70係禁忌搜索演算法(Tabu Search),比較運算70是一種輔助啟發法則,利用記錄先前之搜尋結果以避免陷入局部最佳解,藉此,避免迂迴搜索,保證多樣化的有效探索,以最終實現全局優化。Further, when the second adaptation target 50 is compared for the first time, the second adaptation target 50 is regarded as conforming to the pursuit target 10, and is converted into each comparison adaptation target 73; The third or more calculations, and when the second adaptation targets 50 generated by the first search step S3 are again entered into the comparison operation 70, the new second adaptation targets 50 are compared with each of the information bases 72. To adapt to the target 73 comparison, find the second adaptation target 50 that better matches the pursuit target 10, and then convert the more suitable second adaptation target 50 into the comparative adaptation target 73, and the original comparative adaptation target 73 will be replaced. In the embodiment of the present invention, the comparison operation 70 is a tabu search algorithm (Tabu Search), and the comparison operation 70 is an auxiliary heuristic rule, which uses the previous search results to avoid falling into a local optimal solution, thereby avoiding the roundabout search. Ensure effective exploration of diversity to ultimately achieve global optimization.

再者,比較運算70能夠將優良之第二評估路徑71儲存於資訊庫72,以利下次運算時,以優良之第二評估路徑71進行演算,便能夠有要縮減運算時間,提升演算效率與演算結果。Furthermore, the comparison operation 70 can store the excellent second evaluation path 71 in the information base 72, so as to facilitate the calculation of the second evaluation path 71 with the second evaluation path, so that the calculation time can be reduced and the calculation efficiency can be improved. And calculation results.

於本發明實施例中,第二搜尋步驟S4與第三搜尋步驟S5係同時進行,藉由單點搜尋運算60將各第二適應目標50與追尋目標10逐一進行比對,同時以比較運算70避免陷入局部最佳解,因此,能夠有效縮短運算時間,且快速收斂,達到快速運算之效果。In the embodiment of the present invention, the second searching step S4 and the third searching step S5 are performed simultaneously, and each of the second adaptive targets 50 and the pursuit target 10 are compared one by one by a single-point search operation 60, and the comparison operation 70 is performed. Avoid falling into the local optimal solution, so it can effectively shorten the calculation time and quickly converge to achieve the effect of fast calculation.

第二轉換步驟S6:將各第一評估路徑61與各第二評估路徑71轉化成一混合適應目標80。進一步說明,將由單點搜尋運算60計算得到符合追尋目標10之各第一評估路徑61,與經由比較運算70計算得到符合追尋目標10之各第二評估路徑71,兩者綜合找出最符合追尋目標10之路徑,再將最符合之路徑轉化成混合適應目標80。The second conversion step S6: converts each of the first evaluation paths 61 and each of the second evaluation paths 71 into a hybrid adaptive target 80. Further, the first evaluation path 61 corresponding to the pursuit target 10 is calculated by the single-point search operation 60, and the second evaluation paths 71 corresponding to the pursuit target 10 are calculated by the comparison operation 70, and the two are combined to find the most suitable pursuit. The path of goal 10, and then convert the most consistent path into mixed adaptation target 80.

得解步驟S7:將混合適應目標80與追尋目標10比對,當混合適應目標80符合追尋目標10,則將混合適應目標80視為最佳化解。Step S7 is obtained: the hybrid adaptation target 80 is compared with the pursuit target 10, and when the hybrid adaptation target 80 conforms to the pursuit target 10, the hybrid adaptation target 80 is regarded as an optimal solution.

舉例說明:機械工廠製造生產之過程中,發生機台故障,變會產生變異製造排程,此時,產線排程之追尋目標10,則為最小化原始製造排程與變異製造排程之開始加工時間與完成加工時間之差異。For example: during the manufacturing process of a mechanical factory, a machine failure occurs, and a variable manufacturing schedule is generated. At this time, the pursuit of the production line schedule 10 is to minimize the original manufacturing schedule and the variation manufacturing schedule. The difference between the start of processing time and the completion of processing time.

首先進入隨機步驟S1,針對追尋目標10產生隨機產生能夠解決追尋目標10之各解決路徑20,而各解決路徑20也就是如何調配機台之加工時間。接著,由第一轉換步驟S2,針對工廠之排程系統,將各解決路徑20轉化成對應之第一適應目標30,以供工廠之排程系統進行運算。First, the random step S1 is entered, and the solution target 10 is randomly generated to solve the solution paths 20 of the pursuit target 10, and each solution path 20 is how to allocate the processing time of the machine. Next, from the first conversion step S2, each of the solution paths 20 is converted into a corresponding first adaptation target 30 for the factory scheduling system for the factory scheduling system to perform operations.

再來,由第一搜尋步驟S3將轉換後之各第一適應目標30與追尋目標10比對,於各第一適應目標30中,找出是否有符合能夠最小化原始製造排程與變異製造排程之開始加工時間與完成加工時間之差異的追尋目標10,若有滿足,則將滿足之第一適應目標30作為變異製造排程之規劃,以解決機台故障之問題;若無法滿足便進行基因運算40,以產生不同之各第二適應目標50,以尋求另外滿足追尋目標10之最佳解。Then, the converted first adaptive target 30 is compared with the pursuit target 10 by the first searching step S3. In each of the first adaptive targets 30, it is found whether there is a compliance to minimize the original manufacturing schedule and the variant manufacturing. The pursuit target 10 of the difference between the processing time and the completion of the processing time, if satisfied, the first adaptation target 30 is satisfied as the planning of the variation manufacturing schedule to solve the problem of the machine failure; if it is not satisfied A genetic operation 40 is performed to generate different second adaptation targets 50 to seek to otherwise satisfy the optimal solution for the pursuit target 10.

接著,各第二適應目標50同時進行第二搜尋步驟S4與第三搜尋步驟S5,藉由單點搜尋運算60將各第二適應目標50與追尋目標10逐一進行比對,同時以比較運算70避免陷入局部最佳解,找出能夠滿足追尋目標10之製造排程。Then, each of the second adaptation targets 50 simultaneously performs the second search step S4 and the third search step S5, and compares each of the second adaptation targets 50 with the pursuit target 10 one by one by the single-point search operation 60, and simultaneously performs the comparison operation 70. Avoid falling into local best solutions and find manufacturing schedules that meet the target 10.

然後,由第二轉換步驟S6將各第一評估路徑61與各第二評估路徑71綜合判斷轉化成混合適應目標80,經由得解步驟S7找出最符合追尋目標10之製造排程,使變異製造排程之開始加工時間與結束加工時間,能夠與原始製造排程間之變異降到最低。Then, the first evaluation path 61 and each of the second evaluation paths 71 are comprehensively judged to be converted into the hybrid adaptation target 80 by the second conversion step S6, and the manufacturing schedule that best matches the pursuit target 10 is found through the solution step S7, so that the variation is made. The start-up and end-of-process time of the manufacturing schedule minimizes variation from the original manufacturing schedule.

藉此,本發明根據追尋目標10經由基因運算40搭配單點搜尋運算60及比較運算70,快速計算出最佳化解,並且能夠保留優良之個體,以及維持群體之多樣性,藉以提升運算速度。Thereby, the present invention quickly calculates the optimal solution based on the pursuit target 10 via the genetic operation 40 with the single-point search operation 60 and the comparison operation 70, and can preserve the excellent individuals and maintain the diversity of the group, thereby improving the operation speed.

以上所舉實施例僅用以說明本發明而已,非用以限制本發明之範圍。舉凡不違本發明精神所從事的種種修改或變化,俱屬本發明意欲保護之範疇。The above embodiments are merely illustrative of the invention and are not intended to limit the scope of the invention. Any modifications or variations that are made without departing from the spirit of the invention are intended to be protected.

10‧‧‧追尋目標10‧‧‧ pursue the target

71‧‧‧第二評估路徑 71‧‧‧Second assessment path

20‧‧‧解決路徑 20‧‧‧Resolve the path

72‧‧‧資訊庫 72‧‧ Information Library

30‧‧‧第一適應目標 30‧‧‧First adaptation target

73‧‧‧比較適應目標 73‧‧‧Compared to the target

40‧‧‧基因運算 40‧‧‧Genetic calculation

80‧‧‧混合適應目標 80‧‧‧ mixed adaptation goals

41‧‧‧選擇複製 41‧‧‧Select copy

S1‧‧‧隨機步驟 S1‧‧‧ random steps

42‧‧‧交配 42‧‧‧Matching

S2‧‧‧第一轉換步驟 S2‧‧‧ first conversion step

43‧‧‧突變 43‧‧‧ Mutation

S3‧‧‧第一搜尋步驟 S3‧‧‧First search step

50‧‧‧第二適應目標 50‧‧‧ second adaptation target

S4‧‧‧第二搜尋步驟 S4‧‧‧Second search step

60‧‧‧單點搜尋運算 60‧‧‧Single point search operation

S5‧‧‧第三搜尋步驟 S5‧‧‧ third search step

61‧‧‧第一評估路徑 61‧‧‧First assessment path

S6‧‧‧第二轉換步驟 S6‧‧‧Second conversion step

70‧‧‧比較運算 70‧‧‧Comparative operation

S7‧‧‧得解步驟 S7‧‧‧Solution steps

圖1係本發明之步驟流程示意圖。 圖2係本發明流程方塊示意圖。 圖3係本發明之比較運算流程示意圖。1 is a schematic flow chart of the steps of the present invention. 2 is a schematic block diagram of the flow of the present invention. 3 is a schematic diagram of a comparison operation flow of the present invention.

Claims (7)

一種混合式基因運算方法,其包含下列步驟: 接收一追尋目標,針對該追尋目標隨機產生複數解決路徑; 將各該解決路徑轉化成對應之一第一適應目標; 將所述之第一適應目標與該追尋目標比對,產生不可行解時,將所述之第一適應目標進行一基因運算,以產生複數第二適應目標; 將所述之第二適應目標進行一單點搜尋運算,以產生複數第一評估路徑; 將所述之第二適應目標進行一比較運算,以產生複數第二評估路徑; 將各該第一評估路徑與各該第二評估路徑轉化成一混合適應目標;以及 將該混合適應目標與該追尋目標比對,當該混合適應目標符合該追尋目標,則將該混合適應目標視為最佳化解。A hybrid genetic operation method, comprising the steps of: receiving a tracking target, randomly generating a complex solution path for the pursuit target; converting each of the solution paths into a corresponding one of the first adaptation targets; Comparing with the pursuit target, generating an infeasible solution, performing a genetic operation on the first adaptation target to generate a plurality of second adaptation targets; performing a single point search operation on the second adaptation target, Generating a plurality of first evaluation paths; performing a comparison operation on the second adaptation target to generate a plurality of second evaluation paths; converting each of the first evaluation paths and each of the second evaluation paths into a hybrid adaptation target; The hybrid adaptation target is compared with the pursuit target, and when the hybrid adaptation target meets the pursuit target, the hybrid adaptation target is regarded as an optimal solution. 如請求項1所述之混合式基因運算方法,其中,該單點搜尋運算將各該第二適應目標與該追尋目標逐一進行比對,以產生符合該追尋目標之各該第一評估路徑。The hybrid genetic algorithm of claim 1, wherein the single-point search operation compares each of the second adaptive targets with the search target one by one to generate each of the first evaluation paths that meet the search target. 如請求項2所述之混合式基因運算方法,其中,該單點搜尋運算係模擬退火法。The hybrid gene operation method according to claim 2, wherein the single point search operation is a simulated annealing method. 如請求項1所述之混合式基因運算方法,其中,該比較運算將所述之第二適應目標儲存至一資訊庫中。The hybrid genetic algorithm of claim 1, wherein the comparing operation stores the second adaptation target into a repository. 如請求項4所述之混合式基因運算方法,其中,該比較運算將該資訊庫中所儲存之各該第二適應目標轉換成一比較適應目標,當該比較運算再次接收到新的各該第二適應目標時,該比較運算將新的各該第二適應目標與各該比較適應目標比對,以產生各該第二評估路徑。The hybrid gene operation method of claim 4, wherein the comparison operation converts each of the second adaptation targets stored in the information base into a comparison adaptation target, and when the comparison operation receives the new each When the target is adapted, the comparison operation compares each of the new second adaptation targets with each of the comparison adaptation targets to generate each of the second assessment paths. 如請求項5所述之混合式基因運算方法,其中,該比較運算係禁忌搜索演算法。The hybrid gene operation method according to claim 5, wherein the comparison operation is a tabu search algorithm. 如請求項1所述之混合式基因運算方法,其中,該基因運算將各該第一適應目標進行選擇複製、交配及突變運算,以產生所述之第二適應目標。The hybrid genetic algorithm according to claim 1, wherein the genetic operation performs selective copying, mating, and mutation operations on each of the first adaptive targets to generate the second adaptive target.
TW107101727A 2018-01-17 2018-01-17 Mixed genetic algorithm TWI652629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107101727A TWI652629B (en) 2018-01-17 2018-01-17 Mixed genetic algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107101727A TWI652629B (en) 2018-01-17 2018-01-17 Mixed genetic algorithm

Publications (2)

Publication Number Publication Date
TWI652629B true TWI652629B (en) 2019-03-01
TW201933195A TW201933195A (en) 2019-08-16

Family

ID=66590570

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107101727A TWI652629B (en) 2018-01-17 2018-01-17 Mixed genetic algorithm

Country Status (1)

Country Link
TW (1) TWI652629B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200947239A (en) 2008-05-06 2009-11-16 Chunghwa Telecom Co Ltd Oracle database system efficiency adjusting method based on genetic algorithm
US20100080298A1 (en) 2008-09-30 2010-04-01 Hsueh-Ming Hang Refined Weighting Function and Momentum-Directed Genetic search pattern algorithm
US20100103937A1 (en) 2001-12-10 2010-04-29 O'neil Joseph Thomas System for utilizing genetic algorithm to provide constraint-based routing of packets in a communication network
TW201322005A (en) 2011-11-16 2013-06-01 Univ Ming Chi Technology Navigation positioning method and system based on genetic algorithm
TW201421275A (en) 2012-11-23 2014-06-01 Nat Taichung University Science & Technology Method of applying genetic algorithm for automatic clustering and screening independent variable to synchronously carry out regression model parameter calibration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100103937A1 (en) 2001-12-10 2010-04-29 O'neil Joseph Thomas System for utilizing genetic algorithm to provide constraint-based routing of packets in a communication network
TW200947239A (en) 2008-05-06 2009-11-16 Chunghwa Telecom Co Ltd Oracle database system efficiency adjusting method based on genetic algorithm
US20100080298A1 (en) 2008-09-30 2010-04-01 Hsueh-Ming Hang Refined Weighting Function and Momentum-Directed Genetic search pattern algorithm
TW201322005A (en) 2011-11-16 2013-06-01 Univ Ming Chi Technology Navigation positioning method and system based on genetic algorithm
TW201421275A (en) 2012-11-23 2014-06-01 Nat Taichung University Science & Technology Method of applying genetic algorithm for automatic clustering and screening independent variable to synchronously carry out regression model parameter calibration

Also Published As

Publication number Publication date
TW201933195A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110632907B (en) Scheduling optimization method and system for distributed assembly type replacement flow shop
Balogun et al. Software defect prediction using ensemble learning: an ANP based evaluation method
JP5755822B1 (en) Similarity calculation system, similarity calculation method, and program
CN113850385A (en) Coarse and fine granularity combined neural network pruning method
Achimugu et al. A clustering based technique for large scale prioritization during requirements elicitation
TWI652629B (en) Mixed genetic algorithm
JP7193707B2 (en) Optimization device, control method for optimization device, sampling device, and control method for sampling device
JP2020106957A (en) Optimization calculation method, optimization calculation apparatus and optimization calculation program
Chattopadhyay et al. Feature selection using differential evolution with binary mutation scheme
JP2007310860A (en) Learning device and method
JP2002183206A (en) Method and device for retrieving similar object
Ishibuchi et al. Local search procedures in a multi-objective genetic local search algorithm for scheduling problems
JP2020194442A (en) Optimization device and optimization device
CN110163373B (en) Mixed gene operation method
JP2006040220A (en) Optimal value searching method and system
Mou et al. An Improved Genetic Algorithm for Single‐Machine Inverse Scheduling Problem
Lunardi et al. An imperialist competitive algorithm for a real-world flexible job shop scheduling problem
JP3847317B2 (en) Optimal solution search device
Ueno et al. A niching genetic algorithm including an inbreeding mechanism for multimodal problems
Rahmanidoust et al. A bi-objective simulation-optimization approach for solving a no-wait two stages flexible flow shop scheduling problem with rework ability
CN109508343A (en) A kind of cuckoo searching method of simplex method and its application
Chamnanlor et al. Bi-objective optimization for reentrant shop scheduling problem
Xu et al. Experimental comparison of different differential evolution strategies in MOEA/D
CN113705858B (en) Shortest path planning method, system, equipment and storage medium for multiple target areas
Mateeva et al. Time-Consuming Fitness Functions Approximation for Genetic Algorithms Performance Improvement