Speed ​​re-planning method for route-setting ships based on improved genetic algorithm

By constructing a speed optimization model and improving the genetic algorithm, the problem of re-optimizing the speed of fixed-route ships after absorbing spot cargo was solved, achieving economic optimization within the voyage range, and improving operational efficiency and profits.

CN118586113BActive Publication Date: 2024-10-15ZHOUSHAN YONGXIANG SHIPPING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411060392.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-15
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

The existing speed planning method cannot effectively solve the problem of re-optimizing the speed of the route ship after the spot cargo is absorbed, resulting in non-maximization of operating income.

Method used

By constructing a speed optimization model, including the ship's fuel consumption prediction model, voyage cost objective function and constraint conditions, and improving the operators of the genetic algorithm to solve the speed optimization model, the optimized speed of each leg is obtained.

Benefits of technology

It realizes the re-planning of the speed of ships on fixed routes to ensure optimal economy within the voyage range, and improves operational efficiency and profits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586113B_ABST
    Figure CN118586113B_ABST
Patent Text Reader

Abstract

The invention provides a method for replanning the speed of a route-fixed ship based on an improved genetic algorithm, comprising constructing a speed optimization model, the speed optimization model comprising a fuel consumption prediction model of the ship, a voyage cost objective function and constraint conditions; based on the genetic algorithm and the demand characteristics of spot goods, the operator of the genetic algorithm is improved for the purpose of improving the optimization speed; the operator of the improved genetic algorithm is used to solve the speed optimization model to obtain the optimized speed of each section, effectively solving the speed replanning problem after the spot goods are collected, and the optimal speed can meet the economic optimization within the voyage range of the ship.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ship speed planning, and in particular to a route-setting ship speed replanning method based on an improved genetic algorithm. Background Art

[0002] In recent years, smart ships have become a new hot topic in the international maritime community. International organizations such as the International Maritime Organization (IMO) and the International Organization for Standardization (ISO) have listed smart ships as an important topic, major international classification societies have successively issued specifications or guidance documents on smart ships, and major shipbuilding countries in the world have vigorously promoted the development and application of smart ships.

[0003] One of the important features of ship intelligence is the automatic planning of sailing speed. As a commercial cargo ship with no fixed sailing schedule, the voyage route of a scheduled ship is determined by the cargo entrustment market. After the shipowner calculates the cost of the cargo route, the cargo entrustment is carried out and the route is designed to provide transportation services. During the transportation of scheduled ships, there may still be spot goods on the routes that have not been reached. When the shipowner decides to absorb the goods at a certain port at a certain time, it is a great demand to re-plan the speed of the route. The manual design method is slow to respond and cannot guarantee economic optimality. The current common speed planning methods for speed are mainly focused on liners with fixed sailing schedules. There is a lack of research on speed re-planning methods for irregular scheduled ships.

[0004] In summary, the existing technology lacks relevant research on maximizing the voyage operating income of scheduled ships by solving the speed re-optimization problem after spot futures absorption. Therefore, the present invention provides a speed re-planning method for scheduled ships based on an improved genetic algorithm. Summary of the invention

[0005] In view of the above-mentioned deficiencies, a method for replanning the speed of a route-charting ship based on an improved genetic algorithm is provided. The present invention mainly constructs a fuel consumption prediction model for a route-charting ship by collecting data from target ships; constructs an optimization objective function with economy as the goal according to the relevant operation characteristics of the route-charting ship, the channel information and the constructed fuel consumption model, and establishes constraints; constructs a speed optimization model according to the constructed optimization objective function and constraints; based on the characteristics of the genetic algorithm and the characteristics of the demand for immediate futures, the operator of the genetic algorithm is improved for the purpose of improving the optimization speed; the speed optimization model and the improved genetic algorithm are used to solve the optimal speed of the section, and the optimal speed can meet the optimal economy within the range of the ship's voyage.

[0006] The technical means adopted by the present invention are as follows:

[0007] The present invention provides a method for replanning the speed of a route-setting ship based on an improved genetic algorithm, comprising:

[0008] Constructing a speed optimization model, wherein the speed optimization model includes a fuel consumption prediction model of the ship, a voyage cost objective function and constraint conditions;

[0009] Based on the genetic algorithm and the demand characteristics of the futures contract, the operator of the genetic algorithm is improved for the purpose of improving the optimization speed;

[0010] The improved operator of the genetic algorithm is used to solve the speed optimization model to obtain the optimized speed of each section.

[0011] Preferably, the fuel consumption prediction model of the ship is calculated in the following manner:

[0012]

[0013] in, is the voyage fuel consumption, is the fuel consumption rate, is the first correction coefficient, is the second correction coefficient, is the third correction coefficient, is the fourth correction coefficient, is the sailing time, For the sailing speed.

[0014] Preferably, the voyage cost objective function is calculated in the following manner:

[0015]

[0016]

[0017]

[0018] in, is the voyage cost, is the voyage fuel cost, is a fixed cost, For fuel prices, is the voyage fuel consumption, is the total number of flight segments, is the sailing day cost, For flight segment.

[0019] Preferably, the constraint conditions include a first constraint condition, a second constraint condition, a third constraint condition and an operation constraint condition;

[0020] The first constraint condition is that the navigation speed of the section does not exceed the maximum navigation speed of the ship;

[0021] The second constraint condition is that the navigation speed of the section is not less than the minimum speed for safe navigation of the ship;

[0022] The third constraint condition is that the ship's arrival time at the port does not exceed the preset time;

[0023] The operational constraint condition is that the original estimated time to arrive at the spot port is the required time for picking up the spot goods.

[0024] Preferably, the operator of the improved genetic algorithm is calculated in the following manner:

[0025]

[0026]

[0027] in, is the shape parameter, is the maximum sailing speed of the ship, The minimum speed for safe navigation of ships. The estimated time for the shipment to arrive at the spot port. The time required for picking up the goods for the immediate futures. is the distance between the current sailing stage and the cargo pickup port, is the average sailing speed, is the first constant, is the second constant, is the scale parameter.

[0028] Preferably, the improved genetic algorithm operator is used to solve the speed optimization model to obtain the optimized speed of each section, including:

[0029] Step 1: Set the population size, maximum number of iterations, crossover value, mutation value and elite strategy threshold;

[0030] Step 2: using the improved operator of the genetic algorithm to generate a skewed random distribution parent generation according to the population size;

[0031] Step 3: Calculate the fitness of the parent generation using a fitness function;

[0032] Step 4: retain the parent with the highest fitness as an elite individual;

[0033] Step 5: randomly generate offspring according to the elite individuals, screen the offspring according to the elite strategy threshold, and replace the screened offspring with the elite individuals;

[0034] Step 6: Determine whether to perform a mutation operation based on the mutation value. If a mutation operation is performed, randomly select two chromosome codes for mutation, and use the mutation result to update the elite individual;

[0035] Step 7: judging whether to perform a crossover operation according to the crossover value; if a crossover operation is performed, randomly selecting two chromosome codes for crossover, and using the crossover result to update the elite individual;

[0036] Step 8: Use the fitness function to calculate the fitness of the elite individual, determine whether the iteration stop condition is met, and if the iteration stop condition is met, output the elite individual as the optimized speed of each section.

[0037] Preferably, the step 6 further comprises: if no mutation operation is performed, proceeding to the step 7;

[0038] The step 7 also includes: if no crossover operation is performed, entering the step 8.

[0039] Preferably, step 8 further comprises: if the iteration stop condition is not satisfied, retaining the elite individual with the highest fitness, and returning to step 5.

[0040] Preferably, the iteration stopping condition is convergence stopping, convergence reaching a generation, or meeting the maximum number of iterations.

[0041] Compared with the prior art, the present invention has the following advantages:

[0042] The method for replanning the speed of a scheduled ship based on an improved genetic algorithm provided by the present invention constructs a speed optimization model, the speed optimization model includes a fuel consumption prediction model of the ship, a voyage cost objective function and constraint conditions; based on the genetic algorithm and the demand characteristics of the spot goods, the operator of the genetic algorithm is improved for the purpose of improving the optimization speed; the operator of the improved genetic algorithm is used to solve the speed optimization model to obtain the optimized speed of each section, effectively solving the speed replanning problem after the spot goods are collected, and the optimal speed can meet the economic optimization within the voyage range of the ship. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0044] Figure 1 A schematic flow chart of a route-fixing ship speed replanning method based on an improved genetic algorithm provided by the present invention.

[0045] Figure 2 A flow chart of solving the speed optimization model using the improved genetic algorithm operator. DETAILED DESCRIPTION

[0046] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0048] Combination Figure 1 , Figure 1 A flow chart of the method for replanning the speed of a route-fixed ship based on an improved genetic algorithm provided by the present invention is provided to illustrate a specific embodiment of the method for replanning the speed of a route-fixed ship based on an improved genetic algorithm provided by the present invention, including:

[0049] Construct a speed optimization model, which includes the ship's fuel consumption prediction model, voyage cost objective function and constraints;

[0050] Based on the genetic algorithm and the demand characteristics of futures, the genetic algorithm operator is improved to improve the optimization speed;

[0051] The operator of the improved genetic algorithm is used to solve the speed optimization model and obtain the optimized speed of each section.

[0052] It can be understood that by collecting data from the target ship, a fuel consumption prediction model for the ship is constructed, and by constructing a speed optimization model, the speed optimization model includes the ship's fuel consumption prediction model, the voyage cost objective function and constraints; based on the genetic algorithm and the demand characteristics of the spot goods, the operator of the genetic algorithm is improved for the purpose of improving the optimization speed; the operator of the improved genetic algorithm is used to solve the speed optimization model, and the optimized speed of each section is obtained, which effectively solves the speed re-planning problem after the spot goods are collected, and the optimal speed can meet the economic optimization within the range of the ship's voyage, providing shipping companies with technical support for intelligent speed planning.

[0053] In some optional embodiments, the fuel consumption prediction model of the ship is calculated in the following manner:

[0054]

[0055] in, is the voyage fuel consumption, is the fuel consumption rate, is the first correction coefficient, is the second correction coefficient, is the third correction coefficient, is the fourth correction coefficient, For the sailing time, For the sailing speed.

[0056] Specifically, the first correction coefficient , the second correction coefficient , the third correction factor and the fourth correction factor The determination method is as follows: Through actual measurement, the fuel consumption rate of the ship at different speeds is obtained in advance (i.e. fuel consumption per unit time), the relationship between fuel consumption rate and navigation speed is fitted by a cubic curve to obtain the first to fourth correction coefficients.

[0057] In some optional embodiments, the voyage cost objective function is calculated as follows:

[0058]

[0059]

[0060]

[0061] in, is the voyage cost, is the voyage fuel cost, is a fixed cost, For fuel prices, is the voyage fuel consumption, is the total number of flight segments, is the sailing day cost, For flight segment.

[0062] In some optional embodiments, the constraints include a first constraint, a second constraint, a third constraint, and an operational constraint;

[0063] The first constraint is that the navigation speed of the section does not exceed the maximum navigation speed of the ship;

[0064] The second constraint condition is that the navigation speed of the section shall not be lower than the minimum speed for safe navigation of the ship;

[0065] The third constraint is that the ship's arrival time at the port does not exceed the preset time;

[0066] The operational constraint is that the original estimated time to arrive at the spot port is the required time for picking up the spot goods.

[0067] It is understood that the constraints can be calculated as follows:

[0068]

[0069]

[0070] K =1,2,3,4,..., n

[0071]

[0072] in, It means that the arrival time at each port must not be later than the scheduled time; It means that the navigation speed shall not be less than the minimum speed for safe navigation of the ship, and shall not be greater than the maximum navigation speed of the ship; K =1,2,3,4,..., n, Indicates the flight segment number. n is the total number of flight segments, It means that the original estimated time to arrive at the spot port is the required time to pick up the spot goods.

[0073] In some optional embodiments, the operator of the improved genetic algorithm is calculated in the following manner:

[0074]

[0075]

[0076] in, is the shape parameter, is the maximum sailing speed of the ship, The minimum speed for safe navigation of ships. The estimated time for the shipment to arrive at the spot port. The time required for picking up the goods for the immediate futures. is the distance between the current sailing stage and the pickup port, is the average sailing speed, is the first constant, is the second constant.

[0077] It can be understood that in this embodiment, is the scale parameter, = 6. The first constant Take 1.1, the second constant The value is 14, but it is not limited thereto. The values ​​of the first constant and the second constant can be adjusted according to actual needs.

[0078] In some optional embodiments, referring to Figure 2 , Figure 2 The figure is a flow chart of using the improved genetic algorithm operator to solve the speed optimization model. The improved genetic algorithm operator is used to solve the speed optimization model to obtain the optimized speed of each section, including:

[0079] Step 1: Set the population size, maximum number of iterations, crossover value, mutation value and elite strategy threshold;

[0080] Step 2, using the operator of the improved genetic algorithm to generate a skewed random distribution parent generation according to the population size;

[0081] Step 3: Use the fitness function to calculate the fitness of the parent generation;

[0082] Step 4: Keep the parent with the highest fitness as the elite individual;

[0083] Step 5: Randomly generate offspring based on elite individuals, screen offspring based on elite strategy thresholds, and replace the screened offspring with elite individuals;

[0084] Step 6: Determine whether to perform a mutation operation based on the mutation value. If a mutation operation is performed, two chromosome codes are randomly selected for mutation, and the elite individuals are updated using the mutation results.

[0085] Step 7: Determine whether to perform a crossover operation based on the crossover value. If a crossover operation is performed, randomly select two chromosome codes for crossover, and use the crossover result to update the elite individual;

[0086] Step 8: Use the fitness function to calculate the fitness of the elite individual and determine whether the iteration stop condition is met. If the iteration stop condition is met, output the elite individual as the optimized speed for each section.

[0087] Specifically, step 6 further includes: if no mutation operation is performed, proceeding to step 7;

[0088] Step 7 also includes: if no crossover operation is performed, proceed to step 8.

[0089] Step 8 also includes: if the iteration stop condition is not met, retaining the elite individual with the highest fitness and returning to step 5.

[0090] In some optional embodiments, the iteration stopping condition is convergence stopping, convergence reaching a generation, or meeting a maximum number of iterations.

[0091] In some optional embodiments, continue to refer to Figure 2 , genetic algorithms can well integrate the influence of wind interference and wave interference on the route of scheduled ships, and establish a speed optimization model that takes into account shipping costs and sailing time at the same time to meet the goal of economy. It also meets the shipping companies' demand for cost reduction. However, due to the complexity of the operating model of scheduled ships, there are the following prominent difficulties in re-optimizing the speed of scheduled ships:

[0092] 1. The optimization model requires the required objective function to formulate appropriate and sufficient parameters for various indicators of ship navigation.

[0093] 2. The huge optimization calculation process relies on genetic algorithms. However, whether the optimization result is ideal depends closely on the selection of "population size", "population algebra", "crossover probability" and "mutation probability" in the algorithm. For example, too many algebra selections will cause the algorithm operation time to be too long, and too few algebra selections will make the optimization result less than ideal. The selection of the other three variables also affects the ideality of the optimization result.

[0094] 3. Since the speed re-optimization problem caused by the absorption of spot futures in the middle of the scheduled route needs to be immediate, reducing the optimization time is an important indicator.

[0095] Therefore, the problem to be solved by the present invention is to provide a speed re-optimization model for fixed-route ships after spot futures absorption, and to plan the average speed of the ship based on the results of the genetic algorithm, so as to achieve the purpose of maximizing the benefits of voyage route operations.

[0096] Specifically, refer to Figure 2In the process of establishing the genetic algorithm for speed optimization, whether the optimization result is ideal is closely related to the selection of "population size", "population algebra", "crossover probability" and "mutation probability" in the algorithm. For example, too many algebra selections will cause the algorithm operation time to be too long, and too few algebra selections will make the convergence degree less than ideal. In this embodiment, when the population is initialized, the individual encoding is real number encoding, the population size is set to 1000, the maximum number of iterations is set to 15, the crossover probability is set to 0.2, and the mutation probability is set to 0.2.

[0097] Furthermore, in a specific embodiment of the present invention, after completing the steps of constructing the parameter model and writing the algorithm, it is necessary to optimize the specific case. The specific process requires collecting ship parameters such as the length, width, draft, and gross tonnage, setting the correction parameters, and dividing the route into several appropriate segments according to the channel information.

[0098] The present invention innovates a method for re-optimizing the speed of route-fixed ships and improves the genetic algorithm for the purpose of increasing the optimization speed. It is expected to provide a new method for reducing the operating costs of route-fixed ships and a new idea for shipping companies.

[0099] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0100] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for replanning the speed of a route-setting ship based on an improved genetic algorithm, characterized in that: include: Constructing a speed optimization model, wherein the speed optimization model includes a fuel consumption prediction model of the ship, a voyage cost objective function and constraint conditions; Based on the genetic algorithm and the demand characteristics of the spot futures, the operator of the genetic algorithm is improved for the purpose of improving the optimization speed. The demand characteristics of the spot futures include the original estimated time to the spot futures port and the required time to pick up the spot futures. The operator of the improved genetic algorithm is calculated in the following way: in, is the shape parameter, is the maximum sailing speed of the ship, The minimum speed for safe navigation of ships. The estimated time for the shipment to arrive at the spot port. The time required for picking up the goods for the immediate futures. is the distance between the current sailing stage and the pickup port, is the average sailing speed, is the first constant, is the second constant, is the scale parameter; The improved operator of the genetic algorithm is used to solve the speed optimization model to obtain the optimized speed of each section.

2. The method for replanning the speed of a route-fixed ship based on an improved genetic algorithm according to claim 1, characterized in that: The fuel consumption prediction model of the ship is calculated in the following way: in, is the voyage fuel consumption, is the fuel consumption rate, is the first correction coefficient, is the second correction coefficient, is the third correction coefficient, is the fourth correction coefficient, is the sailing time, For the sailing speed.

3. The method for replanning the speed of a route-fixed ship based on an improved genetic algorithm according to claim 1 or 2, characterized in that: The voyage cost objective function is calculated as follows: in, is the voyage cost, is the voyage fuel cost, is a fixed cost, For fuel prices, is the voyage fuel consumption, is the total number of flight segments, is the sailing day cost, For flight segment.

4. The method for replanning the speed of a route-fixed ship based on an improved genetic algorithm according to claim 1 or 2, characterized in that: The constraints include a first constraint, a second constraint, a third constraint and an operation constraint; The first constraint condition is that the navigation speed of the section does not exceed the maximum navigation speed of the ship; The second constraint condition is that the navigation speed of the section is not less than the minimum speed for safe navigation of the ship; The third constraint condition is that the ship's arrival time at the port does not exceed the preset time; The operational constraint condition is that the original estimated time to arrive at the spot port is the required time for picking up the spot goods.

5. The method for replanning the speed of a route-fixed ship based on an improved genetic algorithm according to claim 1, characterized in that: The improved genetic algorithm operator is used to solve the speed optimization model to obtain the optimized speed of each section, including: Step 1: Set the population size, maximum number of iterations, crossover value, mutation value and elite strategy threshold; Step 2: using the improved operator of the genetic algorithm to generate a skewed random distribution parent generation according to the population size; Step 3: Calculate the fitness of the parent generation using a fitness function; Step 4: retain the parent with the highest fitness as an elite individual; Step 5: randomly generate offspring according to the elite individuals, screen the offspring according to the elite strategy threshold, and replace the screened offspring with the elite individuals; Step 6: Determine whether to perform a mutation operation based on the mutation value. If a mutation operation is performed, randomly select two chromosome codes for mutation, and use the mutation result to update the elite individual; Step 7: judging whether to perform a crossover operation according to the crossover value; if a crossover operation is performed, randomly selecting two chromosome codes for crossover, and using the crossover result to update the elite individual; Step 8: Use the fitness function to calculate the fitness of the elite individual, determine whether the iteration stop condition is met, and if the iteration stop condition is met, output the elite individual as the optimized speed of each section.

6. The method for replanning the speed of a route-fixed ship based on an improved genetic algorithm according to claim 5, characterized in that: The step 6 also includes: if no mutation operation is performed, proceeding to the step 7; The step 7 also includes: if no crossover operation is performed, entering the step 8.

7. The method for replanning the speed of a route-fixed ship based on an improved genetic algorithm according to claim 5, characterized in that: The step 8 also includes: if the iteration stop condition is not met, retaining the elite individual with the highest fitness, and returning to the step 5.

8. The method for replanning the speed of a route-fixed ship based on an improved genetic algorithm according to claim 5, characterized in that: The iteration stopping condition is that convergence stops, convergence reaches a generation, or the maximum number of iterations is met.