Ship optimization design method and device and storage medium

Through the pre-trained ship profile optimization model and heuristic optimization algorithm, the problem of low profile design efficiency in ship design is solved, the automated design process is realized, and the design efficiency and reliability are improved.

CN118529220AActive Publication Date: 2024-08-23CHINA SHIPBUILDING ORLANDO WUXI SOFTWARE TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410679474.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-08-23
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

The low efficiency of ship design line design makes the entire design process cumbersome and time-consuming. Especially when calculating hydrodynamic performance, the calculation progress cannot be monitored, which affects the design efficiency.

Method used

Using a pre-trained ship profile optimization model, the neural network model is combined with a heuristic optimization algorithm to optimize based on multiple sets of ship profile parameters and hydrodynamic calculation results to generate profile target parameters that match the hydrodynamic performance target and realize an automated design process. .

Benefits of technology

It significantly improves the efficiency of ship design, shortens the hydrodynamic calculation time, and improves the reliability and efficiency of the design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118529220A
    Figure CN118529220A
Patent Text Reader

Abstract

The invention relates to the technical field of equipment manufacturing and computers, and particularly discloses a ship optimization design method and device and a storage medium, and the method comprises the steps: determining ship hydrodynamic performance target information according to a ship design target; inputting the ship hydrodynamic performance target information into a pre-trained ship profile optimization model to obtain ship profile target parameters matched with the ship hydrodynamic performance target information; ship design is completed according to the ship molded line target parameters; wherein the pre-trained ship profile optimization model is obtained by training through a neural network model and optimizing through a heuristic optimization algorithm according to multiple groups of corresponding ship profile parameters and hydrodynamic calculation results. According to the ship optimization design method, the molded line design efficiency is improved, and then the ship design efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of equipment manufacturing and computer technology, and in particular to a ship optimization design method, a ship optimization design device and a storage medium. Background Art

[0002] In the early stages of ship design, designers usually transform the lines of a standard mother ship by stretching, compressing and other operations on the mother ship's lines, and then calculate the wave-making resistance coefficient of the new lines. The entire design process is cumbersome and repetitive, and consumes a lot of time.

[0003] The new line needs to calculate the hydrodynamic performance. When using commercial software for hydrodynamic calculation, it takes a long time, and repeated settings are required under different working conditions. The calculation progress cannot be monitored and the entire calculation process is uncontrollable. When using intelligent optimization algorithms for optimization calculations, it involves population iteration, and the time-consuming simulation calculation will be highlighted. How to realize the automatic operation of the calculation and shorten the hydrodynamic calculation time is particularly important.

[0004] Therefore, how to improve the efficiency of mid-line design in ship design has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0005] The present invention provides a ship optimization design method, a ship optimization design device and a storage medium, which solve the problem of low ship design efficiency caused by low mid-line design efficiency in ship design existing in the related art.

[0006] As a first aspect of the present invention, a ship optimization design method is provided, which comprises:

[0007] Determine the target information of ship hydrodynamic performance according to the ship design objectives;

[0008] Inputting the ship hydrodynamic performance target information into a pre-trained ship line optimization model to obtain ship line target parameters matching the ship hydrodynamic performance target information;

[0009] Complete ship design according to the target ship line parameters;

[0010] The pre-trained ship line optimization model is obtained by training a neural network model based on multiple groups of corresponding ship type parameters and hydrodynamic calculation results and optimizing through a heuristic optimization algorithm.

[0011] Furthermore, the pre-trained ship line optimization model is obtained by training a neural network model and optimizing it through a heuristic optimization algorithm according to multiple groups of corresponding ship type parameters and hydrodynamic calculation results, including:

[0012] Obtaining a design matrix based on the ship's variable control points;

[0013] The ship's mother ship type line is deformed by radial basis function to obtain a deformed new line;

[0014] Iterative calculation is performed according to the design matrix and the ship type parameters of the deformed new line to obtain a hydrodynamic calculation result;

[0015] The neural network model is trained according to the ship type parameters of the deformed new line and the hydrodynamic calculation results to obtain a neural network model to be optimized;

[0016] The neural network model to be optimized is optimized by performing optimization calculation according to the heuristic optimization algorithm to obtain a pre-trained ship line optimization model.

[0017] Furthermore, a design matrix is ​​obtained according to the variable control points of the ship, including:

[0018] Determining at least part of the bow movable control points as ship variable control points, wherein the ship is divided into ship fixed control points and bow movable control points;

