CN110610239A - Method for solving balanced transportation problem based on dynamic genetic algorithm - Google Patents
Method for solving balanced transportation problem based on dynamic genetic algorithm Download PDFInfo
- Publication number
- CN110610239A CN110610239A CN201910743305.4A CN201910743305A CN110610239A CN 110610239 A CN110610239 A CN 110610239A CN 201910743305 A CN201910743305 A CN 201910743305A CN 110610239 A CN110610239 A CN 110610239A
- Authority
- CN
- China
- Prior art keywords
- individuals
- population
- iteration times
- equal
- genetic algorithm
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/12—Computing arrangements based on biological models using genetic models
- G06N3/126—Evolutionary algorithms, e.g. genetic algorithms or genetic programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Economics (AREA)
- Theoretical Computer Science (AREA)
- Biophysics (AREA)
- Human Resources & Organizations (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Bioinformatics & Computational Biology (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Evolutionary Biology (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Physiology (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Genetics & Genomics (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Game Theory and Decision Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A solution to the problem of balanced transportation based on a dynamic genetic algorithm is provided, firstly, parameters are set; 2) setting m producing areas and n selling areas through a map obtained by ArcMap, and calculating a cost matrix through an intelligent hybrid algorithm; initializing a population; judging whether the iteration times is greater than the iteration times; if the iteration times are not more than the set value, entering a loop, otherwise, ending the program; judging whether the iteration times of the cross variation is greater than the iteration times of the cross variation, and if the iteration times is greater than the iteration times, continuing to execute the operation; if the iteration times are less than the iteration times, the loop is exited; crossover, variation and selection, and accepting the results in a Monte Carlo manner. The invention provides a transportation problem solving method based on a dynamic genetic algorithm, which improves the convergence and the real-time performance, and combines ArcMap based on matrix decomposition.
Description
Technical Field
The invention relates to the fields of geographic information data processing, computer application, geography, graph theory and network analysis, in particular to a transportation problem solving method based on a dynamic genetic algorithm.
Technical Field
The transfer of an object from one location to another creates a transport. The research on the transportation problem is generally used for solving the practical problems of how to transport materials, how to optimize expenses, how to make plans, how to arrange personnel and the like in the transportation problem. Particularly, in recent years, logistics is flourishing and developing, the logistics problem provides theoretical basis and practical significance for solving the practical problem, and higher requirements are provided for solving the logistics problem. How to scientifically and effectively organize transportation, save cost, improve transportation quality, realize benefit maximization and the like, and is very important for national and economic development of China.
For transportation per se, the most concerned problem in general is how to save transportation cost, and the transportation problem in reality is not only the shortest path but also simple, and the size of the cost is usually related to a series of operations time, excellent roads, good and bad weather, labor cost rise and fall, climate change difference and the like, which affect the unit cost more or less. How to abstract various complex real scenes into a mathematical model and solve the optimal solution of the model by using a proper method is crucial to the transportation problem.
The transportation problem increases along with the increase of the dimension, and the time complexity and the space complexity of the traditional algorithm increase exponentially, which brings great difficulty to the solution of the problem. Therefore, for the problem of large-scale transportation, intelligent algorithms such as simulated annealing, ant colony algorithm, tabu search, neural network and the like are generally adopted for solving.
Disclosure of Invention
In order to overcome the defects of poor convergence and poor real-time performance of the existing transportation problem solving method, the invention researches the transportation problem and solves the transportation cost problem of dynamic change by using an improved genetic algorithm. And solving the cost matrix acquired from the ArcMap platform by adopting a genetic algorithm. The variation in the genetic algorithm adopts dynamic variation rate, and the convergence of the algorithm can be accelerated. The chromosome generated by the variation adopts a Monte Carlo receiving mode, so that the algorithm is prevented from falling into local optimization. Through a plurality of iterations, the solution of the transportation problem is solved.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a balanced transportation problem solving method based on a dynamic genetic algorithm comprises the following steps:
1) setting parameters: the population scale NP, the iteration times G, the number m of producing places, the number n of selling places and a fitness function adjusting coefficient omega;
2) setting m producing areas and n selling areas through a map obtained by ArcMap, and calculating a cost matrix C through an intelligent hybrid algorithm;
3) initializing the population, and iterating the following process to generate an initial population X ═ X1,X2,...,XNPTherein of
4) Setting G as 1, where G ∈ {1, 2.
5) Randomly pairing individuals in the population pairwise to form NP/2 male parent pairs; performing steps 6) to 8) for each pair of male parents;
6) the cross operation, the process is as follows:
6.1) assumptionsAndis two randomly selected parent individuals, and two temporary matrixes D ═ D are establishedij)m×nAnd R ═ Rij)m×nWherein mod is the remainder;
6.2) decomposing the generated R matrix intoAndwherein
R=R1+R2 (3)
6.3) generating Cross individualsAnd
7) for crossing individualsAndperforming mutation operations respectively, wherein the process is as follows:
7.1) randomly selecting p rows and q columns of crossing individuals, and establishing a submatrix Y ═ Yij)m×nWherein p is more than or equal to 2 and less than or equal to m, and q is more than or equal to 2 and less than or equal to n;
7.2) generate a new submatrix Y ═ Y'ij)p×qThe matrix satisfies the following formula:
7.3) converting the submatrix Y '═ Y'ij)p×qReplacing elements at corresponding positions of the crossed individual construction submatrix to generate offspring individualsAnd
8) selecting operation, the process is as follows:
8.1) designing a fitness function:
wherein ω is an adjustment coefficient;
8.2) calculating parent individuals X respectively1、X2And progeny individualsAndfitness f (X)1)、f(X2)、
8.3) ifBy usingSubstitution of X1Entering a population; otherwise, replacing according to the probability, wherein the replacement probability is as follows:
8.4) ifBy usingSubstitution of X2Entering a population; otherwise, replacing according to the probability, wherein the replacement probability is as follows:
9) iterating the steps 6) to 8) until all the male parent pairs are executed;
10) g is g + 1; if G is less than or equal to G, turning to the step 5); otherwise, ending the program and outputting the optimal solution.
The invention has the following beneficial effects: on one hand, a solution different from the traditional linear programming is adopted, and a genetic algorithm is adopted to solve the transportation problem; on the other hand, the convergence of the algorithm is improved by adopting dynamic variation and a Monte Carlo receiving strategy.
Drawings
FIG. 1 is a flow chart of a transportation problem based on a dynamic genetic algorithm.
FIG. 2 is a cross-process flow diagram of a transportation problem solution based on dynamic genetic algorithm.
FIG. 3 is a flow chart of a variant process of a transportation problem solution based on a dynamic genetic algorithm.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Referring to fig. 1,2 and 3, a transportation problem solving method based on a dynamic genetic algorithm includes the following steps:
1) setting parameters: the population scale NP, the iteration times G, the number m of producing places, the number n of selling places and a fitness function adjusting coefficient omega;
2) setting m producing areas and n selling areas through a map obtained by ArcMap, and calculating a cost matrix C through an intelligent hybrid algorithm;
3) initializing the population, and iterating the following process to generate an initial population X ═ X1,X2,...,XNPTherein of
4) Setting G as 1, where G ∈ {1, 2.
5) Randomly pairing individuals in the population pairwise to form NP/2 male parent pairs; performing steps 6) to 8) for each pair of male parents;
6) the cross operation, the process is as follows:
6.1) assumptionsAndis two randomly selected parent individuals, and two temporary matrixes D ═ D are establishedij)m×nAnd R ═ Rij)m×nWhere mod is the remainder
6.2) decomposing the generated R matrix intoAndwherein
R=R1+R2 (3)
6.3) generating Cross individualsAnd
7) for crossing individualsAndperforming mutation operations respectively, wherein the process is as follows:
7.1) randomly selecting p rows and q columns of crossing individuals, and establishing a submatrix Y ═ Yij)m×nWherein p is more than or equal to 2 and less than or equal to m, and q is more than or equal to 2 and less than or equal to n;
7.2) generate a new submatrix Y ═ Y'ij)p×qThe matrix satisfies the following formula:
7.3) converting the submatrix Y '═ Y'ij)p×qReplacing elements at corresponding positions of the crossed individual construction submatrix to generate offspring individualsAnd
8) selecting operation, the process is as follows:
8.1) designing a fitness function:
wherein ω is an adjustment coefficient;
8.2) calculating parent individuals X respectively1、X2And progeny individualsAndfitness f (X)1)、f(X2)、
8.3) ifBy usingSubstitution of X1Entering a population; otherwise, replacing according to the probability, wherein the replacement probability is as follows:
8.4) ifBy usingSubstitution of X2Entering a population; otherwise, replacing according to the probability, wherein the replacement probability is as follows:
9) iterating the steps 6) to 8) until all the male parent pairs are executed;
10) g is g + 1; if G is less than or equal to G, turning to the step 5); otherwise, ending the program and outputting the optimal solution.
Taking a certain area of Zhejiang as an example, a transportation problem solving method based on a dynamic genetic algorithm comprises the following steps:
1) setting parameters: the population size NP is 20, the iteration number G is 5000, the production place number m is 5, the sales place number n is 8, and the fitness function adjusting coefficient omega is 144;
2) setting 5 producing areas and 8 selling areas through a map obtained by ArcMap, and calculating a cost matrix C through an intelligent hybrid algorithm;
3) initializing the population, and iterating the following process to generate an initial population X ═ X1,X2,...,X20Therein of
4) Let g be 1, where g ∈ {1, 2.., 5000 };
5) randomly pairing individuals in the population pairwise to form 10 male parent pairs; performing steps 6) to 8) for each pair of male parents;
6) the cross operation, the process is as follows:
6.1) assumptionsAndis two randomly selected parent individuals, and two temporary matrixes D ═ D are establishedij)5×8And R ═ Rij)5×8Where mod is the remainder
6.2) decomposing the generated R matrix intoAndwherein
R=R1+R2 (3)
6.3) generating Cross individualsAnd
7) for crossing individualsAndperforming mutation operations respectively, wherein the process is as follows:
7.1) randomly selecting p rows and q columns of crossing individuals, and establishing a submatrix Y ═ Yij)p×qWherein p is more than or equal to 2 and less than or equal to 5, and q is more than or equal to 2 and less than or equal to 8;
7.2) generate a new submatrix Y ═ Y'ij)p×qThe matrix satisfies the following formula:
7.3) converting the submatrix Y '═ Y'ij)p×qReplacing elements at corresponding positions of the crossed individual construction submatrix to generate offspring individualsAnd
8) selecting operation, the process is as follows:
8.1) designing a fitness function:
wherein ω is 144 an adjustment factor;
8.2) calculating parent individuals X respectively1、X2And progeny individualsAndfitness f (X)1)、f(X2)、
8.3) ifBy usingSubstitution of X1Entering a population; otherwise, replacing according to the probability, wherein the replacement probability is as follows:
8.4) ifBy usingSubstitution of X2Entering a population; otherwise, replacing according to the probability, wherein the replacement probability is as follows:
9) iterating the steps 6) to 8) until all the male parent pairs are executed;
10) g is g + 1; if g is less than or equal to 5000, turning to the step 5); otherwise, ending the program and outputting the optimal solution.
While the foregoing has described the preferred embodiments of the present invention, it will be apparent that the invention is not limited to the embodiments described, but can be practiced with modification without departing from the essential spirit of the invention and without departing from the spirit of the invention.
Claims (1)
1. A balanced transportation problem solving method based on a dynamic genetic algorithm is characterized by comprising the following steps: the transportation problem solving method based on the dynamic genetic algorithm comprises the following steps:
1) setting parameters: the population scale NP, the iteration times G, the number m of producing places, the number n of selling places and a fitness function adjusting coefficient omega;
2) setting m producing areas and n selling areas through a map obtained by ArcMap, and calculating a cost matrix C through an intelligent hybrid algorithm;
3) initializing the population, and iterating the following process to generate an initial population X ═ X1,X2,...,XNPTherein of
4) Setting G as 1, where G ∈ {1, 2.
5) Randomly pairing individuals in the population pairwise to form NP/2 male parent pairs; performing steps 6) to 8) for each pair of male parents;
6) the cross operation, the process is as follows:
6.1) assumptionsAndis two randomly selected parent individuals, and two temporary matrixes D ═ D are establishedij)m×nAnd R ═ Rij)m×nWhere mod is the remainder;
6.2) decomposing the generated R matrix intoAndwherein
R=R1+R2 (3)
6.3) generating Cross individualsAnd
7) for crossing individualsAndperforming mutation operations respectively, wherein the process is as follows:
7.1) randomly selecting p rows and q columns of crossing individuals, and establishing a submatrix Y ═ Yij)m×nWherein p is more than or equal to 2 and less than or equal to m, and q is more than or equal to 2 and less than or equal to n;
7.2) generate a new submatrix Y ═ Y'ij)p×qThe matrix satisfies the following formula:
7.3) converting the submatrix Y '═ Y'ij)p×qReplacing elements at corresponding positions of the crossed individual construction submatrix to generate offspring individualsAnd
8) selecting operation, the process is as follows:
8.1) designing a fitness function:
wherein ω is an adjustment coefficient;
8.2) calculating parent individuals X respectively1、X2And progeny individualsAndfitness f (X)1)、
8.3) ifBy usingSubstitution of X1Entering a population; otherwise, replace by probability, replace probabilityThe following were used:
8.4) ifBy usingSubstitution of X2Entering a population; otherwise, replacing according to the probability, wherein the replacement probability is as follows:
9) iterating the steps 6) to 8) until all the male parent pairs are executed;
10) g is g + 1; if G is less than or equal to G, turning to the step 5); otherwise, ending the program and outputting the optimal solution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910743305.4A CN110610239B (en) | 2019-08-13 | 2019-08-13 | Method for solving balanced transportation problem based on dynamic genetic algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910743305.4A CN110610239B (en) | 2019-08-13 | 2019-08-13 | Method for solving balanced transportation problem based on dynamic genetic algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110610239A true CN110610239A (en) | 2019-12-24 |
CN110610239B CN110610239B (en) | 2022-04-05 |
Family
ID=68890144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910743305.4A Active CN110610239B (en) | 2019-08-13 | 2019-08-13 | Method for solving balanced transportation problem based on dynamic genetic algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110610239B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112184099A (en) * | 2020-08-21 | 2021-01-05 | 安徽信息工程学院 | Method for optimizing transportation problem based on K-Means clustering and genetic algorithm |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11295472A (en) * | 1998-04-09 | 1999-10-29 | Hitachi Ltd | Method and device for calculating particle transportation, device for monitoring reactor core characteristic of reactor, and nuclear power station |
CN103400004A (en) * | 2013-07-22 | 2013-11-20 | 西安电子科技大学 | Medium rough surface electromagnetic scattering simulation method based on multi-zone model moment method |
CN104463328A (en) * | 2014-12-09 | 2015-03-25 | 东北农业大学 | Order crossover multi-filial-generation genetic algorithm for solving traveling salesman problem |
CN104680237A (en) * | 2015-03-10 | 2015-06-03 | 西南科技大学 | Three-dimensional encasement novel genetic algorithm model under multi-constrain condition |
CN109062230A (en) * | 2018-08-06 | 2018-12-21 | 江苏科技大学 | Underwater auxiliary oil recovery robot control system and dynamic localization method |
CN109255512A (en) * | 2018-07-12 | 2019-01-22 | 浙江工业大学 | A kind of Course Arrangement in University method based on Monte Carlo genetic algorithm |
-
2019
- 2019-08-13 CN CN201910743305.4A patent/CN110610239B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11295472A (en) * | 1998-04-09 | 1999-10-29 | Hitachi Ltd | Method and device for calculating particle transportation, device for monitoring reactor core characteristic of reactor, and nuclear power station |
CN103400004A (en) * | 2013-07-22 | 2013-11-20 | 西安电子科技大学 | Medium rough surface electromagnetic scattering simulation method based on multi-zone model moment method |
CN104463328A (en) * | 2014-12-09 | 2015-03-25 | 东北农业大学 | Order crossover multi-filial-generation genetic algorithm for solving traveling salesman problem |
CN104680237A (en) * | 2015-03-10 | 2015-06-03 | 西南科技大学 | Three-dimensional encasement novel genetic algorithm model under multi-constrain condition |
CN109255512A (en) * | 2018-07-12 | 2019-01-22 | 浙江工业大学 | A kind of Course Arrangement in University method based on Monte Carlo genetic algorithm |
CN109062230A (en) * | 2018-08-06 | 2018-12-21 | 江苏科技大学 | Underwater auxiliary oil recovery robot control system and dynamic localization method |
Non-Patent Citations (2)
Title |
---|
KONSTANTINOS GKIOTSALITIS等: "Reliable bus dispatching times by coupling Monte Carlo evaluations with a Genetic Algorithm", 《2018 21ST INTERNATIONAL CONFERENCE ON INTELLIGENT TRANSPORTATION SYSTEMS (ITSC)》 * |
张贵军等: "基于蒙特卡洛遗传算法的排课问题研究", 《实验技术与管理》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112184099A (en) * | 2020-08-21 | 2021-01-05 | 安徽信息工程学院 | Method for optimizing transportation problem based on K-Means clustering and genetic algorithm |
Also Published As
Publication number | Publication date |
---|---|
CN110610239B (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Hajiaghaei-Keshteli | The allocation of customers to potential distribution centers in supply chain networks: GA and AIA approaches | |
Wang et al. | Evolutionary extreme learning machine ensembles with size control | |
Zarandi et al. | The large scale maximal covering location problem | |
US20160203419A1 (en) | Metaheuristic-guided trust-tech methods for global unconstrained optimization | |
CN103870647A (en) | Operation workshop scheduling modeling method based on genetic algorithm | |
Tayebi Araghi et al. | Incorporating learning effect and deterioration for solving a SDST flexible job-shop scheduling problem with a hybrid meta-heuristic approach | |
CN107784380A (en) | The optimization method and optimization system of a kind of inspection shortest path | |
Shukla et al. | An empirical evaluation of teaching–learning-based optimization, genetic algorithm and particle swarm optimization | |
Li et al. | Improved gene expression programming to solve the inverse problem for ordinary differential equations | |
CN104700160A (en) | Vehicle route optimization method | |
Assareh et al. | Forecasting energy demand in Iran using genetic algorithm (GA) and particle swarm optimization (PSO) methods | |
Solimanpur et al. | A new approach to the cell formation problem with alternative processing routes and operation sequence | |
JP2023519770A (en) | Automatic compression method and platform for pre-trained language models for multitasking | |
Wen-jing | Improved Adaptive Genetic Algorithm for Course Scheduling in Colleges and Universities. | |
CN110610239B (en) | Method for solving balanced transportation problem based on dynamic genetic algorithm | |
Ye et al. | A local genetic approach to multi-objective, facility layout problems with fixed aisles | |
Zhang et al. | A novel approach for parallel disassembly design based on a hybrid fuzzy-time model | |
CN115168654A (en) | Multi-attribute decision-based super-network important node identification method | |
Li et al. | [Retracted] Design of College Scheduling Algorithm Based on Improved Genetic Ant Colony Hybrid Optimization | |
Kant et al. | Sequential optimisation of reconfigurable machine cell feeders and production sequence during lean assembly | |
Deb* et al. | Solution of facility layout problems with pickup/drop-off locations using random search techniques | |
Du et al. | Evolution of cooperation on reinforcement-learning driven-adaptive networks | |
CN105069323B (en) | Microbial fermentation control optimization method based on Memetic algorithms | |
Guoqiang et al. | A genetic algorithm based on modularity density for detecting community structure in complex networks | |
Zhao et al. | A coevolution model of population distribution and road networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |