CN110689155B - Multi-constraint scheduling method of card collection reservation system considering congestion and emission - Google Patents
Multi-constraint scheduling method of card collection reservation system considering congestion and emission Download PDFInfo
- Publication number
- CN110689155B CN110689155B CN201910979382.XA CN201910979382A CN110689155B CN 110689155 B CN110689155 B CN 110689155B CN 201910979382 A CN201910979382 A CN 201910979382A CN 110689155 B CN110689155 B CN 110689155B
- Authority
- CN
- China
- Prior art keywords
- reservation
- card
- iter
- time window
- truck
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 35
- 230000035772 mutation Effects 0.000 claims abstract description 22
- 239000002096 quantum dot Substances 0.000 claims abstract description 7
- 230000008859 change Effects 0.000 claims description 16
- 230000003044 adaptive effect Effects 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000003912 environmental pollution Methods 0.000 claims description 7
- 230000007423 decrease Effects 0.000 claims description 5
- 230000007246 mechanism Effects 0.000 claims description 3
- 238000010606 normalization Methods 0.000 claims description 3
- 238000002474 experimental method Methods 0.000 description 21
- 230000002068 genetic effect Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 6
- 239000003344 environmental pollutant Substances 0.000 description 6
- 231100000719 pollutant Toxicity 0.000 description 6
- 101150026024 pkiB gene Proteins 0.000 description 5
- 238000011160 research Methods 0.000 description 4
- 238000004088 simulation Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 3
- 230000003203 everyday effect Effects 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- UGFAIRIUMAVXCW-UHFFFAOYSA-N Carbon monoxide Chemical compound [O+]#[C-] UGFAIRIUMAVXCW-UHFFFAOYSA-N 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 229910002091 carbon monoxide Inorganic materials 0.000 description 2
- 230000000052 comparative effect Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000012552 review Methods 0.000 description 2
- 101100163869 Arabidopsis thaliana AS1 gene Proteins 0.000 description 1
- 206010036590 Premature baby Diseases 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 210000000349 chromosome Anatomy 0.000 description 1
- 230000002354 daily effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000012530 fluid Substances 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 229930195733 hydrocarbon Natural products 0.000 description 1
- 150000002430 hydrocarbons Chemical class 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000010206 sensitivity analysis Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/02—Reservations, e.g. for tickets, services or events
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N10/00—Quantum computing, i.e. information processing based on quantum-mechanical phenomena
-
- 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/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
-
- 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/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0637—Strategic management or analysis, e.g. setting a goal or target of an organisation; Planning actions based on goals; Analysis or evaluation of effectiveness of goals
-
- 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- Life Sciences & Earth Sciences (AREA)
- Educational Administration (AREA)
- Biophysics (AREA)
- Health & Medical Sciences (AREA)
- Game Theory and Decision Science (AREA)
- Evolutionary Biology (AREA)
- Artificial Intelligence (AREA)
- Software Systems (AREA)
- Evolutionary Computation (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Condensed Matter Physics & Semiconductors (AREA)
- Mathematical Analysis (AREA)
- Physiology (AREA)
- Genetics & Genomics (AREA)
- Biomedical Technology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
Abstract
本发明公开了一种考虑拥堵和排放的集卡预约系统多约束调度方法,该方法包含以下步骤:S1、令迭代次数iter=0,初始化集卡的所有集卡预约方案Qiter;S2、对步骤S1的所有集卡预约方案Qiter进行实数编码;S3、解码步骤S2编码生成的所有集卡预约方案Qiter;S4、计算每种集卡预约方案的适应度值f;S5、当迭代次数iter等于预设的最大迭代次数itermax时,将最大适应度值f对应的集卡预约方案作为最佳预约方案输出。其优点为:该方法通过实数与量子比特编码相结合的编码方式,提高了算法初始化的速度;同时,该方法采用动态量子旋转门及变异概率根据进化代数自主调整的策略,能够提高对集卡预约方案求解的精确度,以更快的速度选出最佳预约方案。
The invention discloses a multi-constraint scheduling method for a collector reservation system considering congestion and emission. The method comprises the following steps: S1. Set the iteration number iter=0, and initialize all collector reservation schemes Q iter of the collector; S2. All collection card reservation schemes Q iter of step S1 carry out real number coding; S3, decode all collection card reservation schemes Q iter generated by step S2 encoding; S4, calculate the fitness value f of each kind of collection card reservation scheme; S5, when the number of iterations When iter is equal to the preset maximum number of iterations iter max , the set card reservation scheme corresponding to the maximum fitness value f is output as the best reservation scheme. Its advantages are: this method improves the initialization speed of the algorithm through the combination of real number and qubit encoding; at the same time, this method adopts the strategy of dynamic quantum revolving gate and mutation probability self-adjusting according to evolutionary algebra, which can improve the accuracy of set cards. The accuracy of the reservation plan solution, and the best reservation plan can be selected at a faster speed.
Description
技术领域technical field
本发明涉及集卡预约领域,具体涉及一种考虑拥堵和排放的集卡预约系统多约束调度方法。The invention relates to the field of truck reservation, in particular to a multi-constraint scheduling method for a truck reservation system considering congestion and emission.
背景技术Background technique
2018年上海港完成集装箱吞吐量4201万TEU(标准箱),相比以往增速为4.4%,集装箱吞吐量再创新高,上海港连续9年为全球最大的集装箱港口,集装箱作业量的增多为集装箱码头带来了机遇的同时也带来了更多的挑战。 2017年5月,上海港发生严重的港口拥堵现象。之后,集装箱码头拥挤的状况很快向国内其他港口蔓延,青岛港、宁波港等也面临拥堵和堆场不足局面。 2018年,美国的洛杉矶-长滩港经历了一段不寻常的拥堵时期,拥堵造成集卡无法按时提箱和返还空箱,造成了每天数千美元的滞留费和滞期费。In 2018, Shanghai Port completed a container throughput of 42.01 million TEU (TEU), a growth rate of 4.4% compared to the past, and the container throughput reached a new high. Shanghai Port has been the world's largest container port for 9 consecutive years, and the increase in container operations is Container terminals bring opportunities as well as more challenges. In May 2017, serious port congestion occurred in Shanghai Port. After that, the congestion of container terminals quickly spread to other domestic ports, and Qingdao Port and Ningbo Port also faced congestion and shortage of storage yard. In 2018, the Port of Los Angeles-Long Beach in the United States experienced an unusual period of congestion that prevented collection cards from picking up and returning empty boxes on time, resulting in thousands of dollars in detention and demurrage fees per day.
为缓解码头集卡拥堵问题,国内外一些港口,如美国的洛杉矶港与长滩港、加拿大的温哥华港以及我国的天津港等相继实施了集卡预约系统(Truck Appointment System,TAS)。集卡预约系统是一种较为先进的解决方法,主要用于与港口作业相关的外集卡作业,不同的集卡预约方法应用于集卡预约系统中。In order to alleviate the problem of truck congestion at terminals, some ports at home and abroad, such as Los Angeles and Long Beach in the United States, Vancouver in Canada, and Tianjin in my country, have successively implemented the Truck Appointment System (TAS). The truck reservation system is a relatively advanced solution, which is mainly used for the external truck operations related to port operations. Different truck reservation methods are used in the truck reservation system.
集卡公司根据预先安排的集卡的工作时间,为每辆集卡预约时间窗。港务公司依据每个时间窗的配额预先确定堆场设备的分配。Huynh等通过对数学公式和仿真的结合,提出了一种可以确定港口每个时间窗能接受的最大集卡数量的方法。Huynh等为港口提出一种改进方法,即通过为每辆集卡分配不同的预约时间窗来改进预约系统。为了将集卡预约系统与港口内部作业相结合,Zehendner等提出了一个混合整数线性规划模型,根据总体工作量和可用处理能力,确定为不同运输模式提供和分配集卡的预约数量。而Phan 等考虑到集卡因改变到达时间而带来的影响,建立了一个数学公式和分散决策结合的模型,支持集卡公司和港务公司之间的协商,使得集卡能够更加均匀的到达港口。Chen等提出了一种称为“船舶相关时间窗”的方法来控制集卡到达,该方法使集卡更加均匀地到达闸口,显著减少闸口处的拥堵。Schulte 等建立了一个基于有时间窗的多旅行商问题的优化模型,可以有效利用集卡之间的协作来降低成本和排放。Mohammad等建立了一个混合整数非线性模型,可以同时为集卡公司和港务公司服务,能够在有效减少运输成本的基础上缓解集卡在闸口处的拥堵。According to the pre-arranged working hours of the truck, the truck company will reserve a time window for each truck. The port company pre-determines the allocation of yard equipment based on the quota for each time window. Through the combination of mathematical formula and simulation, Huynh et al. proposed a method to determine the maximum number of collectors that the port can accept in each time window. Huynh et al. proposed an improved method for ports, which is to improve the reservation system by assigning different reservation time windows to each truck. In order to integrate the truck reservation system with the internal operation of the port, Zehendner et al. proposed a mixed integer linear programming model to determine the number of reservations to provide and allocate trucks for different transportation modes according to the overall workload and available processing capacity. Phan et al. took into account the impact of the change of the arrival time of the truck, and established a model combining mathematical formulas and decentralized decision-making to support the negotiation between the truck company and the port company, so that the truck can arrive at the port more evenly. . Chen et al. proposed a method called "vessel-dependent time window" to control the arrival of trucks, which makes the trucks reach the gate more uniformly and significantly reduces the congestion at the gate. Schulte et al. established an optimization model based on the multi-travelling salesman problem with a time window, which can effectively use the cooperation between sets of cards to reduce costs and emissions. Mohammad et al. established a mixed integer nonlinear model, which can serve both truck companies and port companies at the same time, which can alleviate the congestion of trucks at the gate on the basis of effectively reducing transportation costs.
然而,目前很多应用各上述方法的集卡预约系统的实际性能与预想性能并不一致。Giuliano等研究发现长滩和洛杉矶港口实施集卡预约系统时,由于破坏性事件阻碍了集卡预约系统的顺利运行,集卡在闸口的拥堵现象并没有显著缓解,重型柴油集卡的排放也没有因此得到显著减少。Islam等研究得出,在新西兰港口,集卡预约系统的实施加大了集卡公司对于集卡工作时间安排的局限性。However, at present, the actual performance of many card reservation systems applying each of the above methods is not consistent with the expected performance. The study by Giuliano et al. found that when Long Beach and Los Angeles ports implemented the truck reservation system, due to disruptive events that hindered the smooth operation of the truck reservation system, the congestion of trucks at the gate was not significantly relieved, and the emission of heavy-duty diesel trucks was not affected. been significantly reduced. The study by Islam et al. concluded that the implementation of the truck reservation system in New Zealand ports has increased the limitations of truck companies in the arrangement of truck work schedules.
上述解决方案都旨在减少集卡在闸口或堆场的等待时间,进而减少怠速排放。虽然对集卡预约系统的研究越来越成熟,但现有研究没有考虑到城市交通对集卡到达时间的影响,这大大限制了集卡预约系统的实际应用价值。The above solutions are all aimed at reducing the waiting time of trucks at the gate or yard, thereby reducing idle emissions. Although the research on the truck reservation system is becoming more and more mature, the existing research does not consider the impact of urban traffic on the arrival time of the truck, which greatly limits the practical application value of the truck reservation system.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种考虑拥堵和排放的集卡预约系统多约束调度方法,该方法考虑了城市交通早晚高峰期拥堵对于集卡到达时间的影响,以及集卡在减速和怠速状态下造成的环境污染成本,建立了一种基于混合整数非线性规划的集卡预约多约束调度模型,采用改进的自适应量子遗传算法进行优化求解,在获得最佳调度方案的同时,有效地为集卡公司及港口降低了运营成本。The purpose of the present invention is to provide a multi-constraint scheduling method for a truck reservation system that considers congestion and emissions. The method considers the impact of urban traffic congestion on the arrival time of trucks in the morning and evening rush hours, and the impact of trucks in deceleration and idling states. Therefore, a multi-constraint scheduling model for collector reservation based on mixed integer nonlinear programming is established, and an improved adaptive quantum genetic algorithm is used to optimize the solution. Companies and ports reduce operating costs.
为了达到上述目的,本发明通过以下技术方案实现:In order to achieve the above object, the present invention realizes through the following technical solutions:
一种考虑拥堵和排放的集卡预约系统多约束调度方法,该方法包含以下步骤:A multi-constraint scheduling method for a truck reservation system considering congestion and emissions, the method includes the following steps:
S1、令迭代次数iter=0,初始化集卡的所有集卡预约方案Qiter;S1, set the number of iterations iter=0, initialize all the collection card reservation schemes Q iter of the collection card;
S2、对步骤S1的所有集卡预约方案Qiter进行实数编码;S2, perform real number coding on all the card reservation schemes Q iter of step S1;
S3、解码步骤S2编码生成的所有集卡预约方案Qiter;S3, decoding step S2 coding and generating all card reservation schemes Q iter ;
S4、计算每种集卡预约方案的适应度值f;S4. Calculate the fitness value f of each collection card reservation scheme;
S5、当迭代次数iter等于预设的最大迭代次数itermax时,将最大适应度值f对应的集卡预约方案作为最佳预约方案输出;S5. When the number of iterations iter is equal to the preset maximum number of iterations iter max , output the card reservation scheme corresponding to the maximum fitness value f as the optimal reservation scheme;
所述步骤S5中,当迭代次数iter小于预设的最大迭代次数itermax时,执行步骤S6;In the step S5, when the number of iterations iter is less than the preset maximum number of iterations iter max , step S6 is performed;
S6、采用量子旋转门Uiter更新集卡的所有集卡预约方案Qiter;S6. Use the quantum revolving gate U iter to update all the collection card reservation schemes Q iter of the collection card;
S7、利用量子多点交叉、自适应变异更新集卡的所有集卡预约方案Qiter;S7, using quantum multi-point crossover and adaptive mutation to update all the collection card reservation schemes Q iter of the collection card;
S8、令iter=iter+1,转至步骤S2。S8. Let iter=iter+1, and go to step S2.
优选地,所述步骤S1中初始化集卡的所有集卡预约方案Qiter具体为:Preferably, in the step S1, all the card collection reservation schemes Q iter for initializing the card collection are as follows:
集卡每天的最大预约次数为S,集卡每次预约时集卡公司的最大时间窗号码为X,集卡第s次预约的时间窗号码为xs,第iter代的第n个预约方案中时间窗号码xs对应的量子比特编码方式为一个完整的第 n个预约方案编码为一辆集卡所有集卡预约方案的集合为其中,α、β为两个复常数,分别表示量子取偏下限态和取偏上限态的几率幅,且满足归一化条件|α|2+|β|2=1。The maximum number of appointments per day is S, the maximum time window number of the company for each appointment is X, the number of the time window for the s-th appointment is x s , and the n-th appointment plan of the iter generation The qubit encoding method corresponding to the middle time window number x s is: A complete nth reservation scheme is encoded as The collection of all the truck reservation plans for a truck is: Among them, α and β are two complex constants, which represent the probability amplitudes of the quantum deviated lower state and deviated upper state respectively, and satisfy the normalization condition |α| 2 +|β| 2 =1.
优选地,所述步骤S2中进行实数编码具体为:Preferably, the real number encoding performed in the step S2 is specifically:
对每个集卡预约方案中的每次预约的时间窗号码xs,产生一个[0,1]的随机数若则该位取态,否则取态,其中,和分别为时间窗号码xs的取值上限和取值下限;Generate a random number of [0, 1] for the time window number x s of each reservation in each card reservation scheme like then the bit takes state, otherwise take state, where, and are the upper limit and lower limit of the time window number x s , respectively;
一个完整的第n个集卡预约方案的实数编码表示为一辆集卡实数编码的所有集卡预约方案的集合为 The real code of a complete nth card reservation scheme is expressed as The set of all truck reservation schemes encoded by a truck real number is:
优选地,所述步骤S3中所述解码具体为:Preferably, the decoding in the step S3 is specifically:
时间窗号码xs的界限编码表示为以下两种情况之一:和对应于时间窗号码xs的两个取值区域,令每个区域的大小为Δxs/2,在每个时间窗配额及集卡公司的约束下生成集卡的集卡预约方案,具体解码规则如下:The bound encoding of the time window number x s is expressed as one of two cases: and Corresponding to the two value areas of the time window number x s , let The size of each area is Δx s /2, and the collection card reservation plan of the collection card is generated under the constraints of each time window quota and the collection card company. The specific decoding rules are as follows:
(1)当时,xs偏取值下限取值,可取时间窗号码为0~X/2,此时r为0~1内的随机数;(1) When When , the lower limit of the x s offset value is the value, and the number of the time window can be 0~X/2. At this time r is a random number between 0 and 1;
(2)当时,xs偏取值上限取值,可取时间窗号为X/2+1~X,此时r为0~1内的随机数。(2) When , the upper limit of the offset value of x s is taken as the upper limit value, and the time window number can be taken as X/2+1~X. At this time r is a random number within 0-1.
优选地,所述步骤S4中的所述适应度值f为每一种集卡预约方案的成本的倒数。Preferably, the fitness value f in the step S4 is the inverse of the cost of each card reservation scheme.
优选地,所述每一种集卡预约方案的成本包含:所有集卡公司更改预约的总成本、集卡在码头闸口的平均等待成本、早晚高峰期集卡拥堵的额外时间成本、集卡在早晚高峰期拥堵以及闸口排队等候情况下减速及怠速所造成的额外环境污染成本。Preferably, the cost of each pickup reservation scheme includes: the total cost of all pickup companies to change the reservation, the average waiting cost of pickup at the port gate, the extra time cost of pickup congestion during morning and evening peak hours, the cost of pickup at The additional environmental pollution costs caused by deceleration and idling in the morning and evening rush hour congestion and waiting in line at the gate.
优选地,所述步骤S6具体为:Preferably, the step S6 is specifically:
采用一种动态调整旋转角机制,旋转角度随代数增加逐渐减少,对于每个集卡预约方案的每个预约时间窗号码xs执行如下操作: 其中,Un,s为量子旋转门,α′、β′均为更新后的复函数,构成更新之后的预约方案,用于更新种群,χθn,s=▽(α,β)·θn,s,χ=▽(α,β),θn,s为旋转角度,用于控制算法的收敛速度, r'为0~1之间的常数,▽(α,β)为旋转方向,用于保证算法的收敛。A mechanism of dynamically adjusting the rotation angle is adopted, and the rotation angle gradually decreases with the increase of algebra. For each reservation time window number x s of each card reservation scheme, the following operations are performed: Among them, U n, s is the quantum revolving gate, α′ and β′ are both updated complex functions, which constitute the updated reservation scheme for updating the population, χθ n,s =▽(α,β)·θ n ,s , χ=▽(α,β), θ n, s is the rotation angle, which is used to control the convergence speed of the algorithm, r' is a constant between 0 and 1, and ▽(α, β) is the rotation direction, which is used to ensure the convergence of the algorithm.
优选地,所述步骤S7具体为:Preferably, the step S7 is specifically:
对每个集卡预约方案的调度时间窗号码xs进行交叉和变异操作以更新所有集卡预约方案Qiter;Perform crossover and mutation operations on the scheduling time window number x s of each collector reservation scheme to update all collector reservation schemes Q iter ;
从多点交叉、相互配对的两个集卡预约方案中,随机选取两个交叉点,两者互换交叉点之间的部分,从而产生两个新的集卡预约方案;Select two intersections randomly from the two multi-point crossover and mutual pairing reservation schemes, and exchange the part between the intersections, thereby generating two new collection reservation schemes;
同时采用自适应变异,改变量设置为一个随机整数且互为相反数,变异概率pm根据进化代数自动调整,计算公式如下:At the same time, adaptive mutation is adopted, and the amount of change is set to a random integer and opposite to each other. The mutation probability p m is automatically adjusted according to the evolutionary algebra. The calculation formula is as follows:
其中pmax为最大变异概率,pmin为最小变异概率。 where p max is the maximum mutation probability and p min is the minimum mutation probability.
本发明与现有技术相比具有以下优点:Compared with the prior art, the present invention has the following advantages:
(1)本发明的考虑拥堵和排放的集卡预约系统多约束调度方法,通过对量子遗传算法进行改进形成一种自适应量子遗传算法,通过实数与量子比特编码相结合的编码方式,提高了算法初始化的速度;(1) The multi-constraint scheduling method of the collector reservation system considering congestion and emission of the present invention forms an adaptive quantum genetic algorithm by improving the quantum genetic algorithm. The speed of algorithm initialization;
(2)该方法采用动态量子旋转门及变异概率根据进化代数自主调整的策略,能够提高对集卡预约方案求解的精确度,以更快的速度选出最佳预约方案;(2) This method adopts the strategy of dynamic quantum revolving gate and mutation probability self-adjusting according to evolutionary algebra, which can improve the accuracy of solving the reservation scheme of the set card, and select the best reservation scheme at a faster speed;
(3)该方法考虑了城市交通早晚高峰期拥堵对于集卡到达时间的影响,以及集卡在减速和怠速状态下造成的环境污染成本,在获得最佳调度方案的同时,有效地减小了集卡公司与港务公司综合运营成本;(3) This method takes into account the impact of urban traffic congestion on the arrival time of trucks in the morning and evening peak hours, as well as the environmental pollution cost caused by trucks in deceleration and idling states. While obtaining the optimal scheduling scheme, it effectively reduces the Comprehensive operating costs of truck companies and port companies;
(4)该方法求解速度明显优于传统的遗传算法,尤其是在求解大规模问题时,计算时间得到了很大的提升。(4) The solution speed of this method is obviously better than that of the traditional genetic algorithm, especially when solving large-scale problems, the calculation time has been greatly improved.
附图说明Description of drawings
图1为本发明的考虑拥堵和排放的集卡预约系统多约束调度方法流程示意图;1 is a schematic flowchart of a multi-constraint scheduling method for a card reservation system considering congestion and emissions of the present invention;
图2为本发明的实施例中规则(1)时xs的取值区域范围示意图;2 is a schematic diagram of the range of the value region of x s during rule (1) in an embodiment of the present invention;
图3为本发明的实施例中规则(2)时xs的取值区域范围示意图;3 is a schematic diagram of the value area range of x s during rule (2) in an embodiment of the present invention;
图4为PSFFA方法示意图;Fig. 4 is the schematic diagram of PSFFA method;
图5为本发明实施例中的集装箱港口网络示意图;5 is a schematic diagram of a container port network in an embodiment of the present invention;
图6为不同顾客时间窗下三种集卡预约系统运营成本变化及比较实验结果;Figure 6 shows the changes and comparative experimental results of the operating costs of the three card booking systems under different customer time windows;
图7为三种不同集卡预约系统中每个时间窗持续时间对整个港口及集卡公司运营成本的影响示意图;Figure 7 is a schematic diagram showing the influence of the duration of each time window on the operating cost of the entire port and the truck company in three different truck reservation systems;
图8为四种不同集卡预约系统中集卡在港口内的周转时间对整体运营成本的影响示意图。Figure 8 is a schematic diagram showing the influence of the turnaround time of trucks in the port on the overall operating cost in four different truck reservation systems.
具体实施方式Detailed ways
以下结合附图,通过详细说明一个较佳的具体实施例,对本发明做进一步阐述。The present invention will be further elaborated below by describing a preferred specific embodiment in detail with reference to the accompanying drawings.
本实施例的集卡预约系统的模型中,集卡公司在每天下午5点之前提交第二天的预约申请,同时,港务公司在每天下午5点之前提交第二天每个时间窗的配额。对于集卡的每次预约申请,均需提供集卡ID和相应的集装箱编号,从而集卡预约系统将确定该集卡连续预约之间各自的期望时间差,本实施例假定该时间差为常数。当所有的输入数据(预约请求和时间窗配额) 完成后,集卡预约系统最终确定每辆集卡的预约时间窗,目的是将港务公司及集卡公司的综合运营成本最小化。最后,集卡预约系统将每辆集卡的最佳预约时间窗发送给集卡公司。如果最后指定的预约时间窗与集卡公司提交的预约时间窗不同的话,集卡公司将会重新安排集卡的行程。In the model of the truck reservation system of this embodiment, the truck company submits the reservation application for the next day before 5:00 pm every day, and the port company submits the quota for each time window of the next day before 5:00 pm every day. For each reservation application of the collection card, the collection card ID and the corresponding container number must be provided, so that the collection card reservation system will determine the respective expected time difference between the successive reservations of the collection card. This embodiment assumes that the time difference is constant. When all the input data (reservation request and time window quota) are completed, the truck reservation system finally determines the reservation time window for each truck, in order to minimize the comprehensive operation cost of the port company and the truck company. Finally, the truck reservation system sends the best reservation time window for each truck to the truck company. If the last specified appointment time window is different from the appointment time window submitted by the collecting company, the collecting company will reschedule the itinerary of the collecting card.
影响集卡预约的主要因素有:预约份额、预约时长、集卡到达规律。在本实施例中,考虑到高峰期以及第二天的到货量的影响,对预约份额进行不均匀分配;预约时段的长度会影响集卡的到达分布,预约时长短对集卡到达的管理有利,但会降低集卡的在预约时段内准时到达的概率,因此,本实施例将每天从上午8:00到下午6:00分为10个时间窗,每个时间窗的持续时间为1小时;集卡到达规律具有随时间变化的规律,本实施例采用非平稳到达的排队模型来描述集卡到达规律。The main factors affecting the card collection reservation are: reservation share, reservation time, and collection card arrival regularity. In this embodiment, taking into account the influence of the peak period and the arrival volume of the next day, the reservation share is distributed unevenly; the length of the reservation period will affect the arrival distribution of the collection card, and the length of the reservation is the management of the arrival of the collection card It is beneficial, but it will reduce the probability of the collection card arriving on time within the reservation period. Therefore, in this embodiment, every day from 8:00 am to 6:00 pm is divided into 10 time windows, and the duration of each time window is 1 hour; the arrival law of the collector has a law that changes with time, and this embodiment uses a non-stationary arrival queuing model to describe the arrival of the collector.
集卡预约调度问题是一个NP-hard问题,它属于基于时间窗的多重旅行商问题(the multiple Traveling Salesman Problem with Time-Windows, m-TSPTW)的扩展,本实施例额外考虑了集卡在高峰期路段行驶增加的等待时间以及减速和怠速状态下增加的污染物排放量,增加了求解难度,使得集卡预约系统的多约束调度问题变得更为复杂。遗传算法在较短的几代时间内都能很好地接近全局最优点,但当问题规模较大时,遗传算法容易陷入“早熟”。为了能够解决该问题并进一步提高求解问题的精度,Narayanan提出了量子遗传算法(Quantum Genetic Algorithm,QGA),该算法是一种基于量子计算原理的概率优化方法,是量子计算与遗传算法相结合的产物。本发明提出了一种改进的自适应量子遗传算法(Improved Self-Adaptive Quantum Genetic Algorithm,ISQGA),提出实数与量子比特编码相结合的编码方式、动态量子旋转门及变异概率根据进化代数自主调整的策略,大大减小编码长度并提高求解问题的精度。采用本发明的考虑拥堵和排放的集卡预约系统多约束调度方法应用于集卡预约系统中,确定一辆集卡的集卡预约方案,从而协调确定所有集卡的集卡预约方案。The scheduling problem of truck reservations is an NP-hard problem, which belongs to the extension of the multiple Traveling Salesman Problem with Time-Windows (m-TSPTW) based on time windows. The increased waiting time and the increased pollutant emissions in deceleration and idling states increase the difficulty of solving and make the multi-constraint scheduling problem of the truck reservation system more complicated. The genetic algorithm can approach the global optimal point well in a short generation time, but when the problem scale is large, the genetic algorithm is prone to fall into "prematurity". In order to solve this problem and further improve the accuracy of solving the problem, Narayanan proposed the Quantum Genetic Algorithm (QGA), which is a probabilistic optimization method based on the principle of quantum computing, which is a combination of quantum computing and genetic algorithm. product. The invention proposes an improved self-adaptive quantum genetic algorithm (Improved Self-Adaptive Quantum Genetic Algorithm, ISQGA), and proposes a coding method combining real number and quantum bit coding, a dynamic quantum revolving gate, and a mutation probability that is independently adjusted according to evolutionary algebra. strategy, which greatly reduces the code length and improves the accuracy of solving the problem. The multi-constraint scheduling method of the truck reservation system considering congestion and emission of the present invention is applied to the truck reservation system to determine the truck reservation scheme of one truck, so as to coordinately determine the truck reservation scheme of all the trucks.
如图1所示,为本发明的一种考虑拥堵和排放的集卡预约系统多约束调度方法,该方法包含以下步骤:As shown in FIG. 1 , it is a multi-constraint scheduling method for a collector reservation system considering congestion and emission of the present invention, and the method includes the following steps:
S1、令迭代次数iter=0,初始化集卡的所有集卡预约方案Qiter。S1. Set the number of iterations iter=0, and initialize all the collection card reservation schemes Q iter of the collection card.
所述初始化集卡的所有集卡预约方案具体为:All the card reservation schemes of the initialized card collection are as follows:
集卡每天的最大预约次数为S,集卡每次预约时集卡公司的最大时间窗号码为X,集卡第s次预约的时间窗号码为xs。在本实施例中,最大预约次数S=4,最大时间窗号码X=10,即时间窗有10个,所以每辆集卡的每一种预约方案中有4个变量,如第一个变量代表集卡第一次预约的时间窗号。The maximum number of appointments per day for the collection card is S, the maximum time window number of the collection card company for each reservation of the collection card is X, and the time window number for the sth reservation of the collection card is x s . In this embodiment, the maximum number of reservations S=4, the maximum time window number X=10, that is, there are 10 time windows, so there are 4 variables in each reservation scheme of each truck, such as the first variable Indicates the time window number for the first reservation of the collection card.
一个量子比特表示如下:|φ>=α·|xmin>+β·|xmax>。其中,α、β为两个复常数,分别表示量子取偏下限态和取偏上限态的几率幅,且满足归一化条件 |α|2+|β|2=1。本实施例中的最大时间窗号码为10,所以每辆集卡的预约时间窗序号范围为0~10,如:0代表没有预约,10代表预约第10个时间窗。将每辆集卡预约的时间窗号码作为其变量,即xs。A qubit is represented as follows: |φ>=α·|x min >+β·|x max >. Among them, α and β are two complex constants, which represent the probability amplitudes of the quantum deviated lower state and deviated upper state respectively, and satisfy the normalization condition |α| 2 +|β| 2 =1. The maximum time window number in this embodiment is 10, so the sequence number of the reservation time window for each truck is in the range of 0 to 10, for example, 0 means no reservation, and 10 means the tenth time window is reserved. Take the time window number reserved by each truck as its variable, namely x s .
第iter代的第n个预约方案中时间窗号码xs对应的量子比特编码方式为一个完整的第n个预约方案编码为设定种群规模N,在本实施例中,N=10,n=10,则一辆集卡所有集卡预约方案的集合即种群为 The qubit encoding method corresponding to the time window number x s in the nth reservation scheme of the iter generation is: A complete nth reservation scheme is encoded as Set the population size N, in this embodiment, N=10, n=10, then the set of all pickup reservation schemes for a pickup truck, that is, the population is
S2、对步骤S1的所有集卡预约方案Qiter进行实数编码,即生成实数编码染色体。S2. Perform real coding on all the card reservation schemes Q iter in step S1, that is, generate real coding chromosomes.
为使得每辆集卡的预约方案更加直观,本发明提出了将实数编码应用于算法中。所述步骤S2中进行实数编码具体为:对每个集卡预约方案中的每次预约的时间窗号码xs,产生一个[0,1]的随机数若则该位取态,否则取态,其中,和分别为时间窗号码xs的取值上限和取值下限(即时间窗号码的最大值和最小值,分别为0和10);In order to make the reservation scheme of each truck more intuitive, the present invention proposes to apply real number coding to the algorithm. The real number encoding in the step S2 is specifically: generating a random number of [0,1] for the time window number x s of each reservation in each card reservation scheme like then the bit takes state, otherwise take state, where, and are the upper limit and lower limit of the time window number x s (that is, the maximum and minimum values of the time window number, which are 0 and 10, respectively);
集卡的第n个集卡预约方案的一个完整集卡预约方案的实数编码为一辆集卡实数编码的所有集卡预约方案的集合为 The real number code of a complete collection reservation scheme of the nth collection reservation scheme of the collection card is: The set of all truck reservation schemes encoded by a truck real number is:
S3、解码步骤S2编码生成的所有集卡预约方案Qiter。S3. Decoding all the card reservation schemes Q iter generated by the encoding in step S2.
所述步骤S3中所述解码具体为:The decoding in the step S3 is specifically:
如图2和图3结合所示,时间窗号码xs的界限编码表示为以下两种情况之一:和对应于时间窗号码xs的两个取值区域,令每个区域的大小为Δxs/2,在每个时间窗配额及集卡公司的约束下生成集卡的集卡预约方案,具体解码规则如下:As shown in the combination of Figure 2 and Figure 3, the limit encoding of the time window number x s is expressed as one of the following two cases: and Corresponding to the two value areas of the time window number x s , let The size of each area is Δx s /2, and the collection card reservation plan of the collection card is generated under the constraints of each time window quota and the collection card company. The specific decoding rules are as follows:
(1)当时,xs偏取值下限取值,即可取时间窗号码为0~5,如图2所示区域,此时r为0~1内的随机数;(1) When When the value of x s is the lower limit of the offset value, the time window number can be taken as 0 to 5, as shown in Figure 2, at this time r is a random number between 0 and 1;
(2)当时,xs偏取值上限取值,即可取时间窗号为6~10,如图3所示区域,此时r为0~1内的随机数。(2) When , the upper limit of the x s offset value can be taken as the upper limit value, and the time window number can be taken as 6 to 10, as shown in the area shown in Figure 3, at this time r is a random number within 0-1.
S4、计算每种集卡预约方案的适应度值f。S4. Calculate the fitness value f of each collection card reservation scheme.
所述步骤S4中的所述适应度值f为每一种集卡预约方案的成本的倒数。The fitness value f in the step S4 is the inverse of the cost of each card reservation scheme.
所述每一种集卡预约方案的成本包含:所有集卡公司更改预约的总成本,集卡在码头闸口的平均等待成本,早晚高峰期集卡拥堵的额外时间成本,集卡在早晚高峰期拥堵以及闸口排队等候情况下减速及怠速所造成的额外环境污染成本。The cost of each pickup reservation scheme described above includes: the total cost of changing the reservation of all pickup companies, the average waiting cost of pickup at the port gate, the additional time cost of pickup congestion during the morning and evening peak hours, and the pickup during the morning and evening peak hours. Congestion and additional environmental pollution costs caused by slowing down and idling when waiting in line at gates.
本发明建立了一种基于混合整数非线性规划(MINLP)的集卡预约多约束调度模型。由于港口的时间窗是离散的,所以在模型中建立了一个二元决策变量来决策,该决策变量表示了具有i次预约的集卡k在时间窗tw内的第b次预约的状态。The present invention establishes a multi-constraint scheduling model based on Mixed Integer Nonlinear Programming (MINLP). Since the time window of the port is discrete, a binary decision variable is established in the model to make a decision, the decision variable represents the status of the b-th appointment of the set card k with i appointments within the time window tw .
本发明的目标函数即每一种集卡预约方案的成本如式(2)所示:The objective function of the present invention, that is, the cost of each card reservation scheme, is shown in formula (2):
约束条件:Restrictions:
因此,本发明的适应度值f计算公式如下:Therefore, the calculation formula of the fitness value f of the present invention is as follows:
目标函数的第一项是所有集卡公司更改预约的总成本。各公式为各约束条件。式(3)计算了每个集卡公司更改预约的成本,第一项表示对于一天内具有多个预约的集卡,更改后的连续预约之间的时间差大于期望的时间差的更改成本(单位成本用Y1表示);第二项则表示更改后的连续预约之间的时间差小于期望时间差的更改成本(单位成本用Y2表示);第三项表示更改为较晚时间窗的更改成本(单位成本用Y3);第四项表示更改为较早时间窗的更改成本(单位成本用Y4表示)。式(4)和(5)是dtkib-dtpkib最大值的线性化表示。式(6)和(7)是dtpkib-dtkib最大值的线性化表示。式(8)和(9)是对实际到达时间窗与期望到达时间窗的差值最大值的线性化表示。式(10)和(11) 是对期望到达时间窗与实际到达时间窗的差值最大值的线性化表示。式(12) 是确保每一家集卡公司的更改时间窗的成本增加额不超过预定的阈值,阈值由式(13)确定,其优点在于考虑了每一家集卡公司的预约次数,预约次数集卡较多的集卡公司的阈值较低。其中,参数a表示港口给所有集卡公司的最低阈值,参数c表示预约次数相对较少的集卡公司的起始阈值,参数h表示斜率或阈值的下降速率。式(14)、(15)分别计算的是对于一天内有多个预约的集卡的两个实际连续预约之间的时间差、两个期望连续预约之间的时间差。式(16)表示应满足预约请求的条件。式(17)是要求每个时间窗中的预约次数少于指定配额的容量约束。预先规定的配额计算如式(27)、(28)。其中AQ是每个时间窗的平均配额,本实施例中除了与港口时间窗持续时间的灵敏度分析有关的实验外,所有实验都是在10个时间窗内进行的。式(28) 为每个时间窗的配额设置。式(18)确保了具有多次预约的集卡在调整后的预约顺序与请求时的顺序相同。The first term of the objective function is the total cost of changing an appointment for all the trucking companies. Each formula is each constraint condition. Equation (3) calculates the cost of changing an appointment for each trucking company. The first term indicates that for a trucking company with multiple appointments in one day, the time difference between consecutive appointments after the change is greater than the expected time difference (unit cost). It is represented by Y 1 ); the second item represents the change cost (unit cost is represented by Y 2 ) when the time difference between consecutive appointments after the change is less than the expected time difference; the third item represents the change cost of changing to a later time window (unit The cost is represented by Y 3 ); the fourth term represents the cost of the change to an earlier time window (unit cost is represented by Y 4 ). Equations (4) and (5) are linearized representations of the maximum value of dt kib -dt pkib . Equations (6) and (7) are linearized representations of the maximum value of dt pkib - dt kib . Equations (8) and (9) are linearized representations of the maximum difference between the actual arrival time window and the expected arrival time window. Equations (10) and (11) are linearized representations of the maximum difference between the expected arrival time window and the actual arrival time window. Equation (12) is to ensure that the cost increase of each card company's change time window does not exceed a predetermined threshold, and the threshold is determined by formula (13). Collector companies with more cards have lower thresholds. Among them, parameter a represents the minimum threshold for all truck companies from the port, parameter c represents the initial threshold of truck companies with relatively few reservations, and parameter h represents the slope or the rate of decline of the threshold. Equations (14) and (15) respectively calculate the time difference between two actual consecutive appointments and the time difference between two expected consecutive appointments for a set card with multiple appointments in one day. Equation (16) represents the condition that the reservation request should be satisfied. Equation (17) is a capacity constraint that requires the number of reservations in each time window to be less than the specified quota. The pre-specified quota is calculated as formulas (27) and (28). where AQ is the average quota for each time window, and all experiments in this example are performed within 10 time windows, except for the experiments related to the sensitivity analysis of the port time window duration. Equation (28) sets the quota for each time window. Equation (18) ensures that the order of reservations after adjustment is the same as the order in which the cards are requested with multiple reservations.
tw=[0.9 AQ,0.9 AQ,1.1 AQ,1.1 AQ,1.1 AQ,1.1 AQ,1.1 AQ,1.1 AQ,0.9 AQ,0.9 AQ] (28)t w = [0.9 AQ, 0.9 AQ, 1.1 AQ, 1.1 AQ, 1.1 AQ, 1.1 AQ, 1.1 AQ, 1.1 AQ, 0.9 AQ, 0.9 AQ] (28)
目标函数的第二项是集卡在码头闸口的平均等待成本(单位成本用Y5表示),计算方法是从时间间隔开始到时间间隔结束的平均队列长度乘以等待队列长度的成本。式(19)是将一个时间窗内到达的所有集卡数量除以该时间窗内的时间间隔个数,得到每个时间间隔内集卡到达的平均数量,时间间隔这一术语仅用于队列长度估计。式(19)~(22)中使用的逐点平稳流体流动近似(PSFFA)方法所需持续时间比时间窗更短,PSFFA方法说明如图4所示。The second term of the objective function is the average waiting cost of the set card at the terminal gate (the unit cost is represented by Y 5 ), which is calculated from the time interval. start to time interval The average queue length at the end multiplied by the cost of waiting for the queue length. Equation (19) is to divide the number of all collectors arriving in a time window by the number of time intervals in the time window to obtain the average number of collectors arriving in each time interval. The term time interval is only used for queues length estimate. The point-by-point smooth fluid flow approximation (PSFFA) method used in equations (19) to (22) requires a shorter duration than the time window. The description of the PSFFA method is shown in Figure 4.
例如:时间间隔t5的平均队列长度为 For example: the average queue length for time interval t5 is
本实施例将闸口集卡队列视为M/G/1队列,并使用相应的排队函数表示,如式(20)。约束(20)和约束(21)用来将每个时间间隔内从闸口到集装箱堆场的出发率定义为In this embodiment, the gate collector queue is regarded as an M/G/1 queue, and is represented by a corresponding queuing function, as shown in formula (20). Constraints (20) and (21) are used to define the departure rate from gate to container yard in each time interval as
和的最小值。 and the minimum value of .
式(22)用来计算每个时间间隔的集卡队列长度。式(23)是对决策变量取值的表示。Equation (22) is used to calculate the stacker queue length for each time interval. Equation (23) is the representation of the value of the decision variable.
目标函数的第三项是早晚高峰期集卡拥堵的额外时间成本(单位成本用 Y6表示),式中η取值约为2。模型中城市道路分为快速路、主干路、次干路 3个等级,分别计算不同拥堵强度条件下不同道路等级集卡的集卡拥堵的时间成本,集卡在不同时间状态下的临界速度参考城市不同类型道路交通状态分类标准。式(24)不同等级道路上集卡在高峰期的流量。The third term of the objective function is the extra time cost (unit cost is represented by Y 6 ) of truck congestion during the morning and evening peak hours, where η is about 2. In the model, urban roads are divided into three grades: expressway, main road and sub-arterial road. The time cost of truck congestion of trucks of different road levels under different congestion intensity conditions is calculated respectively, and the critical speed of trucks in different time states is used as a reference. Classification criteria for different types of road traffic conditions in cities. Equation (24) is the traffic flow of trucks on different grades of roads during peak periods.
目标函数的第四项是集卡在早晚高峰期拥堵以及闸口排队等候情况下减速及怠速所造成的额外环境污染成本(单位成本用Y7表示)。计算方法为集卡在基本畅通道路下尾气排放环境成本与拥堵条件下尾气排放环境成本的差值。式(25)为集卡拥堵的额外时间。污染物排放系数Wg和Wg'由排放因子求得,排放因子可参考我国货车尾气排放标准(国六标准)。The fourth item of the objective function is the additional environmental pollution cost (unit cost represented by Y 7 ) caused by deceleration and idling when the truck is congested during the morning and evening peak hours and waiting in line at the gate. The calculation method is the difference between the environmental cost of exhaust emissions under the basic clear road and the environmental cost of exhaust emissions under congestion conditions. Equation (25) is the extra time for the truck to be congested. The pollutant emission coefficients W g and W g ' are obtained from the emission factor, and the emission factor can refer to China's truck exhaust emission standard (National VI Standard).
参数定义parameter definition
(1)符号:tw=港口时间窗;ti=每个时间窗的时间间隔;k=集车ID; i=一辆集卡的预约次数;b=一辆集卡的预约的号码;d=集卡公司ID。(1) Symbols: t w = port time window; t i = time interval of each time window; k = truck ID; i = number of appointments for a truck; b = number of appointments for a truck; d = ID of the collector company.
(2)集合:(2) Collection:
Tw=时间窗集合,Tw={1,...,10};如:Tw=1表示8:00AM-9:00AM的时间窗; Tw = set of time windows, Tw ={1,...,10}; for example: Tw =1 represents the time window of 8:00 AM-9:00AM ;
Ti=一个时间窗内的时间间隔集合;如:T1={1,...,10},T2={1,...,10}等;T1=1 表示第一个时间窗内8:00AM-8:06AM的时间间隔;T i = a set of time intervals within a time window; for example: T 1 ={1,...,10}, T 2 ={1,...,10}, etc.; T 1 =1 represents the first time The time interval of 8:00AM-8:06AM in the window;
I=每辆集卡的预约次数集合(本文设置为1~4次),I={1,...,4};如:I=3 表示集卡有3次预约;I = the set of reservation times for each collection card (set as 1 to 4 times in this article), I = {1,...,4}; for example: I = 3 means that the collection card has 3 reservations;
Ri=具有i次预约的集卡的预约集合,Ri=1,...,i;如:Ri={1},Ri={1,2}等;Ri = reservation set of cards with i reservations, Ri = 1,..., i ; such as: Ri = {1 } , Ri ={1,2}, etc.;
D=集卡公司集合,D={1,2,...},如:D=1表示1号集卡公司;D=collection of card companies, D={1,2,...}, for example: D=1 means No. 1 card company;
Kd=d号集卡公司的所有集卡集合;如:K1={1,2,...},K1=1表示1号集卡公司的第一辆集卡;K d = the set of all the trucks of the No. d truck company; for example: K 1 ={1,2,...}, K 1 =1 means the first truck of the No. 1 truck company;
j=城市道路等级集合,j={1,2,3};如:j=1表示快速路,j=2表示主干路,j=3表示次干路;j = set of urban road grades, j = {1, 2, 3}; for example: j = 1 means expressway, j = 2 means main road, j = 3 means secondary arterial road;
g=尾气污染物集合,g={1,2,3};如:g=1表示一氧化碳(CO),g=2表示碳氢化合物,g=3表示PM。g=set of exhaust pollutants, g={1,2,3}; for example: g=1 represents carbon monoxide (CO), g=2 represents hydrocarbons, and g=3 represents PM.
(3)参数:(3) Parameters:
Pkib=具有i次预约的集卡k的第b次预约的期望时间窗;P kib = the expected time window for the b-th appointment of a card k with i appointments;
σ=一个时间窗内时间间隔的个数;σ = the number of time intervals in a time window;
e=闸口服务时间的方差系数;e=variance coefficient of gate service time;
Cl=实际时间差大于期望时间差的惩罚值;C l = the penalty value that the actual time difference is greater than the expected time difference;
Cs=实际时间差小于期望时间差的惩罚值;C s = the penalty value that the actual time difference is less than the expected time difference;
Cp=实际达到时间早于期望到达时间的惩罚值;C p = penalty value that the actual arrival time is earlier than the expected arrival time;
Cn=实际达到时间晚于期望到达时间的惩罚值;C n = penalty value for the actual arrival time later than the expected arrival time;
Cq=集卡在闸口排队等候的惩罚值;C q = penalty value for the card to wait in line at the gate;
nd=集卡公司d提交的预约总数;n d = the total number of appointments submitted by the trucking company d;
THd=各个集卡公司运输成本之间差异的阈值;TH d = the threshold value of the difference between the transportation costs of each trucking company;
dtpkib=具有i次预约的集卡k的第b次预约和第b+1次预约的时间差;dt pkib = the time difference between the b-th appointment and the b+1-th appointment of the card k with i appointments;
η=集卡拥堵下的经济损失换算系数;η=conversion factor of economic loss under truck congestion;
Lj=j类道路的长度;L j = the length of the j-type road;
Kj=j类道路上集卡的数量;K j = the number of trucks on the j-type road;
Vj=j类道路上集卡拥堵时的临界速度;V j = critical speed when the truck is congested on the j-type road;
Vj'=j类道路上集卡畅通时的速度;V j '= the speed of the collection card on the j-type road when the truck is unblocked;
Wg=集卡拥堵时的g类污染物的排放系数;W g = emission coefficient of class g pollutants when the truck is congested;
Wg'=集卡畅通时的g类污染物的排放系数;W g '= emission coefficient of class g pollutants when the collector is unblocked;
CEg=每增加一种g类污染物造成的环境成本。CE g = the environmental cost of each additional g pollutant.
(4)决策变量:(4) Decision variables:
dtkib=具有i次预约的集卡k的第b次到达和第b+1次到达的时间差;dt kib = the time difference between the b-th arrival and the b+1-th arrival of the set card k with i reservations;
Nkib=dtkib-dtpkib的差值;N kib = the difference of dt kib -dt pkib ;
Qkib=dtpkib-dtkib的差值;Q kib = the difference of dt pkib -dt kib ;
Skib=集卡实际到达时间窗与期望到达时间窗的差值; Skib = the difference between the actual arrival time window and the expected arrival time window of the collector;
Zkib=集卡期望到达时间窗与实际到达时间窗的差值;Z kib = the difference between the expected arrival time window and the actual arrival time window of the collector;
Td=集卡公司d预约变更总成本;T d = total cost of change of reservation of trucking company d;
TC=集卡额外拥堵时间;TC=Additional congestion time of trucks;
Qj=集卡在j类道路上的高峰期流量。Q j = the peak flow of the truck on the j-type road.
S5、当算法的迭代次数iter等于(达到)预设的最大迭代次数itermax时,将最大适应度值f对应的集卡预约方案作为最佳预约方案输出,算法结束。在本实施例中,预设的最大迭代次数itermax为500次,即itermax=500。S5. When the iteration number iter of the algorithm is equal to (reaches) the preset maximum iteration number iter max , output the card reservation scheme corresponding to the maximum fitness value f as the optimal reservation scheme, and the algorithm ends. In this embodiment, the preset maximum number of iterations iter max is 500 times, that is, iter max =500.
所述步骤S5中,当迭代次数iter小于预设的最大迭代次数itermax时,继续迭代。迭代的循环运算可以对一辆集卡的所有集卡预约方案进行适应度值的计算,使最终输出的最佳预约方案效果最佳。所示迭代的具体过程如下:In the step S5, when the number of iterations iter is less than the preset maximum number of iterations iter max , the iteration is continued. The iterative loop operation can calculate the fitness value of all the truck reservation schemes of a truck, so that the final output optimal reservation scheme has the best effect. The specific process of the shown iteration is as follows:
S6、采用量子旋转门Uiter更新集卡的所有集卡预约方案Qiter。S6. Use the quantum revolving gate U iter to update all the collection card reservation schemes Qi iter of the collection card.
所述步骤S6具体为:The step S6 is specifically:
为提高整个集卡预约系统的运行速度,采用一种动态调整旋转角机制,旋转角度随代数增加逐渐减少。对于每个集卡预约方案的每个预约时间窗号码xs执行如下操作:In order to improve the running speed of the whole card reservation system, a dynamic adjustment mechanism of rotation angle is adopted, and the rotation angle gradually decreases with the increase of algebra. For each reservation time window number x s of each card reservation scheme, perform the following operations:
其中Un,s为量子旋转门(′为量子旋转门更新的方向,是量子旋转门更新的一部分),α′、β′为更新后的复函数,构成更新之后的预约方案,用来更新种群(即集卡预约方案),χθn,s=▽(α,β)·θn,s,χ=▽(α,β),▽(α,β)为旋转方向,用于保证算法的收敛,θn,s为旋转角度,用来控制算法的收敛速度,其中 r'为0~1之间的常数,本实施例r'取值1/e(e为自然常数)。 Among them, U n, s is the quantum revolving door (' is the update direction of the quantum revolving door, which is a part of the quantum revolving door update), and α' and β' are the updated complex functions, which constitute the updated reservation scheme for updating Population (i.e. card reservation scheme), χθ n,s =▽(α,β)·θn ,s , χ=▽(α,β), ▽(α,β) is the rotation direction, which is used to ensure the algorithm Convergence, θ n, s is the rotation angle, which is used to control the convergence speed of the algorithm, r' is a constant between 0 and 1, and in this embodiment, r' takes a value of 1/e (e is a natural constant).
S7、利用量子多点交叉、自适应变异更新集卡的所有集卡预约方案Qiter。S7, utilize quantum multi-point crossover and self-adaptive mutation to update all collector reservation schemes Qiter of collectors.
所述步骤S7具体为:The step S7 is specifically:
对每个集卡预约方案的调度时间窗号码xs进行交叉和变异操作以更新所有集卡预约方案Qiter。Crossover and mutation operations are performed on the scheduling time window number x s of each collector reservation scheme to update all the collector reservation schemes Q iter .
从多点交叉、相互配对的两个集卡预约方案中,随机选取两个交叉点,然后两者互换交叉点之间的部分,从而产生两个新的集卡预约方案。优选地,选取适应度值f高的集卡预约方案作为实验的两个集卡预约方案。Two intersections are randomly selected from the two multi-point cross and mutual matching reservation schemes, and then the parts between the intersections are exchanged, thereby generating two new collection reservation schemes. Preferably, a collection card reservation scheme with a high fitness value f is selected as the two collection card reservation schemes of the experiment.
同时本发明还采用自适应变异,改变量设置为[-0.9,1.2]间的一个随机整数且互为相反数,变异概率pm根据进化代数自动调整,计算公式如下:At the same time, the present invention also adopts self-adaptive mutation, and the amount of change is set as a random integer between [-0.9, 1.2] and is opposite to each other, and the mutation probability p m is automatically adjusted according to the evolutionary algebra, and the calculation formula is as follows:
其中pmax为最大变异概率,pmin为最小变异概率。 where p max is the maximum mutation probability and p min is the minimum mutation probability.
S8、令iter=iter+1,转至步骤S2,直至得到最佳预约方案。S8. Let iter=iter+1, and go to step S2 until the best reservation scheme is obtained.
为了验证所建立的模型和求解方法的可行性,采用本发明的考虑拥堵和排放的集卡预约系统多约束调度方法进行仿真实验。实验是在以年吞吐量500万TEU的集装箱港口为例的正方形网络上生成的,有一个集装箱港口、多个空箱堆场和多个集卡池,如图5所示。选择的正方形网络足够大,集卡沿着网络边缘的行程时间为160min。每个实验都提供了网络的大小和集装箱港口的位置。集卡仓库和空集装箱仓库的位置是为不同的货运公司随机选择的。客户位置随机放置在网络中,客户的取货和送货时间窗为上午4:00至晚上10:00,集装箱港口从上午8:00至下午6:00运营,使用十个港口时间窗,每个时间窗口都是1小时。所有实验都是在Intel Core i7、1.8GHz CPU和8GB RAM的计算机上进行的。In order to verify the feasibility of the established model and the solution method, the multi-constraint scheduling method of the collector reservation system considering the congestion and emission of the present invention is used to conduct a simulation experiment. The experiment is generated on a square network with a container port with an annual throughput of 5 million TEU as an example, which has one container port, multiple empty container yards and multiple card pools, as shown in Figure 5. The chosen square network is large enough that the travel time of the collector card along the edge of the network is 160 minutes. The size of the network and the location of the container ports are provided for each experiment. The locations of the truck warehouse and empty container warehouse are randomly selected for different shipping companies. Customer locations are randomly placed in the network, customer pickup and delivery time windows are from 4:00 am to 10:00 pm, container ports operate from 8:00 am to 6:00 pm, using ten port time windows, each Each time window is 1 hour. All experiments are performed on a computer with Intel Core i7, 1.8GHz CPU and 8GB RAM.
本实施例的基本数据如下:集卡在港口内的周转时间为43.2分钟;港口每天的工作时间为10小时,时间窗的数量为10个;港口堆场的平均排队时间为10分钟;安装/卸载集装箱的时间为5分钟。The basic data of this embodiment are as follows: the turnaround time of trucks in the port is 43.2 minutes; the daily working time of the port is 10 hours, and the number of time windows is 10; the average queuing time of the port yard is 10 minutes; The time to unload the container is 5 minutes.
针对本实施例涉及到的5个惩罚值,其每一个的取值范围均为1至10 的整数,对其进行排列组合,计算在每组惩罚值下,无约束集卡调度模型的目标函数值和受约束集卡调度模型的目标函数值之间的差值,最小差值对应的惩罚值即为最优惩罚值。最终确定最优惩罚值分别为Cl=1,Cs=3,Cp=1, Cn=3,Cq=1。For the five penalty values involved in this embodiment, the value range of each of them is an integer from 1 to 10, they are arranged and combined, and the objective function of the unconstrained set card scheduling model under each group of penalty values is calculated. The difference between the value and the objective function value of the constrained set card scheduling model, the penalty value corresponding to the smallest difference is the optimal penalty value. Finally, the optimal penalty values are determined as C l =1, C s =3, C p =1, C n =3, C q =1.
不同规模下集卡预约调度仿真实验Simulation Experiment of Reservation Scheduling of Collectors in Different Scales
表1为针对一家集卡公司的预约及集卡预约系统提供的最优解决方案的实验,本实施例通过该实验来解释集卡预约系统内部工作原理。表中Y1~Y7分别表示更改后时间差变大、更改后时间差变小、更改后时间窗推迟、更改后时间窗提前、闸口平均等待、早晚高峰拥堵时间和排放的单位成本。实验一中集卡公司为一辆集卡进行预约,期望的时间窗为1,3,6和8,集卡预约系统提供的最优时间窗为1,4,6和8。原因是时间窗3的货物分配额为0,将时间窗3的预约延至时间窗4。实验二和实验三都是对两辆集卡的调度,实验三的集卡预约系统提供的最优时间窗即为期望时间窗,总目标值是集卡在闸口排队的单位成本、早晚高峰期造成的单位时间成本以及减速和怠速状态下的单位环境污染成本的总和。Table 1 is an experiment for an optimal solution provided by the reservation and reservation system of a card collection company. This embodiment uses the experiment to explain the inner working principle of the reservation system for collection cards. In the table, Y 1 to Y 7 represent the larger time difference after the change, the smaller time difference after the change, the delay of the time window after the change, the advance of the time window after the change, the average waiting time at the gate, the morning and evening peak congestion time and the unit cost of emission. In
表1一家集卡公司的时间窗及集卡预约系统提供的最优方案Table 1 The time window of a card-collecting company and the optimal solution provided by the card-collecting reservation system
表2概述了28个额外实验的参数。基于表2 的实验参数,对只考虑到闸口拥堵问题的集卡预约系统、考虑到预约更改成本及闸口拥堵问题的集卡预约系统和本文的目标集卡预约系统进行仿真实验,表3为实验结果。其中实验4~18为小规模问题,实验19~25为中规模问题,实验26~31为大规模问题(平均每个集卡公司需处理的货物量超过10TEU)。集卡公司方面希望尽可能减少集卡数量来降低成本,通过对三种集卡预约系统的实验比较,本实施例的集卡预约系统对集卡数量的要求最少,能满足集卡公司的需求。对于整个受限制的运输问题,本实施例设计的集卡预约系统的目标值最小,即整个运输时间是最少的,这表明该集卡预约系统充分利用好每一辆集卡的时间,提高了整个系统的效率。在整个作业系统中,尽可能降低综合运营成本可以更好的服务于集卡公司和港口,考虑到城市早晚高峰期对集卡行程时间的影响,合理的分配预约时间窗,可以使整个运营成本减少。Table 2 summarizes the parameters of 28 additional experiments. Based on the experimental parameters in Table 2, simulation experiments are carried out on the truck reservation system that only considers the problem of gate congestion, the truck reservation system that considers the cost of changing reservations and the problem of gate congestion, and the target truck reservation system in this paper. Table 3 is the experiment. result. Among them, experiments 4-18 are small-scale problems, experiments 19-25 are medium-scale problems, and experiments 26-31 are large-scale problems (the average amount of goods that each truck company needs to handle exceeds 10TEU). The card collecting company hopes to reduce the number of collecting cards as much as possible to reduce the cost. Through the experimental comparison of the three card collecting reservation systems, the card collecting reservation system of this embodiment has the least requirement on the number of collecting cards, which can meet the needs of the collecting card companies. . For the entire restricted transportation problem, the target value of the truck reservation system designed in this embodiment is the smallest, that is, the entire transportation time is the least, which shows that the truck reservation system makes full use of the time of each truck, and improves the efficiency of the entire system. In the entire operating system, reducing the comprehensive operating cost as much as possible can better serve the truck companies and ports. Considering the impact of the city’s morning and evening rush hours on the truck’s travel time, the reasonable allocation of the appointment time window can make the entire operating cost reduce.
表2实验参数Table 2 Experimental parameters
表3实验结果Table 3 Experimental results
表4算法比较Table 4 Comparison of Algorithms
表4是分别对小规模、中规模及大规模问题在算法上的比较。基于分别对小规模、中规模及大规模问题进行5组实验,对本发明提出的改进的自适应量子遗传算法(即本发明的考虑拥堵和排放的集卡预约系统多约束调度方法)和传统遗传算法比较。实验结果发现本发明提出的算法求解速度明显优于传统的遗传算法,尤其是在求解大规模问题时,计算时间得到了很大的提升。同时,本发明的算法得到的最优解决方案的最终目标值明显优于传统算法得到的目标值,更符合本文减小集卡公司与港务公司综合运营成本的目标。Table 4 is a comparison of algorithms for small-scale, medium-scale and large-scale problems. Based on 5 sets of experiments on small-scale, medium-scale and large-scale problems, the improved adaptive quantum genetic algorithm proposed by the present invention (ie the multi-constraint scheduling method of the card reservation system considering congestion and emission of the present invention) and the traditional genetic algorithm Algorithm comparison. The experimental results show that the solving speed of the algorithm proposed by the present invention is obviously better than that of the traditional genetic algorithm, especially when solving large-scale problems, the calculation time is greatly improved. At the same time, the final target value of the optimal solution obtained by the algorithm of the present invention is obviously better than the target value obtained by the traditional algorithm, which is more in line with the goal of reducing the comprehensive operation cost of the truck company and the port company.
运营成本的影响分析Analysis of the impact of operating costs
不同顾客时间窗对运营成本的影响The impact of different customer time windows on operating costs
为了检验客户工作时间窗对运营成本的影响,基于以上模型分别对不同客户工作时间窗进行了五次实验,并将本发明的集卡预约系统与CHEN等人 (文献1:CHEN G,GOVINDAN K,YANG Z.Managing truck arrivals with time windows to alleviate gatecongestion at container terminals[J].International Journal of ProductionEconomics,2013,141(1):179–188)、MOHAMMAD等人 (文献2:MOHAMMAD T,NATHAN H,SAMANEH S.Truck appointment systems considering impact to drayage truck tours[J].Transportation Research Part E:Logistic and Transportation Review,2018,116:208-228)的集卡预约系统作比较,图6为不同顾客时间窗下三种集卡预约系统运营成本变化及比较实验结果。由图6可见,三种集卡预约系统的运营成本随着时间窗的减少而增加,运营成本的增长率也会越来越高。而本文的集卡预约系统由于考虑到早晚交通高峰期,更加合理地分配预约集卡,总的运营成本要低于另外两种集卡预约系统的运营成本。In order to examine the impact of customer working time windows on operating costs, five experiments were carried out on different customer working time windows based on the above model, and the card reservation system of the present invention was compared with that of CHEN et al. (Document 1: CHEN G, GOVINDAN K , YANG Z.Managing truck arrivals with time windows to alleviate gatecongestion at container terminals[J].International Journal of ProductionEconomics,2013,141(1):179–188), MOHAMMAD et al. (Document 2: MOHAMMAD T, NATHAN H, SAMANEH S. Truck appointment systems considering impact to drayage truck tours [J]. Transportation Research Part E: Logistic and Transportation Review, 2018, 116: 208-228) for comparison, Figure 6 shows different customer time windows Changes in operating costs of three card reservation systems and comparative experimental results. It can be seen from Figure 6 that the operating costs of the three card reservation systems increase with the reduction of the time window, and the growth rate of operating costs will also be higher and higher. However, due to the consideration of the morning and evening traffic peaks, the truck reservation system in this paper allocates the reservation truck more reasonably, and the total operating cost is lower than the operating cost of the other two truck reservation systems.
时间窗的不同持续时间对运营成本的影响Effects of different durations of time windows on operating costs
本文港口时间窗的数量为10个,每个时间窗的时间为1小时。为了分析港口每个时间窗持续时间对整个港口及集卡公司运营成本的影响,分别对以上三种不同集卡预约系统(TAS)做实验,结果如图7所示。对这三种集卡预约系统来说,增加港口时间窗口持续时间都会导致运营成本的降低。对于港口方面,时间窗持续时间短使得集卡到达港口的时间误差相对较小,使得港口方面的控制力提高。对于集卡公司方面,时间窗持续时间长会减少整个运营成本。但是考虑到运输路径的变化等不确定因素,持续时间更长的时间窗对整个系统更有利。相对于文献1集卡预约系统与文献2集卡预约系统的运营成本减少值来说,本文集卡预约系统与文献2集卡预约系统运营成本的减少值要小,原因是时间窗的持续时间足够大,文献2集卡预约系统考虑的成本是针对于全部时间窗,而本文集卡预约系统考虑的是早晚高峰期拥堵情况下对集卡行程时间以及排放的影响,针对的是与早晚高峰期时间临近的时间窗。同时,当时间窗的持续时间大于120min时,文献2集卡预约系统与本文的集卡预约系统的运营成本几乎不在改变,原因是时间窗的持续时间足够大时,早晚高峰对一个时间窗内集卡到达时间的影响减小,同时可以增加集卡准时预约的可能性,更改预约的可能性也会减小。但是,不同持续时间的时间窗下,本实施例的集卡预约系统的整个运营成本比另外两种集卡预约系统都低。The number of port time windows in this paper is 10, and the time of each time window is 1 hour. In order to analyze the impact of the duration of each time window of the port on the operating cost of the entire port and the truck company, experiments were conducted on the above three different truck booking systems (TAS), and the results are shown in Figure 7. For these three truck booking systems, increasing the duration of the port time window will lead to lower operating costs. For the port, the short duration of the time window makes the time error of the truck arriving at the port relatively small, which improves the control of the port. For trucking companies, a long time window will reduce the overall operating cost. However, taking into account uncertain factors such as changes in transportation routes, a time window with a longer duration is more beneficial to the entire system. Compared with the reduction value of the operation cost of the collection card reservation system of
不同集卡周转时间对运营成本的影响The impact of different truck turnaround times on operating costs
为了分析在不同调度策略下(文献3:PHAN M H,KIM K H.Negotiating truckarrival times among trucking companies and a container terminal[J].Transportation Research Part E:Logistic and Transportation Review,2015,75:132–144),集卡在港口内的周转时间对整体运营成本的影响,通过将集卡周转时间分为五组(20min,30min,40min,50min,60min),分别进行实验分析比较,结果如图8所示。由图8可知,在20min~60min的集卡周转时间下,随着周转时间的增加,运营成本不断增加。但是当周转时间接近60min时,可以看到各个集卡预约系统的运营成本不断接近。所以当周转时间越来越大时,集卡的周转时间对整体的运营成本影响程度会降低。对于同一个集卡预约系统,集卡的周转时间越长,综合运营成本越高,原因是周转时间越长,集卡一天内的作业数量减少,导致集卡的运输成本增加,港口整体的作业效率降低;对于不同的集卡预约系统,由于本实施例的集卡预约系统考虑了早晚高峰期拥堵以及拥堵条件下的排放,在相同集卡周转时间下,本实施例集卡预约系统的综合运营成本最低,并且随着集卡周转时间的减少,综合运营成本降低得越大。所以,集卡早晚高峰期拥堵时间成本以及集卡减速及怠速环境污染成本在整个集卡预约系统设计中不容忽视。In order to analyze under different scheduling strategies (Reference 3: PHAN M H, KIM K H. Negotiating truck arrival times among trucking companies and a container terminal [J]. Transportation Research Part E: Logistic and Transportation Review, 2015, 75: 132–144) , the effect of the turnaround time of the truck in the port on the overall operating cost, by dividing the truck turnaround time into five groups (20min, 30min, 40min, 50min, 60min), respectively, for experimental analysis and comparison, the results are shown in Figure 8 . It can be seen from Figure 8 that, under the turnaround time of 20min-60min, the operating cost increases continuously with the increase of the turnaround time. However, when the turnaround time is close to 60 minutes, it can be seen that the operating costs of each card reservation system are approaching. Therefore, when the turnaround time becomes larger and larger, the impact of the turnaround time of the truck on the overall operating cost will decrease. For the same truck reservation system, the longer the truck turnaround time, the higher the comprehensive operating cost. The reason is that the longer the turnaround time is, the less the number of truck operations in one day, which leads to the increase in truck transportation costs and the overall operation of the port. The efficiency is reduced; for different truck reservation systems, since the truck reservation system of this embodiment takes into account the congestion during morning and evening peak periods and the emission under congestion conditions, under the same truck turnaround time, the comprehensive truck reservation system of this embodiment can The operating cost is the lowest, and as the turnaround time of the truck is reduced, the overall operating cost is reduced more. Therefore, the congestion time cost of trucks in the morning and evening peak hours and the environmental pollution costs of truck deceleration and idling cannot be ignored in the design of the entire truck reservation system.
综上所述,本发明的考虑拥堵和排放的集卡预约系统多约束调度方法,考虑了城市交通早晚高峰期拥堵对于集卡到达时间的影响,以及集卡在减速和怠速状态下造成的环境污染成本,建立了一种基于混合整数非线性规划的集卡预约多约束调度模型,采用改进的自适应量子遗传算法进行优化求解,在获得最佳调度方案的同时,有效地为集卡公司及港口降低了运营成本,同时,该算法通过实数与量子比特编码相结合的编码方式,提高了算法初始化的速度;该算法采用动态量子旋转门及变异概率根据进化代数自主调整的策略,能够提高对集卡预约方案求解的精确度,以更快的速度选出最佳预约方案。To sum up, the multi-constraint scheduling method of the truck reservation system of the present invention that considers congestion and emissions takes into account the impact of urban traffic congestion on the arrival time of trucks during morning and evening rush hours, and the environment caused by trucks in deceleration and idling states. To solve the pollution cost, a multi-constraint scheduling model for truck reservation based on mixed integer nonlinear programming was established, and an improved adaptive quantum genetic algorithm was used to optimize the solution. The port reduces operating costs. At the same time, the algorithm improves the initialization speed of the algorithm through the combination of real number and qubit encoding. The algorithm adopts a dynamic quantum revolving gate and a strategy of autonomous adjustment of mutation probability according to evolutionary algebra, which can improve the accuracy of the algorithm. Set the accuracy of the card reservation plan solution, and select the best reservation plan at a faster speed.
尽管本发明的内容已经通过上述优选实施例作了详细介绍,但应当认识到上述的描述不应被认为是对本发明的限制。在本领域技术人员阅读了上述内容后,对于本发明的多种修改和替代都将是显而易见的。因此,本发明的保护范围应由所附的权利要求来限定。While the content of the present invention has been described in detail by way of the above preferred embodiments, it should be appreciated that the above description should not be construed as limiting the present invention. Various modifications and alternatives to the present invention will be apparent to those skilled in the art upon reading the foregoing. Accordingly, the scope of protection of the present invention should be defined by the appended claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910979382.XA CN110689155B (en) | 2019-10-15 | 2019-10-15 | Multi-constraint scheduling method of card collection reservation system considering congestion and emission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910979382.XA CN110689155B (en) | 2019-10-15 | 2019-10-15 | Multi-constraint scheduling method of card collection reservation system considering congestion and emission |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110689155A CN110689155A (en) | 2020-01-14 |
CN110689155B true CN110689155B (en) | 2022-09-06 |
Family
ID=69112759
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910979382.XA Active CN110689155B (en) | 2019-10-15 | 2019-10-15 | Multi-constraint scheduling method of card collection reservation system considering congestion and emission |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110689155B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112884383B (en) * | 2021-04-19 | 2024-04-05 | 上海海事大学 | Container port emergency material optimizing and transferring method considering time window constraint |
CN113570112B (en) * | 2021-06-30 | 2024-04-16 | 南京理工大学 | Optimization algorithm for solving vehicle path problem with time window considering cooperation |
CN113781690A (en) * | 2021-08-24 | 2021-12-10 | 天津港第二集装箱码头有限公司 | Intelligent gate system of quayside wharf loading and unloading yard |
CN114048995B (en) * | 2021-11-10 | 2024-08-02 | 上海海事大学 | Rescheduling method of integrated card reservation system considering uncertainty of arrival time |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105094970B (en) * | 2015-07-13 | 2018-07-10 | 西安电子科技大学 | The method of more times scheduling models of task can be divided under a kind of solution distributed system |
CN105096011A (en) * | 2015-09-11 | 2015-11-25 | 浙江中烟工业有限责任公司 | Improved chromosome coding based logistic transportation and scheduling method |
CN106951312B (en) * | 2016-08-31 | 2020-01-03 | 合肥工业大学 | Multi-satellite task scheduling method and system |
US11107024B2 (en) * | 2018-01-15 | 2021-08-31 | Nmetric, Llc | Genetic smartjobs scheduling engine |
CN108536536A (en) * | 2018-03-09 | 2018-09-14 | 三峡大学 | Resource consolidation and optimization system and method under a kind of cloud manufacturing environment based on quantum genetic algorithm |
CN108984298A (en) * | 2018-06-29 | 2018-12-11 | 广东工业大学 | A kind of resource regulating method and system of cloud computing platform |
CN109688154B (en) * | 2019-01-08 | 2021-10-22 | 上海海事大学 | A method for establishing a network intrusion detection model and a network intrusion detection method |
-
2019
- 2019-10-15 CN CN201910979382.XA patent/CN110689155B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110689155A (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110689155B (en) | Multi-constraint scheduling method of card collection reservation system considering congestion and emission | |
Ball et al. | Toward robust revenue management: Competitive analysis of online booking | |
CN110390349A (en) | Modeling method for forecasting bus passenger flow based on XGBoost model | |
CN107133705B (en) | Modeling of intelligent packaging services and dynamic optimization of distribution tasks for green logistics | |
CN103593747B (en) | A kind of large scale customer point classification allocator based on meanshift classification | |
CN110516871B (en) | A dynamic vehicle path optimization method based on fuzzy rolling time domain control strategy | |
CN107609816A (en) | Wisdom vehicle scheduling management system and its method of work based on mixing quantum algorithm | |
CN112734101B (en) | Sharing bicycle intelligent allocation method based on vehicle demand prediction | |
CN115204049A (en) | Multi-objective double-layer optimization method for land utilization around rail transit station | |
CN111882156A (en) | Robust optimization method for train schedules for stochastic dynamic passenger flow and energy-saving operation | |
CN110766237A (en) | Bus passenger flow prediction method and system based on SPGAPSO-SVM algorithm | |
Sun et al. | Reducing external container trucks’ turnaround time in ports: a data-driven approach under truck appointment systems | |
Gan | A logistics distribution route optimization model based on hybrid intelligent algorithm and its application | |
CN109754638B (en) | A parking space allocation method based on distributed technology | |
Ye et al. | Multi-objective optimisation for taxi ridesharing route based on non-dominated sorting genetic algorithm | |
CN116804559A (en) | A medical waste removal method based on interval multi-objective hybrid leapfrog algorithm | |
CN115310676A (en) | Path optimization method and device under time-varying road network and storage medium | |
Qu et al. | The application of Lagrange relaxation on taxi dispatchments during evening rush hours | |
CN114048995A (en) | Rescheduling method of card collection reservation system considering uncertainty of arrival time | |
Liu et al. | Research on the Parking Characteristics and Optimal Parking Space Allocation in the Expressway Service Areas: A Two-Stage Framework | |
Zhai | A Snowmelt Optimization Algorithm Applied to Green Low Carbon Logistics Pathways Optimization Problems. | |
CN109801014A (en) | Electric energy metering device dispatching scheduling method and program system based on genetic algorithm | |
Diana | Innovative systems for the transportation disadvantaged: toward more efficient and operationally usable planning tools | |
CN117494992A (en) | A logistics park pickup vehicle scheduling method based on improved SPEA2 | |
Zhang et al. | Dynamic equilibrium model of expressway toll collector based on traffic flow prediction |
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 |