[0019] Determining the constraint range of the variable control point of the ship;

[0020] The design matrix is ​​obtained by stratified sampling through Latin hypercube sampling according to the constraint range of the variable control points of the ship.

[0021] Furthermore, the ship type parameters of the new type of lines after deformation are obtained by deforming the ship type lines through radial basis functions, including:

[0022] The mother ship type line of the ship is expressed parameterically, and the fixed control point of the ship and the movable control point of the bow are expressed parameterically;

[0023] According to the radial basis function, the design variables of the bow moving control points as the variable control points of the ship are changed to obtain the deformed new lines.

[0024] Further, iterative calculation is performed according to the design matrix and the ship type parameters of the deformed new line to obtain hydrodynamic calculation results, including:

[0025] Determine the ship type parameters and the number of iteration steps of the new type line after deformation, wherein the ship type parameters include ship length, molded depth and molded width;

[0026] The design matrix is ​​iteratively calculated according to a preset number of iteration steps to obtain a hydrodynamic calculation result, which at least includes the wave-making resistance of the hull and the fluid characteristics around the hull.

[0027] Furthermore, a neural network model is trained according to the ship type parameters of the deformed new line and the hydrodynamic calculation results to obtain a neural network model to be optimized, including:

[0028] Determining an objective to be optimized in the hydrodynamic calculation result, wherein the objective to be optimized in the hydrodynamic calculation result at least includes the wave-making resistance of the hull and / or the fluid characteristics around the hull;

[0029] The neural network model is trained according to the target to be optimized in the hydrodynamic calculation result and the ship type parameters of the new type line after deformation to obtain the neural network model to be optimized.

[0030] Further, the neural network model is trained according to the target to be optimized in the hydrodynamic calculation result and the ship type parameters of the deformed new line to obtain the neural network model to be optimized, including:

[0031] Screening the target to be optimized in the hydrodynamic calculation results according to preset screening conditions to obtain valid data of the target to be optimized, wherein the preset screening conditions at least include prior knowledge and design specifications;

[0032] The neural network model is trained according to the effective data of the target to be optimized and the ship type parameters of the deformed new line to obtain the neural network model to be optimized.

[0033] Further, the neural network model to be optimized is optimized by performing optimization calculation according to the heuristic optimization algorithm to obtain a pre-trained ship line optimization model, including:

[0034] Determining design variables according to the variable control points of the ship, and determining target variables according to the target to be optimized in the hydrodynamic calculation results;

[0035] Determining the algorithm type of the heuristic optimization algorithm and algorithm parameters corresponding to the algorithm type, wherein the algorithm type includes any one of a genetic algorithm, a simulated annealing method and an ant colony algorithm, and the algorithm parameters include a population, a crossover rate and a mutation rate;

[0036] The neural network model to be optimized is called according to the determined algorithm type, algorithm parameters, design variables and target variables to perform optimization calculations to obtain a pre-trained ship line optimization model.

[0037] As another aspect of the present invention, a ship optimization design device is provided, which is used to implement the ship optimization design method described above, and includes:

[0038] A determination module, used to determine target information of ship hydrodynamic performance according to ship design objectives;

[0039] An acquisition module, used for inputting the ship hydrodynamic performance target information into a pre-trained ship line optimization model to obtain ship line target parameters matching the ship hydrodynamic performance target information;

[0040] A design module, used to complete the ship design according to the target parameters of the ship line;

[0041] The pre-trained ship line optimization model is obtained by training a neural network model based on multiple groups of corresponding ship type parameters and hydrodynamic calculation results and optimizing through a heuristic optimization algorithm.

[0042] As another aspect of the present invention, a storage medium is provided, which is used to store computer instructions, and when the computer instructions are loaded and executed by a processor, the ship optimization design method described above is implemented.

[0043] The ship optimization design method provided by the present invention determines the ship hydrodynamic performance target information according to the ship design target, and then obtains the ship line target parameters matching the ship hydrodynamic performance target information based on the pre-trained ship line optimization model, and finally completes the ship design based on the ship line target parameters. Before the ship design, the neural network model is trained by multiple groups of corresponding ship type parameters and hydrodynamic calculation results, and then the pre-trained ship line optimization model is obtained by a heuristic optimization algorithm. The obtained pre-trained ship line optimization model can be directly used to obtain the ship line target parameters. The ship optimization design method can effectively improve the efficiency of ship design, and because the pre-trained ship line optimization model is obtained by training based on multiple groups of matching ship type parameters and hydrodynamic calculation results, and the model is optimized by a heuristic optimization algorithm, the reliability of ship design can also be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.

[0045] Figure 1 The present invention provides a flow chart of the ship optimization design method.

[0046] Figure 2 A flow chart for obtaining the pre-trained ship line optimization model provided by the present invention.

[0047] Figure 3a This is a schematic diagram of the division of ship fixed points provided by the present invention.

[0048] Figure 3b A flow chart for obtaining the design matrix provided for the present invention.

[0049] Figure 4 A schematic diagram of Latin hypercube sampling provided by the present invention.

[0050] Figure 5 The Latin hypercube sampling flow chart provided by the present invention.

[0051] Figure 6 A schematic diagram of the classification of basis function expressions provided by the present invention.

[0052] Figure 7 A flow chart for obtaining the ship type parameters of the new type line after deformation provided by the present invention.

[0053] Figure 8 A flow chart for obtaining hydrodynamic calculation results provided by the present invention.

[0054] Fig. 9 The present invention provides a flow chart of hydrodynamic calculation.

[0055] Fig.10 A flowchart for obtaining a neural network model to be optimized provided by the present invention.

[0056] Fig.11 A schematic diagram of a three-layer perception model of the neural network model provided by the present invention.

[0057] Fig.12 This is a flow chart of the heuristic optimization algorithm provided by the present invention.

[0058] Fig.13 The present invention provides a flowchart for obtaining an optimal profile by using a heuristic optimization algorithm to perform optimization calculations on a neural network model to be optimized.

[0059] Fig.14 This is a structural block diagram of the ship optimization design device provided by the present invention.

[0060] Fig.15 This is a structural block diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0061] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0062] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment 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 making creative work should fall within the scope of protection of the present invention.

[0063] 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 as to describe the embodiments of the present invention 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 clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0064] In this embodiment, a ship optimization design method is provided. Figure 1 is a flow chart of a ship optimization design method provided according to an embodiment of the present invention. Figure 1 As shown, including:

[0065] S100, determining target information of hydrodynamic performance of the ship according to the design target of the ship;

[0066] In an embodiment of the present invention, the ship design goal can be specifically understood as the performance requirements that the ship needs to achieve, mainly including hydrodynamic performance. Therefore, based on the ship design goal, the ship hydrodynamic performance target information can be determined, that is, the ship hydrodynamic performance target information that needs to be achieved by the current ship design can be determined.

[0067] S200, inputting the ship hydrodynamic performance target information into a pre-trained ship line optimization model to obtain ship line target parameters matching the ship hydrodynamic performance target information;

[0068] After determining the target information of the ship's hydrodynamic performance, the ship's hydrodynamic performance target information is input as input information into a pre-trained ship line optimization model. Since the pre-trained ship line optimization model is trained based on multiple sets of corresponding ship parameters and hydrodynamic calculation results, when the ship's hydrodynamic performance target information is input, the ship line target parameters corresponding to the ship's hydrodynamic performance target information can be obtained, and the ship design can be achieved based on the ship line target parameters.

[0069] S300, completing ship design according to the ship line target parameters;

[0070] The pre-trained ship line optimization model is obtained by training a neural network model based on multiple groups of corresponding ship type parameters and hydrodynamic calculation results and optimizing through a heuristic optimization algorithm.

[0071] The ship optimization design method provided by the present invention determines the ship hydrodynamic performance target information according to the ship design target, and then obtains the ship line target parameters matching the ship hydrodynamic performance target information based on the pre-trained ship line optimization model, and finally completes the ship design based on the ship line target parameters. Before the ship design, the neural network model is trained by multiple groups of corresponding ship type parameters and hydrodynamic calculation results, and then the pre-trained ship line optimization model is obtained by a heuristic optimization algorithm. The obtained pre-trained ship line optimization model can be directly used to obtain the ship line target parameters. The ship optimization design method can effectively improve the efficiency of ship design, and because the pre-trained ship line optimization model is obtained by training based on multiple groups of matching ship type parameters and hydrodynamic calculation results, and the model is optimized by a heuristic optimization algorithm, the reliability of ship design can also be improved.

[0072] In an embodiment of the present invention, the pre-trained ship line optimization model is obtained by training a neural network model and optimizing it through a heuristic optimization algorithm according to multiple groups of corresponding ship type parameters and hydrodynamic calculation results, such as Figure 2 As shown, including:

[0073] S210, obtaining a design matrix according to the variable control points of the ship;

