[go: up one dir, main page]

CN118690666B - A motor intelligent drive optimization method and system - Google Patents

A motor intelligent drive optimization method and system Download PDF

Info

Publication number
CN118690666B
CN118690666B CN202411172233.XA CN202411172233A CN118690666B CN 118690666 B CN118690666 B CN 118690666B CN 202411172233 A CN202411172233 A CN 202411172233A CN 118690666 B CN118690666 B CN 118690666B
Authority
CN
China
Prior art keywords
optimization
motor
solution
individuals
population
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
Application number
CN202411172233.XA
Other languages
Chinese (zh)
Other versions
CN118690666A (en
Inventor
杨中华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING JINGYI JINGYE ELECTRIC TECHNOLOGY CO LTD
Original Assignee
BEIJING JINGYI JINGYE ELECTRIC TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING JINGYI JINGYE ELECTRIC TECHNOLOGY CO LTD filed Critical BEIJING JINGYI JINGYE ELECTRIC TECHNOLOGY CO LTD
Priority to CN202411172233.XA priority Critical patent/CN118690666B/en
Publication of CN118690666A publication Critical patent/CN118690666A/en
Application granted granted Critical
Publication of CN118690666B publication Critical patent/CN118690666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/04Constraint-based CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/06Multi-objective optimisation, e.g. Pareto optimisation using simulated annealing [SA], ant colony algorithms or genetic algorithms [GA]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computational Linguistics (AREA)
  • Genetics & Genomics (AREA)
  • Physiology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention provides a motor intelligent driving optimization method and a system, wherein the method comprises the following steps: determining an optimization target of motor driving, and quantifying the optimization target; constructing a motor performance evaluation model based on the optimization target, defining an adaptability function closely related to the optimization target according to the output of the motor performance evaluation model, and evaluating the advantages and disadvantages of each driving scheme; and the driving scheme is optimized through an evolutionary optimizing algorithm and an annealing optimizing algorithm by combining the evaluation of the fitness of the driving scheme so as to output an optimal motor driving scheme. According to the invention, through the combination of the motor performance evaluation model, the fitness function and the two optimizing algorithms, the multi-objective optimization problem can be processed, the driving scheme for achieving the best balance among a plurality of targets is found by searching the global optimal solution in a wide driving scheme space, and the optimal motor driving scheme with excellent performance indexes is finally output.

Description

一种电机智能驱动优化方法及系统A motor intelligent drive optimization method and system

技术领域Technical Field

本发明涉及电机驱动优化技术领域,特别涉及一种电机智能驱动优化方法及系统。The present invention relates to the technical field of motor drive optimization, and in particular to a motor intelligent drive optimization method and system.

背景技术Background Art

随着工业自动化的快速发展和智能制造的广泛应用,电机作为核心动力源,在各类设备和系统中扮演着举足轻重的角色。电机的性能和驱动方案直接影响到生产效率、能源消耗及设备的使用寿命等多个方面。因此,如何优化电机驱动成为当前工业自动化领域亟待解决的问题。With the rapid development of industrial automation and the widespread application of intelligent manufacturing, motors, as core power sources, play a vital role in various equipment and systems. The performance and drive solutions of motors directly affect production efficiency, energy consumption, equipment life and other aspects. Therefore, how to optimize motor drive has become an urgent problem to be solved in the current industrial automation field.

目前,电机驱动优化主要依赖传统的试错方法和经验调整,这种传统方法不仅效率低下且研发成本高昂,因为每次调整都需要实际测试来验证效果。而且,传统方法在处理多目标优化问题时显得力不从心,很难在诸如效率、稳定性、响应速度等多个性能指标之间找到最佳平衡点,这常常导致所得驱动方案在某些方面性能突出,但在其他方面却存在严重不足,难以全面满足现代复杂工程应用的综合需求。At present, motor drive optimization mainly relies on traditional trial and error methods and empirical adjustments. This traditional method is not only inefficient but also has high R&D costs, because each adjustment requires actual testing to verify the effect. Moreover, traditional methods are incapable of dealing with multi-objective optimization problems. It is difficult to find the best balance between multiple performance indicators such as efficiency, stability, and response speed. This often leads to the resulting drive solution having outstanding performance in some aspects, but serious deficiencies in other aspects, making it difficult to fully meet the comprehensive needs of modern complex engineering applications.

发明内容Summary of the invention

基于此,本发明的目的是提出一种电机智能驱动优化方法及系统,以解决上述提到的问题。Based on this, the purpose of the present invention is to propose a motor intelligent drive optimization method and system to solve the above-mentioned problems.

根据本发明提出的一种电机智能驱动优化方法,所述方法包括:According to a motor intelligent drive optimization method proposed in the present invention, the method comprises:

确定电机驱动的优化目标,并对所述优化目标进行量化;Determining an optimization target for the motor drive and quantifying the optimization target;

基于所述优化目标构建电机性能评估模型,并根据所述电机性能评估模型的输出定义与所述优化目标紧密相关的适应度函数,用来评估每种驱动方案的优劣;Building a motor performance evaluation model based on the optimization target, and defining a fitness function closely related to the optimization target according to the output of the motor performance evaluation model to evaluate the pros and cons of each driving scheme;

结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,以输出最优的电机驱动方案。Combined with the evaluation of the fitness of the drive scheme, the drive scheme is optimized through evolutionary optimization algorithm and annealing optimization algorithm to output the optimal motor drive scheme.

更进一步的,所述基于所述优化目标构建电机性能评估模型的步骤包括:Furthermore, the step of constructing a motor performance evaluation model based on the optimization target includes:

收集电机在不同的驱动方案下的运行数据和电机性能数据,所述运行数据包括转速、电流、电压和温度;Collecting the operation data and motor performance data of the motor under different driving schemes, wherein the operation data includes speed, current, voltage and temperature;

从所述运行数据中,提取与所述优化目标直接相关的特征;Extracting features directly related to the optimization objective from the operating data;

将提取的特征和对应的电机性能数据作为训练集,对深度学习模型进行训练,得到电机性能评估模型,所述电机性能评估模型用于根据输入的电机运行数据预测不同驱动方案下的电机性能评估结果。The extracted features and the corresponding motor performance data are used as a training set to train the deep learning model to obtain a motor performance evaluation model, which is used to predict the motor performance evaluation results under different driving schemes based on the input motor operation data.

更进一步的,所述根据所述电机性能评估模型的输出定义与所述优化目标紧密相关的适应度函数的步骤中:Furthermore, in the step of defining a fitness function closely related to the optimization objective according to the output of the motor performance evaluation model:

所述适应度函数用于对所述电机性能评估结果的各性能指标进行加权和计算。The fitness function is used to weight and calculate various performance indicators of the motor performance evaluation result.

更进一步的,所述结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,以输出最优的电机驱动方案的步骤包括:Furthermore, the step of combining the evaluation of the fitness of the driving scheme and optimizing the driving scheme by the evolutionary optimization algorithm and the annealing optimization algorithm to output the optimal motor driving scheme includes:

结合对驱动方案的适应度的评估,并通过所述进化寻优算法的选择、交叉和变异操作,在驱动方案空间内进行全局搜索,寻找与所述优化目标相匹配的初始优解集;Combined with the evaluation of the fitness of the driving scheme, and through the selection, crossover and mutation operations of the evolutionary optimization algorithm, a global search is performed in the driving scheme space to find an initial optimal solution set that matches the optimization goal;

以所述初始优解集为基础,结合对解的适应度的评估,并通过所述退火寻优算法,在初始优解的邻域内进行局部搜索,以逼近最优解,得到全局最优解;Based on the initial optimal solution set, combined with the evaluation of the fitness of the solution, and through the annealing optimization algorithm, a local search is performed in the neighborhood of the initial optimal solution to approximate the optimal solution and obtain the global optimal solution;

将所述全局最优解作为最优的电机驱动方案。The global optimal solution is taken as the optimal motor driving solution.

更进一步的,所述结合对驱动方案的适应度的评估,并通过所述进化寻优算法的选择、交叉和变异操作,在驱动方案空间内进行全局搜索,寻找与所述优化目标相匹配的初始优解集的步骤包括:Furthermore, the step of combining the evaluation of the fitness of the driving scheme and performing a global search in the driving scheme space through the selection, crossover and mutation operations of the evolutionary optimization algorithm to find an initial optimal solution set matching the optimization goal includes:

随机生成若干初始的驱动方案,并将所述驱动方案编码为基因序列,作为初始种群的个体;Randomly generate a number of initial driving schemes, and encode the driving schemes into gene sequences as individuals of the initial population;

结合所述电机性能评估模型及适应度函数评估所述种群中每个个体的适应度值;Evaluating the fitness value of each individual in the population by combining the motor performance evaluation model and the fitness function;

根据预设筛选比例,筛选出所述种群中适应度值高的优秀个体,作为所述种群的下一代;According to a preset screening ratio, excellent individuals with high fitness values in the population are screened out as the next generation of the population;

从选择操作后的所述种群中随机选择两个个体,进行交叉操作,生成交叉个体,并加入所述种群;Randomly select two individuals from the population after the selection operation, perform a crossover operation, generate a crossover individual, and add the crossover individual to the population;

对交叉操作后的所述种群中的个体进行变异操作,生成变异个体,并加入所述种群;Performing a mutation operation on the individuals in the population after the crossover operation to generate mutant individuals, and adding the mutant individuals to the population;

根据适应度值进行排序,并筛选适应度值高的个体组成新的种群;Sort by fitness value and select individuals with high fitness value to form a new population;

重复迭代,直至达到所述进化寻优算法的终止条件,则停止迭代,并将当前种群作为初始优解集,当前种群中的个体为初始优解。Repeat the iteration until the termination condition of the evolutionary optimization algorithm is reached, then stop the iteration, and use the current population as the initial optimal solution set, and the individuals in the current population as the initial optimal solutions.

更进一步的,所述从选择操作后的所述种群中随机选择两个个体,进行交叉操作,生成交叉个体,并加入所述种群的步骤包括:Furthermore, the step of randomly selecting two individuals from the population after the selection operation, performing a crossover operation, generating crossover individuals, and adding the crossover individuals to the population includes:

从选择操作后的所述种群中随机选择两个个体作为待交叉个体;Randomly select two individuals from the population after the selection operation as individuals to be crossed;

在两个所述待交叉个体的交叉点处,交换基因,以创建两个交叉个体,其中,所述交叉点是在所述待交叉个体的基因序列中随机选择的一个或多个位置;At the intersection point of the two individuals to be crossed, exchanging genes to create two crossover individuals, wherein the intersection point is one or more positions randomly selected in the gene sequence of the individuals to be crossed;

判断新的交叉个体是否满足约束条件;Determine whether the new crossover individual meets the constraints;

若满足,则将所述交叉个体加入所述种群。If satisfied, the crossover individual is added to the population.

更进一步的,所述对交叉操作后的所述种群中的个体进行变异操作,生成变异个体,并加入所述种群的步骤包括:Furthermore, the step of performing a mutation operation on the individuals in the population after the crossover operation to generate mutant individuals and adding the mutant individuals to the population includes:

将交叉操作后的所述种群中的个体作为待变异个体;Using the individuals in the population after the crossover operation as individuals to be mutated;

在所述待变异个体的基因序列中,随机选择一个或多个变异点;Randomly selecting one or more mutation points in the gene sequence of the individual to be mutated;

对所述变异点处的基因进行随机调整,生成变异个体;Randomly adjusting the gene at the mutation point to generate a mutant individual;

判断所述变异个体是否满足约束条件;Determine whether the variant individual satisfies the constraint condition;

若满足,则将所述变异个体加入所述种群。If satisfied, the mutant individual is added to the population.

更进一步的,所述以所述初始优解集为基础,结合对解的适应度的评估,并通过所述退火寻优算法,在初始优解的邻域内进行局部搜索,以逼近最优解,得到全局最优解的步骤包括:Furthermore, the step of taking the initial optimal solution set as a basis, combining the evaluation of the fitness of the solution, and performing a local search in the neighborhood of the initial optimal solution through the annealing optimization algorithm to approximate the optimal solution to obtain the global optimal solution includes:

以所述初始优解集中的初始优解作为所述退火寻优算法的初始解;Using the initial optimal solution in the initial optimal solution set as the initial solution of the annealing optimization algorithm;

设定一个高于预设阈值的初始温度值T0Setting an initial temperature value T 0 higher than a preset threshold;

在当前解的邻域内随机搜索新解;Randomly search for new solutions in the neighborhood of the current solution;

根据Metropolis准则判断是否接受新解;Decide whether to accept the new solution based on the Metropolis criteria;

按照预设的降温策略逐渐降低温度,并重复邻域搜索和接受准则的判断过程,直到满足终止条件,将当前解作为全局最优解的候选集。The temperature is gradually lowered according to the preset cooling strategy, and the neighborhood search and acceptance criterion judgment process are repeated until the termination condition is met, and the current solution is used as the candidate set of the global optimal solution.

更进一步的,所述根据Metropolis准则判断是否接受新解的步骤包括:Furthermore, the step of judging whether to accept the new solution according to the Metropolis criterion includes:

结合所述电机性能评估模型及适应度函数对当前解及新解的适应度值分别进行评估;The fitness values of the current solution and the new solution are evaluated respectively in combination with the motor performance evaluation model and the fitness function;

计算所述新解与当前解的适应度值的差异Δf,公式为:,其中,f(x′)为新解x′的适应度值,f(x)为当前解x的适应度值;Calculate the difference Δf between the fitness value of the new solution and the current solution, the formula is: , where f(x′) is the fitness value of the new solution x′, and f(x) is the fitness value of the current solution x;

,则接受所述新解,并对所述当前解进行更新,以使like , then accept the new solution and update the current solution so that and ;

,则以预设接受概率决定是否接受所述新解,所述预设接受概率等于,其中,T 是当前温度。like , then the preset acceptance probability is used to decide whether to accept the new solution, and the preset acceptance probability is equal to , where T is the current temperature.

本发明还提供一种电机智能驱动优化系统,包括:The present invention also provides a motor intelligent drive optimization system, comprising:

优化目标模块:用于确定电机驱动的优化目标,并对所述优化目标进行量化;Optimization target module: used to determine the optimization target of the motor drive and quantify the optimization target;

性能评估模块:用于基于所述优化目标构建电机性能评估模型,并根据所述电机性能评估模型的输出定义与所述优化目标紧密相关的适应度函数,用来评估每种驱动方案的优劣;Performance evaluation module: used to construct a motor performance evaluation model based on the optimization target, and define a fitness function closely related to the optimization target according to the output of the motor performance evaluation model to evaluate the pros and cons of each driving scheme;

驱动方案优化模块:用于结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,以输出最优的电机驱动方案。Drive scheme optimization module: used to combine the evaluation of the fitness of the drive scheme, and optimize the drive scheme through evolutionary optimization algorithm and annealing optimization algorithm to output the optimal motor drive scheme.

综上,根据上述的一种电机智能驱动优化方法,通过明确并量化电机驱动的优化目标,为优化过程提供了清晰的方向和评估标准;进一步基于优化目标构建电机性能评估模型,使得每种驱动方案的性能可以被预测,根据电机性能评估模型的输出定义一个与优化目标紧密相关的适应度函数,以准确地评估每种驱动方案综合性能的优劣,为优化算法提供了有效的选择依据;再结合进化寻优算法和退火寻优算法,不仅能够在全局范围内搜索最优解,还能通过退火寻优算法的局部搜索能力,对初步找到的最优解进行精细调整,从而提高了找到全局最优解的概率。本发明方法通过电机性能评估模型、适应度函数与两种寻优算法的结合,能够处理多目标优化问题,通过在广泛的驱动方案空间中探寻到全局最优解,以找到在多个目标之间达到最佳平衡的驱动方案,最终输出在多个性能指标上均表现优异的最优电机驱动方案,这个方案有望在实际应用中提供更好的性能表现,满足特定的工程需求。In summary, according to the above-mentioned motor intelligent drive optimization method, by clarifying and quantifying the optimization target of motor drive, a clear direction and evaluation criteria are provided for the optimization process; further based on the optimization target, a motor performance evaluation model is constructed so that the performance of each drive scheme can be predicted, and a fitness function closely related to the optimization target is defined according to the output of the motor performance evaluation model to accurately evaluate the pros and cons of the comprehensive performance of each drive scheme, providing an effective selection basis for the optimization algorithm; combined with the evolutionary optimization algorithm and the annealing optimization algorithm, it is not only possible to search for the optimal solution in the global range, but also to fine-tune the optimal solution initially found through the local search capability of the annealing optimization algorithm, thereby increasing the probability of finding the global optimal solution. The method of the present invention can handle multi-objective optimization problems through the combination of motor performance evaluation model, fitness function and two optimization algorithms, and can find the global optimal solution in a wide range of drive scheme space to find the drive scheme that achieves the best balance between multiple targets, and finally output the optimal motor drive scheme that performs well in multiple performance indicators, which is expected to provide better performance in practical applications and meet specific engineering needs.

本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实施例了解到。Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or will be learned through embodiments of the present invention.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

图1为本发明第一实施例一种电机智能驱动优化方法的流程图;FIG1 is a flow chart of a motor intelligent drive optimization method according to a first embodiment of the present invention;

图2为本发明第二实施例一种电机智能驱动优化系统的系统框图。FIG. 2 is a system block diagram of a motor intelligent drive optimization system according to a second embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

为了便于理解本发明,下面将参照相关附图对本发明进行更全面的描述。附图中给出了本发明的若干实施例。但是,本发明可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本发明的公开内容更加透彻全面。In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

需要说明的是,当元件被称为“固设于”另一个元件,它可以直接在另一个元件上或者也可以存在居中的元件。当一个元件被认为是“连接”另一个元件,它可以是直接连接到另一个元件或者可能同时存在居中元件。本文所使用的术语“垂直的”、“水平的”、“左”、“右”以及类似的表述只是为了说明的目的。It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and/or" used herein includes any and all combinations of one or more of the related listed items.

实施例1:请参阅图1,本发明提出一种电机智能驱动优化方法,该方法包括步骤S101至S103:Embodiment 1: Referring to FIG. 1 , the present invention proposes a motor intelligent drive optimization method, the method comprising steps S101 to S103:

S101,确定电机驱动的优化目标,并对所述优化目标进行量化。S101, determining an optimization target of a motor drive, and quantifying the optimization target.

需要说明的是,确定电机驱动的优化目标,并对这些目标进行量化,可以为后续的优化过程提供清晰的方向,还为评估不同驱动方案的优劣提供了具体的标准。It should be noted that determining the optimization goals of motor drive and quantifying these goals can provide a clear direction for the subsequent optimization process and provide specific criteria for evaluating the pros and cons of different drive schemes.

首先,确定电机驱动的优化目标,这些目标围绕电机的主要性能指标,可以是高效率、低能耗、快速响应、运行平稳、长寿命等中的一项或多项。First, determine the optimization goals of the motor drive. These goals revolve around the main performance indicators of the motor, which can be one or more of high efficiency, low energy consumption, fast response, smooth operation, long life, etc.

量化优化目标是将其转化为可测量和可比较的指标。例如:高效率可以通过电机的输出功率与输入功率之比来衡量,可以设定一个效率提升百分比作为目标;低能耗通过测量单位时间内电机的能耗来量化,可以设定能耗降低的百分比作为目标;快速响应通过测量电机达到预定状态(如特定转速)所需的时间来量化,可以设定响应时间缩短的具体目标作为目标;运行平稳通过振动传感器和噪音测量设备来量化振动幅度和噪音水平,可以设定降低的百分比作为目标;长寿命通过模拟或实际测试来估算电机的使用寿命,可以设定寿命延长作为目标。The goal of quantitative optimization is to convert it into a measurable and comparable indicator. For example, high efficiency can be measured by the ratio of the motor's output power to its input power, and a percentage of efficiency improvement can be set as a goal; low energy consumption can be quantified by measuring the motor's energy consumption per unit time, and a percentage of energy consumption reduction can be set as a goal; fast response can be quantified by measuring the time required for the motor to reach a predetermined state (such as a specific speed), and a specific goal of shortening the response time can be set as a goal; smooth operation can be quantified by vibration sensors and noise measurement equipment to quantify the vibration amplitude and noise level, and a percentage of reduction can be set as a goal; long life can be estimated by simulation or actual testing to estimate the motor's service life, and a life extension can be set as a goal.

量化目标不仅使得优化过程更加明确和具体,还为后续的优化算法提供了明确的评估标准。从而指导优化算法在搜索过程中不断逼近最优解,实现电机性能的综合提升,同时,也使得不同驱动方案之间的优劣比较变得更加客观和准确。Quantitative targets not only make the optimization process clearer and more specific, but also provide clear evaluation criteria for subsequent optimization algorithms, thereby guiding the optimization algorithm to continuously approach the optimal solution during the search process, achieving a comprehensive improvement in motor performance, and making the comparison of the advantages and disadvantages of different drive solutions more objective and accurate.

S102,基于所述优化目标构建电机性能评估模型,并根据所述电机性能评估模型的输出定义与所述优化目标紧密相关的适应度函数,用来评估每种驱动方案的优劣。S102, constructing a motor performance evaluation model based on the optimization target, and defining a fitness function closely related to the optimization target according to an output of the motor performance evaluation model to evaluate the pros and cons of each driving scheme.

需要说明的是,基于量化的优化目标,构建一个电机性能评估模型,这个模型可以综合考虑多个性能指标,并输出一个综合评估结果。构建模型可以包括:收集电机在各种驱动方案下的运行数据,包括转速、电流、电压、温度等;并从收集的运行数据中提取与优化目标相关的特征;再使用机器学习算法或深度学习算法训练模型,使其能够根据不同驱动方案下的运行数据预测电机的性能表现。It should be noted that based on the quantitative optimization goal, a motor performance evaluation model is constructed. This model can comprehensively consider multiple performance indicators and output a comprehensive evaluation result. Model construction can include: collecting the motor's operating data under various drive schemes, including speed, current, voltage, temperature, etc.; extracting features related to the optimization goal from the collected operating data; and then using machine learning algorithms or deep learning algorithms to train the model so that it can predict the motor's performance based on the operating data under different drive schemes.

适应度函数是用于评估每种驱动方案优劣的关键,是基于电机性能评估模型的输出,并与优化目标紧密相关的一个函数。适应度函数可以是一个加权和的形式,可以对每个性能指标的评估结果都乘以一个权重系数,然后求和,其中,权重系数反映了每个指标的重要性。The fitness function is the key to evaluating the pros and cons of each drive solution. It is a function based on the output of the motor performance evaluation model and is closely related to the optimization goal. The fitness function can be in the form of a weighted sum, where the evaluation result of each performance indicator is multiplied by a weight coefficient and then summed, where the weight coefficient reflects the importance of each indicator.

如果某些优化目标存在约束条件(如能耗不能超过某个值),适应度函数可以包含对这些约束的处理。对于违反约束的解,可以在适应度函数中加入一个罚项,降低其适应度值,例如,如果能耗超过了限定值,可以根据超出的量来施加一个罚分。If some optimization objectives have constraints (such as energy consumption cannot exceed a certain value), the fitness function can include processing of these constraints. For solutions that violate the constraints, a penalty term can be added to the fitness function to reduce its fitness value. For example, if the energy consumption exceeds the limit, a penalty can be imposed according to the amount of excess.

S103,结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,以输出最优的电机驱动方案。S103, combining the evaluation of the fitness of the driving scheme, and optimizing the driving scheme through an evolutionary optimization algorithm and an annealing optimization algorithm, so as to output an optimal motor driving scheme.

需要说明的是,结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,最终输出最优的电机驱动方案,实现了多目标优化,并在广泛的驱动方案空间中探寻到全局最优解,最终输出在多个性能指标上均表现优异的最优电机驱动方案。It should be noted that, by combining the evaluation of the fitness of the drive scheme and optimizing the drive scheme through evolutionary optimization algorithm and annealing optimization algorithm, the optimal motor drive scheme is finally output, multi-objective optimization is achieved, and the global optimal solution is found in a wide range of drive scheme space, and finally the optimal motor drive scheme with excellent performance in multiple performance indicators is output.

其中,在通过进化寻优算法及退火寻优算法对驱动方案的优化过程中,涉及到对驱动方案适应度的评估,对于每个驱动方案,可以利用上述训练好的电机性能评估模型进行电机性能指标的预测,再通过适应度函数对各性能指标的加权和进行计算,得到综合评估结果,也即驱动方案的适应度。Among them, in the process of optimizing the drive scheme through the evolutionary optimization algorithm and the annealing optimization algorithm, the fitness of the drive scheme is evaluated. For each drive scheme, the above-mentioned trained motor performance evaluation model can be used to predict the motor performance indicators, and then the weighted sum of the performance indicators is calculated through the fitness function to obtain a comprehensive evaluation result, that is, the fitness of the drive scheme.

由于电机设计通常涉及多个性能指标的权衡,而进化寻优算法和退火寻优算法能够处理这种多目标优化问题,通过搜索解空间找到在多个目标之间达到最佳平衡的驱动方案。具体可以先通过进化寻优算法在全局范围内搜索最优解,再通过退火寻优算法的局部搜索能力,对初步找到的最优解进行精细调整,来提高找到全局最优解的概率。且这些寻优算法对问题的具体形式要求不高,可以处理复杂的、非线性的优化问题,因此,即使电机性能与驱动方案之间的关系非常复杂,这些算法也能有效地找到最优解,还能提高优化效率,这对于需要快速迭代和优化的电机设计流程尤为重要。经过算法的优化,最终输出的电机驱动方案是在综合考虑多个性能指标后得到的最优解,这个方案有望在实际应用中提供更好的性能表现,满足特定的工程需求。Since motor design usually involves the trade-off of multiple performance indicators, the evolutionary optimization algorithm and the annealing optimization algorithm can handle this multi-objective optimization problem and find the drive solution that achieves the best balance between multiple objectives by searching the solution space. Specifically, the optimal solution can be searched globally by the evolutionary optimization algorithm, and then the local search capability of the annealing optimization algorithm can be used to fine-tune the initial optimal solution to increase the probability of finding the global optimal solution. Moreover, these optimization algorithms do not have high requirements on the specific form of the problem and can handle complex and nonlinear optimization problems. Therefore, even if the relationship between motor performance and drive solutions is very complex, these algorithms can effectively find the optimal solution and improve the optimization efficiency, which is especially important for motor design processes that require rapid iteration and optimization. After algorithm optimization, the final output motor drive solution is the optimal solution obtained after comprehensive consideration of multiple performance indicators. This solution is expected to provide better performance in practical applications and meet specific engineering needs.

基于步骤S101至步骤S103,通过明确并量化电机驱动的优化目标,为优化过程提供了清晰的方向和评估标准;进一步基于优化目标构建电机性能评估模型,使得每种驱动方案的性能可以被预测,根据电机性能评估模型的输出定义一个与优化目标紧密相关的适应度函数,以准确地评估每种驱动方案综合性能的优劣,为优化算法提供了有效的选择依据;再结合进化寻优算法和退火寻优算法,不仅能够在全局范围内搜索最优解,还能通过退火寻优算法的局部搜索能力,对初步找到的最优解进行精细调整,从而提高了找到全局最优解的概率。本发明方法通过电机性能评估模型、适应度函数与两种寻优算法的结合,能够处理多目标优化问题,通过在广泛的驱动方案空间中探寻到全局最优解,以找到在多个目标之间达到最佳平衡的驱动方案,最终输出在多个性能指标上均表现优异的最优电机驱动方案,这个方案有望在实际应用中提供更好的性能表现,满足特定的工程需求。Based on step S101 to step S103, by clarifying and quantifying the optimization target of motor drive, a clear direction and evaluation criteria are provided for the optimization process; further based on the optimization target, a motor performance evaluation model is constructed so that the performance of each drive scheme can be predicted, and a fitness function closely related to the optimization target is defined according to the output of the motor performance evaluation model to accurately evaluate the pros and cons of the comprehensive performance of each drive scheme, providing an effective selection basis for the optimization algorithm; combined with the evolutionary optimization algorithm and the annealing optimization algorithm, not only can the optimal solution be searched in a global range, but also the local search capability of the annealing optimization algorithm can be used to fine-tune the optimal solution initially found, thereby increasing the probability of finding the global optimal solution. The method of the present invention can handle multi-objective optimization problems through the combination of motor performance evaluation model, fitness function and two optimization algorithms, and can find the global optimal solution in a wide range of drive scheme spaces to find the drive scheme that achieves the best balance between multiple targets, and finally output the optimal motor drive scheme that performs well in multiple performance indicators, which is expected to provide better performance in practical applications and meet specific engineering needs.

以下是对本发明实施例的一种电机智能驱动优化方法的进一步介绍:The following is a further introduction to a motor intelligent drive optimization method according to an embodiment of the present invention:

进一步可选的,在步骤S102,所述基于所述优化目标构建电机性能评估模型的步骤包括:Further optionally, in step S102, the step of constructing a motor performance evaluation model based on the optimization target includes:

收集电机在不同的驱动方案下的运行数据和电机性能数据,所述运行数据包括转速、电流、电压和温度;Collecting the operation data and motor performance data of the motor under different driving schemes, wherein the operation data includes speed, current, voltage and temperature;

从所述运行数据中,提取与所述优化目标直接相关的特征;Extracting features directly related to the optimization objective from the operating data;

将提取的特征和对应的电机性能数据作为训练集,对深度学习模型进行训练,得到电机性能评估模型,所述电机性能评估模型用于根据输入的电机运行数据预测不同驱动方案下的电机性能评估结果。The extracted features and the corresponding motor performance data are used as a training set to train the deep learning model to obtain a motor performance evaluation model, which is used to predict the motor performance evaluation results under different driving schemes based on the input motor operation data.

可理解的,收集电机在不同的驱动方案下的运行数据和电机性能数据,运行数据包括但不限于转速、电流、电压、温度以及电机的其他重要运行状态参数,确保收集的数据具有广泛性和代表性,能够覆盖电机在各种可能的工作条件下的表现;从运行数据中,提取与优化目标直接相关的特征,例如,对于效率优化,可以关注电流与电压的比值、功率因数等,选择适合的深度学习算法来训练模型,例如神经网络;将提取的特征和对应的电机性能数据作为训练集,通过调整模型参数和学习算法来训练模型,使其能够准确预测电机的性能。利用训练好的模型,输入新的驱动方案下的电机运行数据,模型将输出一个或多个性能指标的预测值,根据这些预测值,可以计算出一个综合评估结果,该结果综合考虑了多个性能指标,如效率、能耗、响应速度等,综合评估结果可以被定义为适应度。Understandably, the operating data and motor performance data of the motor under different drive schemes are collected. The operating data include but are not limited to speed, current, voltage, temperature and other important operating state parameters of the motor to ensure that the collected data is extensive and representative and can cover the performance of the motor under various possible working conditions; from the operating data, extract the features directly related to the optimization target. For example, for efficiency optimization, you can focus on the ratio of current to voltage, power factor, etc., and select a suitable deep learning algorithm to train the model, such as a neural network; use the extracted features and the corresponding motor performance data as a training set, and train the model by adjusting the model parameters and learning algorithm so that it can accurately predict the performance of the motor. Using the trained model, input the motor operating data under the new drive scheme, and the model will output the predicted values of one or more performance indicators. Based on these predicted values, a comprehensive evaluation result can be calculated, which comprehensively considers multiple performance indicators, such as efficiency, energy consumption, response speed, etc. The comprehensive evaluation result can be defined as fitness.

在通过进化寻优算法及退火寻优算法对驱动方案的优化过程中,涉及到对驱动方案适应度的评估,对于每个驱动方案,可以利用训练好的电机性能评估模型进行电机性能指标的预测,再通过适应度函数对各性能指标的加权和进行计算,得到综合评估结果,也即驱动方案的适应度。In the process of optimizing the drive scheme through the evolutionary optimization algorithm and the annealing optimization algorithm, the fitness of the drive scheme is evaluated. For each drive scheme, the trained motor performance evaluation model can be used to predict the motor performance indicators, and then the weighted sum of the performance indicators is calculated through the fitness function to obtain a comprehensive evaluation result, that is, the fitness of the drive scheme.

进一步可选的,在步骤S103,所述结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,以输出最优的电机驱动方案的步骤包括:Further optionally, in step S103, the step of combining the evaluation of the fitness of the driving scheme and optimizing the driving scheme by the evolutionary optimization algorithm and the annealing optimization algorithm to output the optimal motor driving scheme includes:

结合对驱动方案的适应度的评估,并通过所述进化寻优算法的选择、交叉和变异操作,在驱动方案空间内进行全局搜索,寻找与所述优化目标相匹配的初始优解集;Combined with the evaluation of the fitness of the driving scheme, and through the selection, crossover and mutation operations of the evolutionary optimization algorithm, a global search is performed in the driving scheme space to find an initial optimal solution set that matches the optimization goal;

以所述初始优解集为基础,结合对解的适应度的评估,并通过所述退火寻优算法,在初始优解的邻域内进行局部搜索,以逼近最优解,得到全局最优解;Based on the initial optimal solution set, combined with the evaluation of the fitness of the solution, and through the annealing optimization algorithm, a local search is performed in the neighborhood of the initial optimal solution to approximate the optimal solution and obtain the global optimal solution;

将所述全局最优解作为最优的电机驱动方案。The global optimal solution is taken as the optimal motor driving solution.

可理解的,结合对驱动方案的适应度评估,通过进化寻优算法进行选择、交叉和变异操作,这一全局搜索策略是在广泛探索可能的解决方案空间,寻找与优化目标相匹配的初始优解集。进化寻优算法的这种特性使其能够跳出局部最优,寻找更广阔的优化可能性。随后,以初始优解集为起点,利用退火寻优算法在初始优解的邻域内进行局部精细搜索。退火寻优算法通过模拟物理退火过程,逐渐降低“温度”,减少搜索过程中的随机性,使得搜索更加聚焦于优质解,逐步逼近最优解,从而得到全局最优解。最后,将这一全局最优解确定为最优的电机驱动方案。整个流程融合了全局搜索与局部精细搜索的优势,确保了优化过程的全面性和深度,最终输出的电机驱动方案在综合性能上达到了最优,满足了电机设计的核心需求。Understandably, combined with the fitness evaluation of the drive scheme, the global search strategy of selecting, crossover and mutation operations through the evolutionary optimization algorithm is to widely explore the possible solution space and find the initial optimal solution set that matches the optimization goal. This characteristic of the evolutionary optimization algorithm enables it to jump out of the local optimum and find a wider range of optimization possibilities. Subsequently, starting from the initial optimal solution set, the annealing optimization algorithm is used to perform a local fine search in the neighborhood of the initial optimal solution. The annealing optimization algorithm simulates the physical annealing process, gradually lowers the "temperature", reduces the randomness in the search process, makes the search more focused on high-quality solutions, and gradually approaches the optimal solution, thereby obtaining the global optimal solution. Finally, this global optimal solution is determined as the optimal motor drive solution. The entire process combines the advantages of global search and local fine search, ensuring the comprehensiveness and depth of the optimization process. The final output of the motor drive solution achieves the best in comprehensive performance and meets the core requirements of motor design.

在优化电机驱动方案的过程中,驱动方案适应度的评估是对性能评估的一种重要手段,并贯穿于进化寻优和退火寻优的整个过程。在进化寻优阶段,针对每个驱动方案对应的个体,利用已经训练好的电机性能评估模型来预测其电机性能指标,随后,通过适应度函数对这些性能指标进行加权求和,从而得出一个综合评估结果,这个结果即代表了个体的适应度。同样,在退火寻优阶段,对每个驱动方案对应的解进行类似的处理:先利用训练好的电机性能评估模型预测其性能指标,再通过适应度函数计算加权和,得出解的综合评估结果,也即解的适应度。通过适应度的评估,能够全面、客观地衡量每个驱动方案的优劣。In the process of optimizing the motor drive scheme, the evaluation of the drive scheme fitness is an important means of performance evaluation, and it runs through the entire process of evolutionary optimization and annealing optimization. In the evolutionary optimization stage, for each individual corresponding to the drive scheme, the motor performance index is predicted using the trained motor performance evaluation model, and then these performance indexes are weighted and summed through the fitness function to obtain a comprehensive evaluation result, which represents the fitness of the individual. Similarly, in the annealing optimization stage, the solution corresponding to each drive scheme is processed similarly: first, the performance index is predicted using the trained motor performance evaluation model, and then the weighted sum is calculated through the fitness function to obtain the comprehensive evaluation result of the solution, that is, the fitness of the solution. Through the fitness evaluation, the advantages and disadvantages of each drive scheme can be comprehensively and objectively measured.

进一步可选的,所述结合对驱动方案的适应度的评估,并通过所述进化寻优算法的选择、交叉和变异操作,在驱动方案空间内进行全局搜索,寻找与所述优化目标相匹配的初始优解集的步骤包括:Further optionally, the step of combining the evaluation of the fitness of the driving scheme and performing a global search in the driving scheme space through the selection, crossover and mutation operations of the evolutionary optimization algorithm to find an initial optimal solution set matching the optimization objective includes:

随机生成若干初始的驱动方案,并将所述驱动方案编码为基因序列,作为初始种群的个体;Randomly generate a number of initial driving schemes, and encode the driving schemes into gene sequences as individuals of the initial population;

结合所述电机性能评估模型及适应度函数评估所述种群中每个个体的适应度值;Evaluating the fitness value of each individual in the population by combining the motor performance evaluation model and the fitness function;

根据预设筛选比例,筛选出所述种群中适应度值高的优秀个体,作为所述种群的下一代;According to a preset screening ratio, excellent individuals with high fitness values in the population are screened out as the next generation of the population;

从选择操作后的所述种群中随机选择两个个体,进行交叉操作,生成交叉个体,并加入所述种群;Randomly select two individuals from the population after the selection operation, perform a crossover operation, generate a crossover individual, and add the crossover individual to the population;

对交叉操作后的所述种群中的个体进行变异操作,生成变异个体,并加入所述种群;Performing a mutation operation on the individuals in the population after the crossover operation to generate mutant individuals, and adding the mutant individuals to the population;

根据适应度值进行排序,并筛选适应度值高的个体组成新的种群;Sort by fitness value and select individuals with high fitness value to form a new population;

重复迭代,直至达到所述进化寻优算法的终止条件,则停止迭代,并将当前种群作为初始优解集,当前种群中的个体为初始优解。Repeat the iteration until the termination condition of the evolutionary optimization algorithm is reached, then stop the iteration, and use the current population as the initial optimal solution set, and the individuals in the current population as the initial optimal solutions.

可理解的,在寻找与优化目标相匹配的初始优解集过程中,首先,随机生成若干初始驱动方案,并将这些方案编码为基因序列,以此作为初始种群的个体。接着,结合所述电机性能评估模型及适应度函数对每个个体的适应度值进行评估,以衡量驱动方案优劣。根据预设的筛选比例,从种群中挑选出适应度值高的优秀个体,确保下一代种群的质量。随后,通过交叉操作,随机选择两个个体进行基因序列的交叉,生成新的交叉个体并加入种群,以增加种群的多样性。同时,对种群中的个体进行变异操作,引入新的遗传变异,生成变异个体,并同样加入种群,有助于探索更广泛的搜索空间,避免陷入局部最优。然后,根据适应度值对种群中的个体进行排序,再筛选出适应度值高的个体组成新的种群,使搜索方向不断向全局最优解逼近。通过重复迭代,直至达到进化寻优算法的终止条件,则停止迭代,并将当前种群作为初始优解集,其中的个体即为初始优解。该方法结合了全局搜索与逐步优化的策略,能够找到与优化目标最为匹配的驱动方案。Understandably, in the process of finding the initial optimal solution set that matches the optimization target, first, several initial drive schemes are randomly generated, and these schemes are encoded as gene sequences as individuals of the initial population. Then, the fitness value of each individual is evaluated in combination with the motor performance evaluation model and the fitness function to measure the pros and cons of the drive scheme. According to the preset screening ratio, excellent individuals with high fitness values are selected from the population to ensure the quality of the next generation of populations. Subsequently, through the crossover operation, two individuals are randomly selected to cross the gene sequence, and new crossover individuals are generated and added to the population to increase the diversity of the population. At the same time, the individuals in the population are mutated, new genetic mutations are introduced, and mutant individuals are generated, and they are also added to the population, which helps to explore a wider search space and avoid falling into the local optimum. Then, the individuals in the population are sorted according to the fitness value, and the individuals with high fitness values are screened out to form a new population, so that the search direction continues to approach the global optimal solution. By repeated iterations, until the termination condition of the evolutionary optimization algorithm is reached, the iteration is stopped, and the current population is used as the initial optimal solution set, and the individuals therein are the initial optimal solutions. This method combines global search and step-by-step optimization strategies to find the driving scheme that best matches the optimization goal.

结合所述电机性能评估模型及适应度函数评估种群中每个个体的适应度值,具体是:针对每个驱动方案对应的个体,利用已经训练好的电机性能评估模型来预测其电机性能指标,随后,通过适应度函数对这些性能指标进行加权求和,从而得出一个综合评估结果,这个结果即代表了个体的适应度。The fitness value of each individual in the population is evaluated in combination with the motor performance evaluation model and the fitness function. Specifically, for the individual corresponding to each drive scheme, the trained motor performance evaluation model is used to predict its motor performance index. Subsequently, these performance indexes are weighted and summed through the fitness function to obtain a comprehensive evaluation result, which represents the fitness of the individual.

寻优算法过程中,在处理约束优化问题时,还可以采用一些策略来确保生成的解满足给定的约束条件(如能耗不能超过某个值),例如:在初始化种群时,为了确保生成的初始解满足约束条件,可以通过一些特定的启发式方法或随机生成与校验相结合的方式来生成初始解。对于不满足约束的个体,可以通过在适应度函数中加入罚项来降低其适应度值,罚项的大小可以根据约束违反的程度来确定。还可以定义一个约束满足度的指标,用于衡量个体满足约束的程度,这个指标可以作为一个额外的适应度标准。如果交叉或变异后的个体不满足约束,可以采用修复策略来调整其基因,使其满足约束。In the process of searching for the optimal solution, when dealing with constrained optimization problems, some strategies can also be used to ensure that the generated solution meets the given constraints (such as energy consumption cannot exceed a certain value). For example, when initializing the population, in order to ensure that the generated initial solution meets the constraints, the initial solution can be generated by some specific heuristic methods or by combining random generation with verification. For individuals that do not meet the constraints, their fitness values can be reduced by adding penalty items to the fitness function. The size of the penalty item can be determined according to the degree of constraint violation. A constraint satisfaction index can also be defined to measure the degree to which an individual meets the constraints. This index can be used as an additional fitness criterion. If the individual does not meet the constraints after crossover or mutation, a repair strategy can be used to adjust its genes so that it meets the constraints.

进一步可选的,所述从选择操作后的所述种群中随机选择两个个体,进行交叉操作,生成交叉个体,并加入所述种群的步骤包括:Further optionally, the step of randomly selecting two individuals from the population after the selection operation, performing a crossover operation, generating crossover individuals, and adding the crossover individuals to the population includes:

从选择操作后的所述种群中随机选择两个个体作为待交叉个体;Randomly select two individuals from the population after the selection operation as individuals to be crossed;

在两个所述待交叉个体的交叉点处,交换基因,以创建两个交叉个体,其中,所述交叉点是在所述待交叉个体的基因序列中随机选择的一个或多个位置;At the intersection point of the two individuals to be crossed, exchanging genes to create two crossover individuals, wherein the intersection point is one or more positions randomly selected in the gene sequence of the individuals to be crossed;

判断新的交叉个体是否满足约束条件;Determine whether the new crossover individual meets the constraints;

若满足,则将所述交叉个体加入所述种群。If satisfied, the crossover individual is added to the population.

可理解的,从经过选择操作的种群中随机挑选两个个体作为待交叉个体。然后,在待交叉个体的基因序列中随机选择一个或多个位置作为交叉点,并在这些交叉点处交换部分基因,创造出两个新的交叉个体。接着对新的交叉个体进行约束条件(如能耗不能超过某个值)的检查,确保新解决方案的有效性和可行性。如果不满足约束条件,可以采用修复策略来调整其基因,使其满足约束。一旦交叉个体满足所有约束条件,就会将其加入种群中,以便在后续的进化过程中进行进一步的优化和选择。通过这种方式,能够有效地探索解空间,并促进算法向更优解的方向进化。Understandably, two individuals are randomly selected from the population that has undergone the selection operation as individuals to be crossed. Then, one or more positions are randomly selected in the gene sequence of the individuals to be crossed as crossover points, and some genes are exchanged at these crossover points to create two new crossover individuals. Then, the constraints of the new crossover individuals (such as energy consumption cannot exceed a certain value) are checked to ensure the effectiveness and feasibility of the new solution. If the constraints are not met, a repair strategy can be used to adjust its genes to meet the constraints. Once the crossover individual meets all the constraints, it will be added to the population for further optimization and selection in the subsequent evolution process. In this way, the solution space can be effectively explored and the algorithm can be promoted to evolve towards a better solution.

进一步可选的,所述对交叉操作后的所述种群中的个体进行变异操作,生成变异个体,并加入所述种群的步骤包括:Further optionally, the step of performing a mutation operation on the individuals in the population after the crossover operation to generate mutant individuals and adding the mutant individuals to the population includes:

将交叉操作后的所述种群中的个体作为待变异个体;Using the individuals in the population after the crossover operation as individuals to be mutated;

在所述待变异个体的基因序列中,随机选择一个或多个变异点;Randomly selecting one or more mutation points in the gene sequence of the individual to be mutated;

对所述变异点处的基因进行随机调整,生成变异个体;Randomly adjusting the gene at the mutation point to generate a mutant individual;

判断所述变异个体是否满足约束条件;Determine whether the variant individual satisfies the constraint condition;

若满足,则将所述变异个体加入所述种群。If satisfied, the variant individual is added to the population.

可理解的,在进化寻优过程中,变异操作能够帮助算法跳出局部最优,探索更广泛的解空间。具体来说,将交叉操作后的种群中的个体视为待变异个体,在这些个体的基因序列中,随机选择一个或多个点作为变异点。在这些变异点处,对基因进行随机调整,生成新的变异个体,这种调整可以是在原有参数的基础上增加微小的随机扰动,从而引入新的遗传变异。然后,对新生成的变异个体进行严格的约束条件检查,以确保其满足问题的所有要求。如果变异个体不满足约束条件,可以采用特定的修复措施来使其符合要求。只有当变异个体完全符合约束条件时,才将其加入到种群中。通过这种方式,变异操作不仅增加了种群的多样性,还为算法提供了更多可能的搜索方向,促进了全局最优解的寻找。Understandably, in the process of evolutionary optimization, mutation operations can help the algorithm jump out of the local optimum and explore a wider solution space. Specifically, the individuals in the population after the crossover operation are regarded as individuals to be mutated, and one or more points are randomly selected as mutation points in the gene sequences of these individuals. At these mutation points, the genes are randomly adjusted to generate new mutant individuals. This adjustment can be to add a small random perturbation to the original parameters, thereby introducing new genetic mutations. Then, the newly generated mutant individuals are strictly checked for constraints to ensure that they meet all the requirements of the problem. If the mutant individual does not meet the constraints, specific repair measures can be taken to make it meet the requirements. Only when the mutant individual fully meets the constraints is it added to the population. In this way, the mutation operation not only increases the diversity of the population, but also provides more possible search directions for the algorithm, promoting the search for the global optimal solution.

进一步可选的,所述以所述初始优解集为基础,结合对解的适应度的评估,并通过所述退火寻优算法,在初始优解的邻域内进行局部搜索,以逼近最优解,得到全局最优解的步骤包括:Further optionally, the step of taking the initial optimal solution set as a basis, combining the evaluation of the fitness of the solution, and performing a local search in the neighborhood of the initial optimal solution through the annealing optimization algorithm to approximate the optimal solution to obtain the global optimal solution includes:

以所述初始优解集中的初始优解作为所述退火寻优算法的初始解;Using the initial optimal solution in the initial optimal solution set as the initial solution of the annealing optimization algorithm;

设定一个高于预设阈值的初始温度值T0Setting an initial temperature value T 0 higher than a preset threshold;

在当前解的邻域内随机搜索新解;Randomly search for new solutions in the neighborhood of the current solution;

根据Metropolis准则判断是否接受新解;Decide whether to accept the new solution based on the Metropolis criteria;

按照预设的降温策略逐渐降低温度,并重复邻域搜索和接受准则的判断过程,直到满足终止条件,将当前解作为全局最优解的候选集。The temperature is gradually lowered according to the preset cooling strategy, and the neighborhood search and acceptance criterion judgment process are repeated until the termination condition is met, and the current solution is used as the candidate set of the global optimal solution.

可理解的,在寻优过程中,以初始优解集为起点,采用退火寻优算法进行进一步的精细搜索。具体来说,将初始优解集作为退火寻优算法的初始解,并设定一个高于预设阈值的初始温度值T0,以确保算法在搜索初期具有足够的灵活性,能够跳出局部最优解。接下来,在当前解的邻域内随机搜索新解,以在探索当前解周围的可能更优方案。然后,根据Metropolis准则判断是否接受新解,这一准则允许算法在搜索过程中以一定概率接受较差的解,从而避免陷入局部最优。随着搜索的进行,按照预设的降温策略逐渐降低温度,这意味着算法逐渐减少对较差解的接受概率,使搜索更加聚焦于优质解。通过不断重复邻域搜索和接受准则的判断过程,直到满足终止条件,并将当前解作为全局最优解的候选集。这种方法结合了全局搜索与局部精细搜索的优势,能够在初始优解的基础上进一步逼近最优解,提高寻优的精度和效率。It can be understood that in the optimization process, the initial optimal solution set is used as the starting point, and the annealing optimization algorithm is used for further fine search. Specifically, the initial optimal solution set is used as the initial solution of the annealing optimization algorithm, and an initial temperature value T 0 higher than the preset threshold is set to ensure that the algorithm has sufficient flexibility in the early stage of the search and can jump out of the local optimal solution. Next, a new solution is randomly searched in the neighborhood of the current solution to explore possible better solutions around the current solution. Then, the Metropolis criterion is used to determine whether to accept the new solution. This criterion allows the algorithm to accept a poor solution with a certain probability during the search process, thereby avoiding falling into the local optimum. As the search proceeds, the temperature is gradually lowered according to the preset cooling strategy, which means that the algorithm gradually reduces the probability of accepting poor solutions, making the search more focused on high-quality solutions. By continuously repeating the judgment process of the neighborhood search and the acceptance criterion until the termination condition is met, the current solution is used as a candidate set for the global optimal solution. This method combines the advantages of global search and local fine search, and can further approach the optimal solution on the basis of the initial optimal solution, thereby improving the accuracy and efficiency of optimization.

进一步可选的,所述根据Metropolis准则判断是否接受新解的步骤包括:Further optionally, the step of judging whether to accept the new solution according to the Metropolis criterion includes:

结合所述电机性能评估模型及适应度函数对当前解及新解的适应度值分别进行评估;The fitness values of the current solution and the new solution are evaluated respectively in combination with the motor performance evaluation model and the fitness function;

计算所述新解与当前解的适应度值的差异Δf,公式为:,其中,f(x′)为新解x′的适应度值,f(x)为当前解x的适应度值;Calculate the difference Δf between the fitness value of the new solution and the current solution, the formula is: , where f(x′) is the fitness value of the new solution x′, and f(x) is the fitness value of the current solution x;

,则接受所述新解,并对所述当前解进行更新,以使like , then accept the new solution and update the current solution so that and ;

,则以预设接受概率决定是否接受所述新解,所述预设接受概率等于,其中,T 是当前温度。like , then the preset acceptance probability is used to decide whether to accept the new solution, and the preset acceptance probability is equal to , where T is the current temperature.

可理解的,利用电机性能评估模型及适应度函数对当前解x和新解x′的适应度值进行评估,并计算新解与当前解的适应度值差异Δf,如果Δf小于0,则意味着新解比当前解更优,则无条件地接受新解,并更新当前解及对应的适应度值。如果Δf大于或等于0,即新解并不比当前解更优,则根据预设的接受概率来决定是否接受新解。这种方法允许算法在搜索过程中以一定概率跳出局部最优,增加搜索的多样性,从而更有可能找到全局最优解。Understandably, the motor performance evaluation model and fitness function are used to evaluate the fitness values of the current solution x and the new solution x′, and the fitness value difference Δf between the new solution and the current solution is calculated. If Δf is less than 0, it means that the new solution is better than the current solution, then the new solution is accepted unconditionally, and the current solution and the corresponding fitness value are updated. If Δf is greater than or equal to 0, that is, the new solution is not better than the current solution, then the decision on whether to accept the new solution is made based on the preset acceptance probability. This method allows the algorithm to jump out of the local optimum with a certain probability during the search process, increasing the diversity of the search, and thus making it more likely to find the global optimal solution.

进一步可选的,所述按照预设的降温策略逐渐降低温度的步骤包括:Further optionally, the step of gradually lowering the temperature according to a preset cooling strategy includes:

根据温度下降率更新温度,公式为:,其中,α为温度下降率,T′为更新后的温度,T为更新前的温度。Update the temperature according to the temperature drop rate. The formula is: , where α is the temperature drop rate, T′ is the updated temperature, and T is the temperature before the update.

可理解的,根据温度下降率来更新温度,α代表温度下降率,它是一个介于0和1之间的数值,用于控制温度的降低速度。通过不断地按照这一降温策略来降低温度,算法能够逐渐减小对较差解的接受概率,使得搜索过程更加聚焦于优质解区域,从而有助于找到全局最优解。这种降温方式既保证了搜索的广泛性,又确保了搜索的精确性。Understandably, the temperature is updated according to the temperature drop rate. α represents the temperature drop rate, which is a value between 0 and 1 and is used to control the temperature drop rate. By continuously lowering the temperature according to this cooling strategy, the algorithm can gradually reduce the probability of accepting poor solutions, making the search process more focused on the high-quality solution area, thus helping to find the global optimal solution. This cooling method ensures both the breadth and accuracy of the search.

实施例2:请参阅图2,本发明还提出一种电机智能驱动优化系统,该系统包括:Embodiment 2: Referring to FIG. 2 , the present invention further proposes a motor intelligent drive optimization system, the system comprising:

优化目标模块:用于确定电机驱动的优化目标,并对所述优化目标进行量化;Optimization target module: used to determine the optimization target of the motor drive and quantify the optimization target;

性能评估模块:用于基于所述优化目标构建电机性能评估模型,并根据所述电机性能评估模型的输出定义与所述优化目标紧密相关的适应度函数,用来评估每种驱动方案的优劣;Performance evaluation module: used to construct a motor performance evaluation model based on the optimization target, and define a fitness function closely related to the optimization target according to the output of the motor performance evaluation model to evaluate the pros and cons of each driving scheme;

驱动方案优化模块:用于结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,以输出最优的电机驱动方案。Drive scheme optimization module: used to combine the evaluation of the fitness of the drive scheme, and optimize the drive scheme through evolutionary optimization algorithm and annealing optimization algorithm to output the optimal motor drive scheme.

进一步可选的,性能评估模块还用于:Further optionally, the performance evaluation module is also used to:

收集电机在不同的驱动方案下的运行数据和电机性能数据,所述运行数据包括转速、电流、电压和温度;Collecting the operation data and motor performance data of the motor under different driving schemes, wherein the operation data includes speed, current, voltage and temperature;

从所述运行数据中,提取与所述优化目标直接相关的特征;Extracting features directly related to the optimization objective from the operating data;

将提取的特征和对应的电机性能数据作为训练集,对深度学习模型进行训练,得到电机性能评估模型,所述电机性能评估模型用于根据输入的电机运行数据预测不同驱动方案下的电机性能评估结果。The extracted features and the corresponding motor performance data are used as a training set to train the deep learning model to obtain a motor performance evaluation model, which is used to predict the motor performance evaluation results under different driving schemes based on the input motor operation data.

进一步可选的,性能评估模块还用于:Further optionally, the performance evaluation module is also used to:

所述适应度函数用于对所述电机性能评估结果的各性能指标进行加权和计算。The fitness function is used to weight and calculate various performance indicators of the motor performance evaluation result.

进一步可选的,驱动方案优化模块还用于:Further optionally, the drive scheme optimization module is also used for:

结合对驱动方案的适应度的评估,并通过所述进化寻优算法的选择、交叉和变异操作,在驱动方案空间内进行全局搜索,寻找与所述优化目标相匹配的初始优解集;Combined with the evaluation of the fitness of the driving scheme, and through the selection, crossover and mutation operations of the evolutionary optimization algorithm, a global search is performed in the driving scheme space to find an initial optimal solution set that matches the optimization goal;

以所述初始优解集为基础,结合对解的适应度的评估,并通过所述退火寻优算法,在初始优解的邻域内进行局部搜索,以逼近最优解,得到全局最优解;Based on the initial optimal solution set, combined with the evaluation of the fitness of the solution, and through the annealing optimization algorithm, a local search is performed in the neighborhood of the initial optimal solution to approximate the optimal solution and obtain the global optimal solution;

将所述全局最优解作为最优的电机驱动方案。The global optimal solution is taken as the optimal motor driving solution.

进一步可选的,驱动方案优化模块还用于:Further optionally, the drive scheme optimization module is also used for:

随机生成若干初始的驱动方案,并将所述驱动方案编码为基因序列,作为初始种群的个体;Randomly generate a number of initial driving schemes, and encode the driving schemes into gene sequences as individuals of the initial population;

结合所述电机性能评估模型及适应度函数评估所述种群中每个个体的适应度值;Evaluating the fitness value of each individual in the population by combining the motor performance evaluation model and the fitness function;

根据预设筛选比例,筛选出所述种群中适应度值高的优秀个体,作为所述种群的下一代;According to a preset screening ratio, excellent individuals with high fitness values in the population are screened out as the next generation of the population;

从选择操作后的所述种群中随机选择两个个体,进行交叉操作,生成交叉个体,并加入所述种群;Randomly select two individuals from the population after the selection operation, perform a crossover operation, generate a crossover individual, and add the crossover individual to the population;

对交叉操作后的所述种群中的个体进行变异操作,生成变异个体,并加入所述种群;Performing a mutation operation on the individuals in the population after the crossover operation to generate mutant individuals, and adding the mutant individuals to the population;

根据适应度值进行排序,并筛选适应度值高的个体组成新的种群;Sort by fitness value and select individuals with high fitness value to form a new population;

重复迭代,直至达到所述进化寻优算法的终止条件,则停止迭代,并将当前种群作为初始优解集,当前种群中的个体为初始优解。Repeat the iteration until the termination condition of the evolutionary optimization algorithm is reached, then stop the iteration, and use the current population as the initial optimal solution set, and the individuals in the current population as the initial optimal solutions.

进一步可选的,驱动方案优化模块还用于:Further optionally, the drive scheme optimization module is also used for:

从选择操作后的所述种群中随机选择两个个体作为待交叉个体;Randomly select two individuals from the population after the selection operation as individuals to be crossed;

在两个所述待交叉个体的交叉点处,交换基因,以创建两个交叉个体,其中,所述交叉点是在所述待交叉个体的基因序列中随机选择的一个或多个位置;At the intersection point of the two individuals to be crossed, exchanging genes to create two crossover individuals, wherein the intersection point is one or more positions randomly selected in the gene sequence of the individuals to be crossed;

判断新的交叉个体是否满足约束条件;Determine whether the new crossover individual meets the constraints;

若满足,则将所述交叉个体加入所述种群。If satisfied, the crossover individual is added to the population.

进一步可选的,驱动方案优化模块还用于:Further optionally, the drive scheme optimization module is also used for:

将交叉操作后的所述种群中的个体作为待变异个体;Using the individuals in the population after the crossover operation as individuals to be mutated;

在所述待变异个体的基因序列中,随机选择一个或多个变异点;Randomly selecting one or more mutation points in the gene sequence of the individual to be mutated;

对所述变异点处的基因进行随机调整,生成变异个体;Randomly adjusting the gene at the mutation point to generate a mutant individual;

判断所述变异个体是否满足约束条件;Determine whether the variant individual satisfies the constraint condition;

若满足,则将所述变异个体加入所述种群。If satisfied, the variant individual is added to the population.

进一步可选的,驱动方案优化模块还用于:Further optionally, the drive scheme optimization module is also used for:

以所述初始优解集中的初始优解作为所述退火寻优算法的初始解;Using the initial optimal solution in the initial optimal solution set as the initial solution of the annealing optimization algorithm;

设定一个高于预设阈值的初始温度值T0Setting an initial temperature value T 0 higher than a preset threshold;

在当前解的邻域内随机搜索新解;Randomly search for new solutions in the neighborhood of the current solution;

根据Metropolis准则判断是否接受新解;Decide whether to accept the new solution based on the Metropolis criteria;

按照预设的降温策略逐渐降低温度,并重复邻域搜索和接受准则的判断过程,直到满足终止条件,将当前解作为全局最优解的候选集。The temperature is gradually lowered according to the preset cooling strategy, and the neighborhood search and acceptance criterion judgment process are repeated until the termination condition is met, and the current solution is used as the candidate set of the global optimal solution.

进一步可选的,驱动方案优化模块还用于:Further optionally, the drive scheme optimization module is also used for:

结合所述电机性能评估模型及适应度函数对当前解及新解的适应度值分别进行评估;The fitness values of the current solution and the new solution are evaluated respectively in combination with the motor performance evaluation model and the fitness function;

计算所述新解与当前解的适应度值的差异Δf,公式为:,其中,f(x′)为新解x′的适应度值,f(x)为当前解x的适应度值;Calculate the difference Δf between the fitness value of the new solution and the current solution, the formula is: , where f(x′) is the fitness value of the new solution x′, and f(x) is the fitness value of the current solution x;

,则接受所述新解,并对所述当前解进行更新,以使like , then accept the new solution and update the current solution so that and ;

,则以预设接受概率决定是否接受所述新解,所述预设接受概率等于,其中,T 是当前温度。like , then the preset acceptance probability is used to decide whether to accept the new solution, and the preset acceptance probability is equal to , where T is the current temperature.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims (9)

1.一种电机智能驱动优化方法,其特征在于,所述方法包括:1. A motor intelligent drive optimization method, characterized in that the method comprises: 确定电机驱动的优化目标,并对所述优化目标进行量化;Determining an optimization target for the motor drive and quantifying the optimization target; 基于所述优化目标构建电机性能评估模型,并根据所述电机性能评估模型的输出定义与所述优化目标紧密相关的适应度函数,用来评估每种驱动方案的优劣;Building a motor performance evaluation model based on the optimization target, and defining a fitness function closely related to the optimization target according to the output of the motor performance evaluation model to evaluate the pros and cons of each driving scheme; 结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,以输出最优的电机驱动方案;Combined with the evaluation of the fitness of the drive scheme, the drive scheme is optimized through the evolutionary optimization algorithm and the annealing optimization algorithm to output the optimal motor drive scheme; 其中,所述结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,以输出最优的电机驱动方案的步骤包括:The step of combining the evaluation of the fitness of the driving scheme and optimizing the driving scheme by using an evolutionary optimization algorithm and an annealing optimization algorithm to output the optimal motor driving scheme includes: 结合对驱动方案的适应度的评估,并通过所述进化寻优算法的选择、交叉和变异操作,在驱动方案空间内进行全局搜索,寻找与所述优化目标相匹配的初始优解集;Combined with the evaluation of the fitness of the driving scheme, and through the selection, crossover and mutation operations of the evolutionary optimization algorithm, a global search is performed in the driving scheme space to find an initial optimal solution set that matches the optimization goal; 以所述初始优解集为基础,结合对解的适应度的评估,并通过所述退火寻优算法,在初始优解的邻域内进行局部搜索,以逼近最优解,得到全局最优解;Based on the initial optimal solution set, combined with the evaluation of the fitness of the solution, and through the annealing optimization algorithm, a local search is performed in the neighborhood of the initial optimal solution to approximate the optimal solution and obtain the global optimal solution; 将所述全局最优解作为最优的电机驱动方案。The global optimal solution is taken as the optimal motor driving solution. 2.根据权利要求1所述的电机智能驱动优化方法,其特征在于,所述基于所述优化目标构建电机性能评估模型的步骤包括:2. The motor intelligent drive optimization method according to claim 1, characterized in that the step of constructing a motor performance evaluation model based on the optimization target comprises: 收集电机在不同的驱动方案下的运行数据和电机性能数据,所述运行数据包括转速、电流、电压和温度;Collecting the operation data and motor performance data of the motor under different driving schemes, wherein the operation data includes speed, current, voltage and temperature; 从所述运行数据中,提取与所述优化目标直接相关的特征;Extracting features directly related to the optimization objective from the operating data; 将提取的特征和对应的电机性能数据作为训练集,对深度学习模型进行训练,得到电机性能评估模型,所述电机性能评估模型用于根据输入的电机运行数据预测不同驱动方案下的电机性能评估结果。The extracted features and the corresponding motor performance data are used as a training set to train the deep learning model to obtain a motor performance evaluation model, which is used to predict the motor performance evaluation results under different driving schemes based on the input motor operation data. 3.根据权利要求2所述的电机智能驱动优化方法,其特征在于,所述根据所述电机性能评估模型的输出定义与所述优化目标紧密相关的适应度函数的步骤中:3. The motor intelligent drive optimization method according to claim 2, characterized in that in the step of defining a fitness function closely related to the optimization target according to the output of the motor performance evaluation model: 所述适应度函数用于对所述电机性能评估结果的各性能指标进行加权和计算。The fitness function is used to weight and calculate various performance indicators of the motor performance evaluation result. 4.根据权利要求1所述的电机智能驱动优化方法,其特征在于,所述结合对驱动方案的适应度的评估,并通过所述进化寻优算法的选择、交叉和变异操作,在驱动方案空间内进行全局搜索,寻找与所述优化目标相匹配的初始优解集的步骤包括:4. The motor intelligent drive optimization method according to claim 1 is characterized in that the step of combining the evaluation of the fitness of the drive scheme and performing a global search in the drive scheme space through the selection, crossover and mutation operations of the evolutionary optimization algorithm to find an initial optimal solution set matching the optimization target comprises: 随机生成若干初始的驱动方案,并将所述驱动方案编码为基因序列,作为初始种群的个体;Randomly generate a number of initial driving schemes, and encode the driving schemes into gene sequences as individuals of the initial population; 结合所述电机性能评估模型及适应度函数评估种群中每个个体的适应度值;Evaluate the fitness value of each individual in the population by combining the motor performance evaluation model and the fitness function; 根据预设筛选比例,筛选出所述种群中适应度值高的优秀个体,作为所述种群的下一代;According to a preset screening ratio, excellent individuals with high fitness values in the population are screened out as the next generation of the population; 从选择操作后的所述种群中随机选择两个个体,进行交叉操作,生成交叉个体,并加入所述种群;Randomly select two individuals from the population after the selection operation, perform a crossover operation, generate a crossover individual, and add the crossover individual to the population; 对交叉操作后的所述种群中的个体进行变异操作,生成变异个体,并加入所述种群;Performing a mutation operation on the individuals in the population after the crossover operation to generate mutant individuals, and adding the mutant individuals to the population; 根据适应度值进行排序,并筛选适应度值高的个体组成新的种群;Sort by fitness value and select individuals with high fitness value to form a new population; 重复迭代,直至达到所述进化寻优算法的终止条件,则停止迭代,并将当前种群作为初始优解集,当前种群中的个体为初始优解。Repeat the iteration until the termination condition of the evolutionary optimization algorithm is reached, then stop the iteration, and use the current population as the initial optimal solution set, and the individuals in the current population as the initial optimal solutions. 5.根据权利要求4所述的电机智能驱动优化方法,其特征在于,所述从选择操作后的所述种群中随机选择两个个体,进行交叉操作,生成交叉个体,并加入所述种群的步骤包括:5. The motor intelligent drive optimization method according to claim 4, characterized in that the step of randomly selecting two individuals from the population after the selection operation, performing a crossover operation, generating a crossover individual, and adding the crossover individuals to the population comprises: 从选择操作后的所述种群中随机选择两个个体作为待交叉个体;Randomly select two individuals from the population after the selection operation as individuals to be crossed; 在两个所述待交叉个体的交叉点处,交换基因,以创建两个交叉个体,其中,所述交叉点是在所述待交叉个体的基因序列中随机选择的一个或多个位置;At the intersection point of the two individuals to be crossed, exchanging genes to create two crossover individuals, wherein the intersection point is one or more positions randomly selected in the gene sequence of the individuals to be crossed; 判断新的交叉个体是否满足约束条件;Determine whether the new crossover individual meets the constraints; 若满足,则将所述交叉个体加入所述种群。If satisfied, the crossover individual is added to the population. 6.根据权利要求4所述的电机智能驱动优化方法,其特征在于,所述对交叉操作后的所述种群中的个体进行变异操作,生成变异个体,并加入所述种群的步骤包括:6. The motor intelligent drive optimization method according to claim 4, characterized in that the step of performing a mutation operation on the individuals in the population after the crossover operation to generate a mutant individual and adding the mutant individual to the population comprises: 将交叉操作后的所述种群中的个体作为待变异个体;Using the individuals in the population after the crossover operation as individuals to be mutated; 在所述待变异个体的基因序列中,随机选择一个或多个变异点;Randomly selecting one or more mutation points in the gene sequence of the individual to be mutated; 对所述变异点处的基因进行随机调整,生成变异个体;Randomly adjusting the gene at the mutation point to generate a mutant individual; 判断所述变异个体是否满足约束条件;Determine whether the variant individual satisfies the constraint condition; 若满足,则将所述变异个体加入所述种群。If satisfied, the variant individual is added to the population. 7.根据权利要求1所述的电机智能驱动优化方法,其特征在于,所述以所述初始优解集为基础,结合对解的适应度的评估,并通过所述退火寻优算法,在初始优解的邻域内进行局部搜索,以逼近最优解,得到全局最优解的步骤包括:7. The motor intelligent drive optimization method according to claim 1 is characterized in that the step of taking the initial optimal solution set as a basis, combining the evaluation of the fitness of the solution, and performing a local search in the neighborhood of the initial optimal solution through the annealing optimization algorithm to approximate the optimal solution to obtain the global optimal solution comprises: 以所述初始优解集中的初始优解作为所述退火寻优算法的初始解;Using the initial optimal solution in the initial optimal solution set as the initial solution of the annealing optimization algorithm; 设定一个高于预设阈值的初始温度值T0Setting an initial temperature value T 0 higher than a preset threshold; 在当前解的邻域内随机搜索新解;Randomly search for new solutions in the neighborhood of the current solution; 根据Metropolis准则判断是否接受新解;Decide whether to accept the new solution based on the Metropolis criteria; 按照预设的降温策略逐渐降低温度,并重复邻域搜索和接受准则的判断过程,直到满足终止条件,将当前解作为全局最优解的候选集。The temperature is gradually lowered according to the preset cooling strategy, and the neighborhood search and acceptance criterion judgment process are repeated until the termination condition is met, and the current solution is used as the candidate set of the global optimal solution. 8.根据权利要求7所述的电机智能驱动优化方法,其特征在于,所述根据Metropolis准则判断是否接受新解的步骤包括:8. The motor intelligent drive optimization method according to claim 7, characterized in that the step of judging whether to accept the new solution according to the Metropolis criterion comprises: 结合所述电机性能评估模型及适应度函数对当前解及新解的适应度值分别进行评估;The fitness values of the current solution and the new solution are evaluated respectively in combination with the motor performance evaluation model and the fitness function; 计算所述新解与当前解的适应度值的差异Δf,公式为:,其中,f(x′)为新解x′的适应度值,f(x)为当前解x的适应度值;Calculate the difference Δf between the fitness value of the new solution and the current solution, the formula is: , where f(x′) is the fitness value of the new solution x′, and f(x) is the fitness value of the current solution x; ,则接受所述新解,并对所述当前解进行更新,以使like , then accept the new solution and update the current solution so that and ; ,则以预设接受概率决定是否接受所述新解,所述预设接受概率等于,其中,T 是当前温度。like , then the preset acceptance probability is used to decide whether to accept the new solution, and the preset acceptance probability is equal to , where T is the current temperature. 9.一种电机智能驱动优化系统,其特征在于,包括:9. A motor intelligent drive optimization system, characterized by comprising: 优化目标模块:用于确定电机驱动的优化目标,并对所述优化目标进行量化;Optimization target module: used to determine the optimization target of the motor drive and quantify the optimization target; 性能评估模块:用于基于所述优化目标构建电机性能评估模型,并根据所述电机性能评估模型的输出定义与所述优化目标紧密相关的适应度函数,用来评估每种驱动方案的优劣;Performance evaluation module: used to construct a motor performance evaluation model based on the optimization target, and define a fitness function closely related to the optimization target according to the output of the motor performance evaluation model to evaluate the pros and cons of each driving scheme; 驱动方案优化模块:用于结合对驱动方案的适应度的评估,并通过进化寻优算法及退火寻优算法对驱动方案进行优化,以输出最优的电机驱动方案;Drive scheme optimization module: used to combine the fitness evaluation of the drive scheme and optimize the drive scheme through the evolutionary optimization algorithm and the annealing optimization algorithm to output the optimal motor drive scheme; 其中,所述驱动方案优化模块还用于:Wherein, the driving scheme optimization module is also used for: 结合对驱动方案的适应度的评估,并通过所述进化寻优算法的选择、交叉和变异操作,在驱动方案空间内进行全局搜索,寻找与所述优化目标相匹配的初始优解集;Combined with the evaluation of the fitness of the driving scheme, and through the selection, crossover and mutation operations of the evolutionary optimization algorithm, a global search is performed in the driving scheme space to find an initial optimal solution set that matches the optimization goal; 以所述初始优解集为基础,结合对解的适应度的评估,并通过所述退火寻优算法,在初始优解的邻域内进行局部搜索,以逼近最优解,得到全局最优解;Based on the initial optimal solution set, combined with the evaluation of the fitness of the solution, and through the annealing optimization algorithm, a local search is performed in the neighborhood of the initial optimal solution to approximate the optimal solution and obtain the global optimal solution; 将所述全局最优解作为最优的电机驱动方案。The global optimal solution is taken as the optimal motor driving solution.
CN202411172233.XA 2024-08-26 2024-08-26 A motor intelligent drive optimization method and system Active CN118690666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411172233.XA CN118690666B (en) 2024-08-26 2024-08-26 A motor intelligent drive optimization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411172233.XA CN118690666B (en) 2024-08-26 2024-08-26 A motor intelligent drive optimization method and system

Publications (2)

Publication Number Publication Date
CN118690666A CN118690666A (en) 2024-09-24
CN118690666B true CN118690666B (en) 2024-11-01

Family

ID=92775708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411172233.XA Active CN118690666B (en) 2024-08-26 2024-08-26 A motor intelligent drive optimization method and system

Country Status (1)

Country Link
CN (1) CN118690666B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107330174A (en) * 2017-06-21 2017-11-07 太原科技大学 A kind of wheel hub motor optimization method based on genetic annealing algorithms

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8131656B2 (en) * 2006-01-31 2012-03-06 The Board Of Trustees Of The University Of Illinois Adaptive optimization methods
CN116934220A (en) * 2023-07-05 2023-10-24 中博信息技术研究院有限公司 Intelligent warehouse layout method based on intelligent data analysis and algorithm optimization

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107330174A (en) * 2017-06-21 2017-11-07 太原科技大学 A kind of wheel hub motor optimization method based on genetic annealing algorithms

Also Published As

Publication number Publication date
CN118690666A (en) 2024-09-24

Similar Documents

Publication Publication Date Title
CN112016244B (en) Durable concrete multi-target mix proportion optimization method based on SVM and intelligent algorithm
CN116402002B (en) A multi-objective hierarchical reinforcement learning method for chip layout problems
CN117688968B (en) Tramcar layout method based on particle swarm optimization
CN101832909A (en) Selection method for subintervals of near infrared spectral characteristics based on simulated annealing-genetic algorithm
CN117313554B (en) Joint multi-objective optimization method, system, equipment and media for multi-section coking production
CN117592819A (en) Dynamic supervision method and device for land-sea complex oriented to ocean pasture
CN118643891A (en) A big data optimization control method and system based on genetic algorithm
CN103699720A (en) High-speed press slider mechanism size optimization method based on interval constraint violation degrees
CN111639820A (en) Energy consumption parameter optimization method and system for cement kiln production
CN118627844B (en) Method and device for optimizing dispatching of hydropower station based on improved multi-objective dung beetle algorithm
CN113591299B (en) Methods and systems for determining the overall performance of different types of microchannel radiators
CN117060468A (en) Energy storage peak shaving capacity optimization configuration method and system based on improved NSGA-II algorithm
CN118114562A (en) Method and system for optimizing carburizing and quenching technological parameters of aviation steel spiral bevel gear
CN111626493B (en) Charging network planning method considering charging service capacity and operation efficiency
CN118154162A (en) Bridge maintenance method and system based on improved simulated annealing algorithm
CN113381417A (en) Power distribution network district three-phase load unbalance optimization method, device and terminal
CN118690666B (en) A motor intelligent drive optimization method and system
CN119690678A (en) Method for solving power resource utilization rate based on genetic algorithm
CN102663230B (en) Method for land resource evaluation factor level classification based on genetic algorithm
CN118535870A (en) A closed-loop identification method for mixing process parameters
CN117764025A (en) Integrated circuit design method through population optimization algorithm
CN118218770A (en) Aluminum steel laser welding seam forming prediction method
CN117711516A (en) Method for predicting molten steel composition at converter end point
CN111783988B (en) Multi-target gray prediction evolution method and system for solving environmental economic scheduling problem
CN115358436A (en) A method for optimizing parameters of staggered groove electrolytic machining, storage medium and computer system

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