[0074] In the embodiment of the present invention, Figure 3a As shown, the ship is divided into fixed control points and bow movable control points. Specifically, the design matrix is ​​obtained according to the variable control points of the ship, such as Figure 3b As shown, including:

[0075] S211, determining at least part of the bow movement control points as variable control points of the ship;

[0076] In the embodiment of the present invention, some control points that need to be deformed among the bow movement control points can be determined as ship variable control points, and a stretching operation is performed on the ship variable control points.

[0077] S212, determining the constraint range of the variable control point of the ship;

[0078] In the embodiment of the present invention, the constraint range of the variable control points of the ship is determined, that is, the stretching operation range of these variable control points is determined.

[0079] S213, performing stratified sampling by Latin hypercube sampling according to the constraint range of the variable control points of the ship to obtain a design matrix.

[0080] The design matrix was obtained by stratified sampling through Latin hypercube sampling within the constraints.

[0081] like Figure 4 As shown in FIG. 1 , a schematic diagram of Latin hypercube sampling provided by the present invention is shown. Figure 5 As shown, it is a Latin hypercube sampling flow chart, including:

[0082] S1: Divide each dimension into m non-overlapping intervals so that each interval has the same probability;

[0083] S2: randomly select a point in each interval in each dimension;

[0084] S3: Randomly extract the points selected in S2 from each dimension and form them into vectors.

[0085] The design matrix can be determined through the above Latin hypercube sampling process.

[0086] S220, deforming the mother ship type line through radial basis function to obtain a deformed new line;

[0087] It should be understood that in order to realize the profile transformation, the radial basis function can be transformed into a mathematical expression and then obtained.

[0088] It should be noted here that the radial basis function is a scalar function that is radially symmetric and is usually defined as the distance from any point P in space to a certain center P. i The Euclidean distance between them is expressed as:

[0089] δ(||PP i ||)i=1,2,...,n,

[0090] Among them, P i represents the center of the function, ||PP i || means P to P i The Euclidean distance of δ(x) is expressed as ||PP i || is a function of the independent variable. Figure 6 The δ(x) basis function expressions shown can be divided into two categories, fully supported basis functions and compactly supported basis functions. The selection of basis functions must satisfy the requirement that the equation has a solution and the system of equations is stable.

[0091] Since the ship-shaped surface is constructed using a rectangular control point matrix, and the movement of each control point is described using the corresponding basis function, the surface mathematical model can be constructed by superposing basis functions.

[0092] Specifically, the ship's mother ship type line is deformed by the radial basis function to obtain the ship type parameters of the deformed new line, such as Figure 7 As shown, including:

[0093] S221, parametrically expressing the mother ship type line of the ship, and parametrically expressing the fixed control point of the ship and the bow movable control point;

[0094] S222: performing a change process on the design variables of the bow movement control points as the variable control points of the ship according to the radial basis function to obtain a deformed new line.

[0095] It should be understood that, in the embodiment of the present invention, the geometric shape is changed by moving the bow variable control point, thereby generating a new type of line.

[0096] S230, performing iterative calculation according to the design matrix and the ship type parameters of the deformed new line to obtain a hydrodynamic calculation result;

[0097] In the embodiment of the present invention, the hydrodynamic calculation result can be obtained by performing iterative calculation based on the design matrix and the ship type parameters of the deformed new line.

[0098] Specifically, the hydrodynamic calculation results are obtained by iteratively calculating the design matrix and the ship type parameters of the deformed new line, such as Figure 8 As shown, including:

[0099] S231, determining the ship type parameters and the number of iteration steps of the new type line after deformation, wherein the ship type parameters include ship length, molded depth and molded breadth;

[0100] S232. Iteratively calculate the design matrix according to a preset number of iteration steps to obtain a hydrodynamic calculation result, wherein the hydrodynamic calculation result at least includes the wave-making resistance of the hull and the fluid characteristics around the hull.

[0101] Fig. 9 It is a flow chart of hydrodynamic calculation provided by the present invention, such as Fig. 9 As shown:

[0102] First, determine the ship parameters, such as length, depth, and width;

[0103] Then, determine the indicator to be optimized as wave resistance;

[0104] Secondly, according to the ShipFlow software tutorial specifications, write calculation scripts to achieve parameterized operation;

[0105] Finally, the ShipFlow software is called to automatically iterate the design matrix, and the XPAN module (potential flow calculation and solution) of the ShipFlow software is called to obtain the wave-making resistance of the hull and the characteristics of the fluid around the hull.

[0106] S240, training a neural network model according to the ship type parameters of the deformed new line and the hydrodynamic calculation results to obtain a neural network model to be optimized.

[0107] In an embodiment of the present invention, the ship type parameters of the deformed new type line can be used as input, and the hydrodynamic calculation results can be used as output. By training the neural network model with multiple sets of such corresponding ship type parameters and hydrodynamic calculation results, the neural network model to be optimized can be obtained.

[0108] Specifically, the neural network model is trained according to the ship type parameters of the deformed new line and the hydrodynamic calculation results to obtain the neural network model to be optimized, such as Fig.10 As shown, including:

[0109] S241, determining an object to be optimized in the hydrodynamic calculation result, wherein the object to be optimized in the hydrodynamic calculation result at least includes the wave-making resistance of the hull and / or the fluid characteristics around the hull;

[0110] In the embodiment of the present invention, the target to be optimized in the hydrodynamic calculation result may specifically be the wave-making resistance of the hull.

[0111] S242, training the neural network model according to the target to be optimized in the hydrodynamic calculation result and the ship type parameters of the new type line after deformation, to obtain the neural network model to be optimized.

[0112] In an embodiment of the present invention, taking the commercial software automatic iterative design matrix to realize wave-making resistance calculation as an example, the ship type parameters of the deformed new line are taken as input, and the wave-making resistance coefficient is taken as output to use the neural network model for training to obtain the neural network model to be optimized.

[0113] Specifically, the neural network model is trained according to the target to be optimized in the hydrodynamic calculation result and the ship type parameters of the deformed new line to obtain the neural network model to be optimized, including:

[0114] Screening the target to be optimized in the hydrodynamic calculation results according to preset screening conditions to obtain valid data of the target to be optimized, wherein the preset screening conditions at least include prior knowledge and design specifications;

[0115] The neural network model is trained according to the effective data of the target to be optimized and the ship type parameters of the deformed new line to obtain the neural network model to be optimized.

[0116] It should be understood that the wave-making resistance is still taken as the target to be optimized in the hydrodynamic calculation results. By screening the hydrodynamic calculation results through prior knowledge, design specifications, etc., the wave-making resistance coefficients that do not meet the conditions can be defined as bad points and removed, and only valid data are retained.

[0117] In the embodiment of the present invention, whether it is the effective data of the target to be optimized or the ship type parameters of the new line after deformation, when training through the neural network model, the data are all nonlinearly transformed from the input layer through multiple hidden layers, and finally reach the output layer for classification or regression operation. The back propagation algorithm is used to calculate the gradient of the loss function to the network parameters, and the parameters are updated according to the gradient to minimize the loss function. Finally, the neural network model to be optimized is obtained.

[0118] It should be noted that the multi-layer perceptron in the neural network model in the embodiment of the present invention may specifically include a three-layer model, such as Fig.11 As shown, the first layer is the input layer, the second layer is the hidden layer, and the third layer is the output layer.

[0119] The output of the hidden layer is f(wx+b), where w represents weight and b represents bias. The initial weight and bias take random values ​​between [0,1]. The activation function f selects the sigmoid function:

[0120] The output of the output layer is: softmax(w 2 X 1 +b 2 ), where X 1 represents the output of the hidden layer.

[0121] S250, performing optimization calculation on the neural network model to be optimized according to the heuristic optimization algorithm to obtain a pre-trained ship line optimization model.

[0122] In the embodiment of the present invention, a heuristic optimization algorithm is used to numerically optimize the neural network model to be optimized. Fig.12 This is the flow chart of the heuristic optimization algorithm, such as Fig.12 As shown:

[0123] First encode: use binary encoding.

[0124] Then initialize the population: use a random population to initialize the evolutionary algorithm.

[0125] Evaluate the fitness of the individuals in the population again: call the simulation process to calculate the wave-making resistance coefficient.

[0126] Final selection (tournament selection): select k individuals from the population with equal probability, select the individual with the best fitness (smallest error) as the parent according to the fitness value of each individual, and repeat this process until the specified number of individuals are selected. If the individual with the strongest fitness (smallest total error) is selected to participate in the tournament, it will be selected with a 100% probability; if an ordinary individual x is selected to participate in the tournament, it must be more fit than the other k individuals to be selected. In the absence of prior knowledge, x has The probability of being selected.

[0127] Crossover (simulated binary crossover): specifically refers to the operation of replacing part of the structure of two parent individuals to generate new individuals, thereby improving the search capability. Before the crossover operation, the individuals in the group must be paired. The currently commonly used pairing strategy is random pairing, that is, pairing the individuals in the group in pairs in a random manner, and the crossover operation is performed between the paired individuals.

[0128] Simulate binary crossover through the parent S a and S b To produce offspring Q 1 and Q 2 :

[0129]

[0130] Among them, S a (k) represents the kth parameter, S b (k), Q 1 (k), Q 2 (k) is similar, β k is a random number generated by the following probability density function:

[0131]

[0132] Among them, η c Represents any non-negative real number.

[0133] Mutation (Gaussian mutation): Mutation is the process of replacing certain genes in the chromosome coding string with other genes. It is an indispensable part of the genetic algorithm. Its purpose is to improve the local search ability of the genetic algorithm, maintain the diversity of the population, and prevent premature maturation.

[0134] The Gaussian mutation method is to generate a random number that obeys the Gaussian distribution to replace the real value in the previous gene. The mathematical expectation of the random number generated by this algorithm is the real value of the current gene. Assuming that a chromosome consists of two parts (x, σ), where the first component x represents a point in the search space and the second component represents the variance σ, its offspring individuals are generated as follows:

[0135] σ′=σe N(0,Δσ) ,

[0136] x′=x+N(0,Δσ′),

[0137] Among them, N(0,Δσ′) represents a Gaussian function with mean 0 and variance σ′.

[0138] The iterative process is repeated until the termination condition or the optimal goal is reached.

[0139] In an embodiment of the present invention, performing optimization calculation on the neural network model to be optimized according to the heuristic optimization algorithm to obtain a pre-trained ship line optimization model includes:

[0140] Determining design variables according to the variable control points of the ship, and determining target variables according to the target to be optimized in the hydrodynamic calculation results;

[0141] Determining the algorithm type of the heuristic optimization algorithm and algorithm parameters corresponding to the algorithm type, wherein the algorithm type includes any one of a genetic algorithm, a simulated annealing method and an ant colony algorithm, and the algorithm parameters include a population, a crossover rate and a mutation rate;

[0142] The neural network model to be optimized is called according to the determined algorithm type, algorithm parameters, design variables and target variables to perform optimization calculations to obtain a pre-trained ship line optimization model.

[0143] Specifically, in the embodiment of the present invention, a heuristic optimization algorithm is used to perform optimization calculation to obtain the optimal profile. Fig.13 The flowchart of using the heuristic optimization algorithm to calculate the optimal line of the neural network model to be optimized is as follows: Fig.13 As shown:

[0144] 1) Design variable setting: variable control points that need to be stretched and deformed, i.e., the variable control points of the ship mentioned above;

[0145] 2) Target variable setting: In the embodiment of the present invention, the wave-making resistance coefficient is taken as an example;

[0146] 3) Constraint setting: This optimization problem is an unconstrained optimization, so no constraints are set;

[0147] 4) Optimize algorithm selection and make high-level settings, such as population, crossover rate, mutation rate, etc.

[0148] 5) Call the efficient proxy model for automatic calculation;

[0149] 6) Find the optimal line solution.

[0150] In summary, the ship optimization design method provided by the present invention can quickly generate a design matrix through Latin hypercube sampling, use radial basis (RBF) to transform the mother ship's line, call the business software to iterate the design matrix and generate results, use the neural network algorithm to train the calculation results and generate a neural network model to be optimized, and can select and set the optimization algorithm, set the design variables, target variables and constraints, and call the optimization process generated by the training to carry out numerical optimization to generate a pre-trained ship line optimization model. The ship optimization design method provided by the present invention can save a lot of time for ship designers in the initial design stage of ships and improve the efficiency of ship design.

[0151] In addition, the ship optimization design method provided by the present invention also has the following advantages:

[0152] (1) The sampling methods are diverse and expandable.

[0153] When optimizing designs for different objectives, the selected design variables are different, so the selected sampling methods are also different when exploring the space of design variables. The present invention provides an extended interface for sampling methods, and the sampling methods can be selected according to different problems to be solved.

[0154] (2) Neural network training model

[0155] The calculation results and the corresponding inputs are trained using a neural network to obtain a neural network model to be optimized. Optimizing and searching through the neural network model to be optimized can save a lot of time while obtaining equivalent results.

[0156] (3) Heuristic Optimization Algorithm

[0157] The embodiment of the present invention uses an intelligent heuristic optimization algorithm to optimize the wave-making resistance coefficient, etc. For nonlinear problems with many design variables in ship optimization problems, intelligent optimization can be performed to avoid falling into local optimality.

[0158] As another embodiment of the present invention, a ship optimization design device 100 is provided for implementing the ship optimization design method described above, wherein: Fig.14 As shown, including:

[0159] A determination module 110 is used to determine the target information of the hydrodynamic performance of the ship according to the design target of the ship;

[0160] An acquisition module 120 is used to input the ship hydrodynamic performance target information into a pre-trained ship line optimization model to obtain ship line target parameters matching the ship hydrodynamic performance target information;

[0161] A design module 130, used to complete the ship design according to the ship line target parameters;

[0162] The pre-trained ship line optimization model is obtained by training a neural network model based on multiple groups of corresponding ship type parameters and hydrodynamic calculation results and optimizing through a heuristic optimization algorithm.

[0163] The ship optimization design device provided by the present invention determines the ship hydrodynamic performance target information according to the ship design target, and then obtains the ship line target parameters matching the ship hydrodynamic performance target information based on the pre-trained ship line optimization model, and finally completes the ship design based on the ship line target parameters. Before the ship design, the neural network model is trained by multiple groups of corresponding ship type parameters and hydrodynamic calculation results, and then the pre-trained ship line optimization model is obtained by the heuristic optimization algorithm. The obtained pre-trained ship line optimization model can be directly used to obtain the ship line target parameters. The ship optimization design method can effectively improve the efficiency of ship design, and because the pre-trained ship line optimization model is obtained by training based on multiple groups of matching ship type parameters and hydrodynamic calculation results, and the model is optimized by the heuristic optimization algorithm, the reliability of ship design can also be improved.

[0164] The specific working principle of the ship optimization design device of the present invention can be found in the description of the ship optimization design method above, which will not be repeated here.

[0165] As another embodiment of the present invention, a storage medium is provided, which is used to store computer instructions, and when the computer instructions are loaded and executed by a processor, the ship optimization design method described above is implemented.

[0166] In an embodiment of the present invention, a non-transitory computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions can execute the ship optimization design method in any of the above method embodiments. The storage medium may be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium may also include a combination of the above types of memories.

[0167] As another embodiment of the present invention, an electronic device is provided, which includes a memory and a processor, the memory and the processor are communicatively connected, the memory is used to store computer instructions, and the processor is used to load and execute the computer instructions to implement the ship optimization design method described above.

[0168] like Fig.15 As shown, the electronic device 80 may include: at least one processor 81, such as a CPU (Central Processing Unit), at least one communication interface 83, a memory 84, and at least one communication bus 82. The communication bus 82 is used to realize the connection and communication between these components. The communication interface 83 may include a display screen (Display) and a keyboard (Keyboard), and the optional communication interface 83 may also include a standard wired interface and a wireless interface. The memory 84 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 84 may optionally be at least one storage device located away from the aforementioned processor 81. The memory 84 stores an application program, and the processor 81 calls the program code stored in the memory 84 to execute any of the above method steps.

[0169] The communication bus 82 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 82 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0170] Among them, the memory 84 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 84 may also include a combination of the above types of memory.

[0171] The processor 81 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.

[0172] The processor 81 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0173] Optionally, the memory 84 is also used to store program instructions. The processor 81 can call the program instructions to implement the present invention. Figure 1 The ship optimization design method shown in the embodiment.

[0174] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A ship optimization design method, characterized in that: include: Determine the target information of ship hydrodynamic performance according to the ship design objectives; Inputting the ship hydrodynamic performance target information into a pre-trained ship line optimization model to obtain ship line target parameters matching the ship hydrodynamic performance target information; Complete ship design according to the target ship line parameters; The pre-trained ship line optimization model is obtained by training a neural network model based on multiple groups of corresponding ship type parameters and hydrodynamic calculation results and optimizing through a heuristic optimization algorithm.

2. The ship optimization design method according to claim 1, characterized in that: The pre-trained ship line optimization model is obtained by training a neural network model and optimizing it through a heuristic optimization algorithm according to multiple groups of corresponding ship type parameters and hydrodynamic calculation results, and includes: Obtaining a design matrix based on the ship's variable control points; The ship's mother ship type line is deformed by radial basis function to obtain a deformed new line; Perform iterative calculation based on the design matrix and the ship type parameters of the new type line after deformation to obtain a hydrodynamic calculation result; According to the ship type parameters of the deformed new line and the hydrodynamic calculation results, a neural network model is trained to obtain a neural network model to be optimized; The neural network model to be optimized is optimized by performing optimization calculation according to the heuristic optimization algorithm to obtain a pre-trained ship line optimization model.

3. The ship optimization design method according to claim 2, characterized in that: The design matrix is ​​obtained based on the ship's variable control points, including: Determining at least part of the bow movable control points as ship variable control points, wherein the ship is divided into ship fixed control points and bow movable control points; Determining the constraint range of the variable control point of the ship; The design matrix is ​​obtained by stratified sampling through Latin hypercube sampling according to the constraint range of the variable control points of the ship.

4. The ship optimization design method according to claim 2, characterized in that: The ship's mother ship type line is deformed by radial basis function to obtain the ship type parameters of the deformed new line, including: The mother ship type line of the ship is expressed parameterized, and the fixed control point of the ship and the bow movable control point are expressed parameterized; According to the radial basis function, the design variables of the bow moving control points as the variable control points of the ship are changed to obtain the deformed new lines.

5. The ship optimization design method according to claim 2, characterized in that: The hydrodynamic calculation results are obtained by iteratively calculating the design matrix and the ship type parameters of the deformed new line, including: Determine the ship type parameters and the number of iteration steps of the new type line after deformation, wherein the ship type parameters include ship length, depth and width; The design matrix is ​​iteratively calculated according to a preset number of iteration steps to obtain a hydrodynamic calculation result, which at least includes the wave-making resistance of the hull and the fluid characteristics around the hull.

6. The ship optimization design method according to claim 2, characterized in that: The neural network model is trained according to the ship type parameters of the deformed new line and the hydrodynamic calculation results to obtain the neural network model to be optimized, including: Determining an objective to be optimized in the hydrodynamic calculation result, wherein the objective to be optimized in the hydrodynamic calculation result at least includes the wave-making resistance of the hull and / or the fluid characteristics around the hull; The neural network model is trained according to the target to be optimized in the hydrodynamic calculation result and the ship type parameters of the new type line after deformation to obtain the neural network model to be optimized.

7. The ship optimization design method according to claim 6, characterized in that: The neural network model is trained according to the target to be optimized in the hydrodynamic calculation result and the ship type parameters of the new type line after deformation to obtain the neural network model to be optimized, including: Screening the target to be optimized in the hydrodynamic calculation results according to preset screening conditions to obtain valid data of the target to be optimized, wherein the preset screening conditions at least include prior knowledge and design specifications; The neural network model is trained according to the effective data of the target to be optimized and the ship type parameters of the deformed new line to obtain the neural network model to be optimized.

8. The ship optimization design method according to claim 2, characterized in that: The method further comprises: performing optimization calculation on the neural network model to be optimized according to the heuristic optimization algorithm to obtain a pre-trained ship line optimization model. Determining design variables according to the variable control points of the ship, and determining target variables according to the target to be optimized in the hydrodynamic calculation results; Determining the algorithm type of the heuristic optimization algorithm and algorithm parameters corresponding to the algorithm type, wherein the algorithm type includes any one of a genetic algorithm, a simulated annealing method and an ant colony algorithm, and the algorithm parameters include a population, a crossover rate and a mutation rate; The neural network model to be optimized is called according to the determined algorithm type, algorithm parameters, design variables and target variables to perform optimization calculations to obtain a pre-trained ship line optimization model.

9. A ship optimization design device, used to implement the ship optimization design method according to any one of claims 1 to 8, characterized in that: include: A determination module, used to determine target information of ship hydrodynamic performance according to ship design objectives; An acquisition module, used for inputting the ship hydrodynamic performance target information into a pre-trained ship line optimization model to obtain ship line target parameters matching the ship hydrodynamic performance target information; A design module, used to complete the ship design according to the target parameters of the ship line; The pre-trained ship line optimization model is obtained by training a neural network model based on multiple groups of corresponding ship type parameters and hydrodynamic calculation results and optimizing through a heuristic optimization algorithm.

10. A storage medium, characterized in that: Used to store computer instructions, which, when loaded and executed by a processor, implement the ship optimization design method described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Load value prediction method of ship shafting bearing based on genetic algorithm optimized BP neural network

    CN109165421A

  • Ship type optimization method based on BP neural network algorithm

    CN111506968A

  • Hull profile design method based on convolutional neural network

    CN111619755A

  • Hull local curved surface optimization neural network modeling method and hull local curved surface optimization method

    CN114818128A

  • Hull shape optimization neural network modeling method and hull shape optimization method

    CN114936413A