CN104401232B - Electric automobile torque optimization method based on data-driven PREDICTIVE CONTROL - Google Patents

Electric automobile torque optimization method based on data-driven PREDICTIVE CONTROL Download PDF

Info

Publication number
CN104401232B
CN104401232B CN201410793965.0A CN201410793965A CN104401232B CN 104401232 B CN104401232 B CN 104401232B CN 201410793965 A CN201410793965 A CN 201410793965A CN 104401232 B CN104401232 B CN 104401232B
Authority
CN
China
Prior art keywords
data
output
model
torque
vehicle
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
CN201410793965.0A
Other languages
Chinese (zh)
Other versions
CN104401232A (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.)
Jilin University
Original Assignee
Jilin University
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 Jilin University filed Critical Jilin University
Priority to CN201410793965.0A priority Critical patent/CN104401232B/en
Publication of CN104401232A publication Critical patent/CN104401232A/en
Application granted granted Critical
Publication of CN104401232B publication Critical patent/CN104401232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/72Electric energy management in electromobility

Landscapes

  • Feedback Control In General (AREA)

Abstract

A kind of electric automobile torque optimization method based on data-driven PREDICTIVE CONTROL, belongs to electric vehicle engineering field。It is an object of the invention to can effectively carry out electric automobile drive and braking moment optimized distribution, to realize the electric automobile torque optimization method based on data-driven PREDICTIVE CONTROL of vehicular longitudinal velocity tracking and controlling method。The present invention is first against the suitable excited data of the dynamic properties design of system, to ensure the abundant excitation to system;Secondly, the inputoutput data that excitation obtains is constructed the prediction output equation of system;Then, it is considered to executor's firm constraints of motor, set of cells and brake, the cost function of Model Predictive Control Algorithm structure moment of torsion optimal control is utilized;Finally, corresponding by solving cost function optimal problem, it is thus achieved that control input and act on system, thus realizing the control to system。Having only to when obtaining excited data in control algolithm of the present invention needs some off-line simulations to test, and development cost is relatively low。

Description

基于数据驱动预测控制的电动汽车扭矩优化方法Torque optimization method for electric vehicles based on data-driven predictive control

技术领域technical field

本发明属于电动汽车技术领域。The invention belongs to the technical field of electric vehicles.

背景技术Background technique

随着环境污染和能源危机的日益加重,纯电动汽车因为高能效、低排放、低噪声、能进行能量回收等优势成为当今汽车工业发展的重大方向,国家也出台了大量的优惠政策支持企业研究电动汽车,“十五”期间,国家863计划“电动汽车重大科技专项”连续两期得到国家大力支持,经过很多企业、高等院校和研究所人员的努力研究,我国在纯电动汽车的研究有了很大突破,其核心部件研发和整车系统设计方面有了不少技术创新和突破。无论是传统汽车还是电动汽车都涉及到扭矩优化的问题,如何设计控制器来合理的产生驱动和制动力矩信号,来实现车辆的良好性能,一直是汽车行业研究的重要问题之一。对于电动汽车,由于其结构比较简单,控制问题可以得到适当简化,同时,电机的响应速度快,电机的扭矩和转速容易获取,这为电动汽车的扭矩优化控制提供了良好的基础条件。针对于集中式电动汽车扭矩优化控制,主要有以下问题:With the increasing environmental pollution and energy crisis, pure electric vehicles have become a major direction for the development of the automotive industry due to their advantages such as high energy efficiency, low emissions, low noise, and energy recovery. The country has also issued a large number of preferential policies to support enterprise research. Electric vehicles, during the "Tenth Five-Year Plan" period, the National 863 Program "Major Science and Technology Projects for Electric Vehicles" received strong support from the state for two consecutive phases. After the efforts of many companies, colleges and research institutes, my country's research on pure electric vehicles has There have been many technological innovations and breakthroughs in the research and development of core components and the design of vehicle systems. Whether it is a traditional car or an electric car, the problem of torque optimization is involved. How to design a controller to reasonably generate driving and braking torque signals to achieve good performance of the vehicle has always been one of the important issues in the research of the automotive industry. For electric vehicles, due to its relatively simple structure, the control problem can be appropriately simplified. At the same time, the response speed of the motor is fast, and the torque and speed of the motor are easy to obtain, which provides a good basic condition for the torque optimization control of electric vehicles. For centralized electric vehicle torque optimization control, the main problems are as follows:

1.由于研究对象是集中式纯电动汽车,只有一个电机,并且是前轮驱动的,所以不存在分配优化问题,进而不能像四轮轮毂电机驱动电动汽车那样进行扭矩分配优化设计,只能从整车控制器中驱/制动扭矩的产生方面来考虑。1. Since the research object is a centralized pure electric vehicle, which has only one motor and is driven by the front wheels, there is no distribution optimization problem, and the torque distribution optimization design cannot be carried out like the four-wheel hub motor driven electric vehicle. Consider the generation of driving/braking torque in the vehicle controller.

2.电动汽车扭矩优化控制系统机理模型复杂,非线性强,建模困难。同时,控制器的输出驱动和制动力矩信号,要满足执行器电机和制动器的硬性约束,即控制器的输出驱动和制动力矩信号不能超过电机的实际最大输出力矩和制动器的最大制动力矩。2. The mechanism model of electric vehicle torque optimization control system is complex, nonlinear and difficult to model. At the same time, the output driving and braking torque signals of the controller must meet the rigid constraints of the actuator motor and brake, that is, the output driving and braking torque signals of the controller cannot exceed the actual maximum output torque of the motor and the maximum braking torque of the brake .

3.电动汽车需要动力电源,现在常用的是锂电池组,来给电机供电,电机的供电电压也影响着电机的最大输出力矩,因此在考虑电机的最大输出力矩时也必须考虑电池组输出电压的影响。3. Electric vehicles need a power source. Lithium battery packs are commonly used now to supply power to the motor. The power supply voltage of the motor also affects the maximum output torque of the motor. Therefore, the output voltage of the battery pack must also be considered when considering the maximum output torque of the motor. Impact.

发明内容Contents of the invention

本发明的目的是可以有效进行电动汽车驱动和制动力矩优化分配,以实现车辆纵向速度跟踪控制方法的基于数据驱动预测控制的电动汽车扭矩优化方法。The purpose of the present invention is to effectively optimize the distribution of electric vehicle driving and braking torque, so as to realize the data-driven predictive control-based electric vehicle torque optimization method of the vehicle longitudinal speed tracking control method.

本发明步骤是:The steps of the present invention are:

a、集中式电动汽车仿真模型搭建:采用模块化方法,在AMESim中搭建集中式电动汽车的整车模型,整个电动汽车仿真模型主要包括电驱动模块,传动模块、轮胎模块以及车辆纵向动力学,整车模型参数如表一:a. Construction of centralized electric vehicle simulation model: A modularized method is used to build a centralized electric vehicle vehicle model in AMESim. The entire electric vehicle simulation model mainly includes electric drive modules, transmission modules, tire modules and vehicle longitudinal dynamics. The vehicle model parameters are shown in Table 1:

表一电动汽车参数表Table 1 Electric Vehicle Parameters

;

b、扭矩优化数据驱动预测控制器设计:采用的数据驱动预测控制算法是由子空间辨识和模型预测控制相结合构成,具体的步骤如下:b. Torque optimization data-driven predictive controller design: The data-driven predictive control algorithm adopted is composed of subspace identification and model predictive control. The specific steps are as follows:

①激励数据的选取:选取驱动力矩命令和制动力矩命令作为激励输入信号,在AMESim整车模型中,将设计的驱动力矩和制动力矩数据给电机和制动器,开环运行模型,便得到测量的实际车速,驱动力矩命令、制动力矩命令以及测量得到的车速,便是最终需要的系统激励数据;根据这些数据得到系统的输入Hankel矩阵Up、Uf,输出Hankel矩阵Yp、Yf:①Selection of excitation data: select the driving torque command and braking torque command as the excitation input signal, in the AMESim vehicle model, give the designed driving torque and braking torque data to the motor and brake, and run the model in an open loop to obtain the measurement The actual vehicle speed, the driving torque command, the braking torque command and the measured vehicle speed are the final required system excitation data; according to these data, the input Hankel matrix Up and Uf of the system, and the output Hankel matrix Yp and Yf are obtained:

;

②预测方程:②Prediction equation:

通过输入输出Hankel矩阵构造出系统的预测输出方程为:The predicted output equation of the system constructed by inputting and outputting the Hankel matrix is:

(1) , (1)

即为通过子空间辨识方法估计的系统未来输出值,通过求解最小二乘问题,获得预测方程中的两个预测矩阵系数Lw和Lu That is, the future output value of the system estimated by the subspace identification method, by solving the least squares problem, the two prediction matrix coefficients Lw and Lu in the prediction equation are obtained

(2) (2)

两个预测矩阵系数Lw和Lu的解由下式求得:The solutions of the two prediction matrix coefficients Lw and Lu are obtained by the following equations:

(3) (3)

在已知系统的输入输出信息的Hankel矩阵,并获得Lw和Lu后,利用子空间预测方程(1),即得到系统未来输出值;After the Hankel matrix of the input and output information of the system is known, and Lw and Lu are obtained, the future output value of the system can be obtained by using the subspace prediction equation (1);

最终的输出预测方程为如公式(4),是Hankel矩阵的第一列The final output prediction equation is as formula (4), is the Hankel matrix first column of

(4) , (4)

③数据驱动预测控制器设计:对目标代价函数的求解获得优化后的驱动力矩和制动力矩信号,代价函数的数学表达形式如下:③Data-driven predictive controller design: The optimized driving torque and braking torque signals are obtained by solving the target cost function. The mathematical expression of the cost function is as follows:

(5) (5)

将系统输出的预测方程(4)改写为增量型式:Rewrite the prediction equation (4) output by the system into an incremental form:

(6) ; (6)

对增项型预测输出进行累加得到如下的模型预测输出方程:The following model prediction output equation is obtained by accumulating the incremental prediction output:

(7) (7)

其中,in,

;

F项为系统自由响应,相应地S?uf项被称为系统的控制响应;The F term is the free response of the system, and the corresponding S?uf term is called the control response of the system;

利用增量型预测输出模型构造出如下形式的代价函数:The cost function of the following form is constructed by using the incremental prediction output model:

(8) (8)

其中,in,

(9) , ; (9)

其中,Γu和Γy分别是输入项和输出项的加权矩阵;控制时域为Nu,而预测时域为Np;加权系数Λ=Γu/Γy,选定Λ值为: Among them, Γu and Γy are the weighting matrices of input items and output items respectively; the control time domain is Nu, and the prediction time domain is Np; the weighting coefficient Λ=Γu/Γy, the selected Λ value is:

扭矩优化系统中的电机最大力矩约束、制动器的最大制动力矩约束和实际车速的约束由下面的数学表达式描述:The maximum torque constraint of the motor, the maximum braking torque constraint of the brake and the constraint of the actual vehicle speed in the torque optimization system are described by the following mathematical expressions:

(10)。 (10).

本发明主要针对集中式前轮驱动电动汽车的扭矩优化问题,利用基于数据驱动预测控制算法来设计控制器,来实现电动汽车驱动和制动力矩的优化。基于数据驱动预测控制算法是数据驱动子空间辨识和模型预测控制的完美结合,它直接通过离线采集的输入输出数据以及经过数据处理而得到的特性来设计控制器,有效地避免了复杂的机理建模。通过采集的输入输出数据,可以得到扭矩的预测方程,然后利用模型预测控制方法构造代价函数,同时考虑约束条件,寻优求解得到优化后的驱动和制动力矩命令信号。本发明能很好地解决现有技术的三点问题,基于数据驱动预测控制算法能有效避免复杂的系统机理建模,本发明设计的扭矩优化控制器能有效避免复杂的系统机理建模,同时考虑电机、电池组和制动器的执行器硬性约束。有益效果是:The invention mainly aims at the torque optimization problem of the centralized front-wheel drive electric vehicle, and utilizes a data-driven predictive control algorithm to design a controller to realize the optimization of the driving and braking torque of the electric vehicle. The data-driven predictive control algorithm is a perfect combination of data-driven subspace identification and model predictive control. It directly uses the input and output data collected offline and the characteristics obtained after data processing to design the controller, effectively avoiding complex mechanism construction. mold. Through the collected input and output data, the torque prediction equation can be obtained, and then the cost function is constructed by using the model predictive control method, and the constraints are considered, and the optimal solution is obtained to obtain the optimized driving and braking torque command signals. The present invention can well solve the three problems of the prior art, and the data-driven predictive control algorithm can effectively avoid complex system mechanism modeling, and the torque optimization controller designed by the present invention can effectively avoid complex system mechanism modeling, and at the same time Consider actuator hard constraints for electric motors, battery packs, and brakes. The beneficial effects are:

1.传统的控制算法多数都是基于控制系统的机理模型的,但在实际扭矩优化过程中,机理建模复杂而且工作量大。数据驱动预测控制算法直接通过离线采集的输入输出数据以及经过数据处理而得到的特性来设计控制器,有效地避免了复杂的机理建模,省去了中间对模型的状态空间方程的求解,这样一方面减少了计算量,另一方面避免了从数据辨识到状态空间模型时引入的模型误差问题。1. Most of the traditional control algorithms are based on the mechanism model of the control system, but in the actual torque optimization process, the mechanism modeling is complicated and the workload is heavy. The data-driven predictive control algorithm designs the controller directly through the input and output data collected offline and the characteristics obtained through data processing, effectively avoiding complex mechanism modeling and eliminating the intermediate solution of the state space equation of the model. On the one hand, it reduces the amount of calculation, and on the other hand, it avoids the problem of model error introduced from data identification to state space model.

2.本发明中设计的扭矩优化控制器系统是一个非线性系统,并且考虑到了电机、电池组和制动器的执行器硬性约束,传统的控制算法并不能有效的处理系统的约束,而数据驱动预测控制算法能有效地处理多输入多输出带约束的控制问题,在求解时直接将约束条件编译到simulink中的S_function中在线求解。2. The torque optimization controller system designed in the present invention is a nonlinear system, and takes into account the rigid constraints of the actuators of the motor, battery pack and brake. The traditional control algorithm cannot effectively deal with the constraints of the system, and the data-driven prediction The control algorithm can effectively deal with the multi-input and multi-output control problems with constraints. When solving, the constraints are directly compiled into the S_function in simulink for online solution.

3.传统汽车电控单元的开发过程需要大量的经验及标定试验。本发明所述的控制算法中只需要在获取激励数据时需要一些离线仿真实验,开发成本较低。3. The development process of traditional automotive electronic control units requires a lot of experience and calibration tests. In the control algorithm of the present invention, only some off-line simulation experiments are needed when obtaining the excitation data, and the development cost is relatively low.

附图说明Description of drawings

图1是本发明所述的基于数据驱动预测控制的电动汽车扭矩优化控制框图;Fig. 1 is the electric vehicle torque optimization control block diagram based on data-driven predictive control according to the present invention;

图2是本发明所述的集中式电动汽车AMESim整车模型;Fig. 2 is the centralized electric vehicle AMESim vehicle model of the present invention;

图3是本发明所述的NEDC工况下的期望车速,单位为m/s,横坐标为时间,单位s;Fig. 3 is the expected vehicle speed under the NEDC working condition of the present invention, and the unit is m/s, and the abscissa is time, and the unit is s;

图4是本发明所使用的数据驱动预测控制算法构成框图;Fig. 4 is a block diagram of the data-driven predictive control algorithm used in the present invention;

图5是本发明中设计扭矩优化控制器选取的激励数据,激励输入为驱动和制动力矩命令,单位Nm;离线得到的输出数据是实际车速,单位是m/s;Fig. 5 is the excitation data selected by the design torque optimization controller in the present invention, and the excitation input is driving and braking torque command, unit Nm; The output data obtained off-line is actual vehicle speed, unit is m/s;

图6是本发明为了验证预测模型从激励数据中任意抽取的一段激励数据的辨识结果,横坐标为时间,单位s;Fig. 6 is the identification result of a section of excitation data arbitrarily extracted from the excitation data in order to verify the prediction model of the present invention, the abscissa is time, and the unit is s;

图7是本发明为了验证预测模型重新设计了一组激励得到的辨识结果,横坐标为时间,单位s;Fig. 7 is the identification result obtained by redesigning a group of excitations in order to verify the prediction model in the present invention, the abscissa is time, and the unit is s;

图8是本发明在simulink中搭建的扭矩优化数据驱动预测控制器,主要是通过Matlab中的M文件编译程序来实现数据驱动预测控制算法;Fig. 8 is the torque optimization data-driven predictive controller that the present invention builds in simulink, mainly realizes the data-driven predictive control algorithm by the M file compiling program in Matlab;

图9是本发明所述的初始参数下经过控制器作用后的实际车速与期望车速的对比,其中虚线表示实际车速,实线表示期望车速,单位均为m/s,横坐标为时间,单位s;Fig. 9 is the comparison between the actual vehicle speed and the expected vehicle speed after the action of the controller under the initial parameters of the present invention, wherein the dotted line indicates the actual vehicle speed, and the solid line indicates the expected vehicle speed, the unit is m/s, and the abscissa is time, the unit s;

图10是本发明所述的在只改变坡度,其他参数保持不变条件下,经过控制器作用后的实际车速与期望车速的对比,其中虚线表示实际车速,实线表示期望车速,单位均为m/s,横坐标为时间,单位s;Figure 10 is the comparison between the actual vehicle speed and the expected vehicle speed after the action of the controller under the condition that only the slope is changed and other parameters remain unchanged according to the present invention, wherein the dotted line indicates the actual vehicle speed, and the solid line indicates the expected vehicle speed, and the units are m/s, the abscissa is time, the unit is s;

图11是本发明所述的在只改变整车负载,其他参数保持不变条件下,经过控制器作用后的实际车速与期望车速的对比,其中虚线表示实际车速,实线表示期望车速,单位均为m/s,横坐标为时间,单位s;Figure 11 is the comparison between the actual vehicle speed and the expected vehicle speed after the action of the controller under the condition that only the vehicle load is changed and other parameters remain unchanged according to the present invention, wherein the dotted line indicates the actual vehicle speed, and the solid line indicates the expected vehicle speed, the unit Both are m/s, the abscissa is time, the unit is s;

图12是本发明所述的在只改变风速,其他参数保持不变条件下,经过控制器作用后的实际车速与期望车速的对比,其中虚线表示实际车速,实线表示期望车速,单位均为m/s,横坐标为时间,单位s。Fig. 12 is the comparison between the actual vehicle speed and the expected vehicle speed after the action of the controller under the condition that only the wind speed is changed and other parameters remain unchanged according to the present invention, wherein the dotted line indicates the actual vehicle speed, and the solid line indicates the expected vehicle speed, and the units are m/s, the abscissa is time, the unit is s.

具体实施方式detailed description

本发明所述的研究方法是基于数据驱动的模型预测控制,包括以下步骤:The research method of the present invention is based on data-driven model predictive control, comprising the following steps:

首先针对系统的动态特性设计适当的激励数据,以保证对系统的充分激励;其次,将激励所获得的输入输出数据构造出系统的预测输出方程;然后,考虑电机、电池组和制动器的执行器硬性约束,利用模型预测控制算法构造扭矩优化控制的代价函数;最后,通过求解代价函数对应的最优问题,获得控制输入并作用于系统,从而实现对系统的控制。Firstly, appropriate excitation data is designed for the dynamic characteristics of the system to ensure sufficient excitation of the system; secondly, the input and output data obtained by the excitation are used to construct the predictive output equation of the system; then, the actuators of the motor, battery pack and brake are considered With hard constraints, the model predictive control algorithm is used to construct the cost function of torque optimization control; finally, by solving the optimal problem corresponding to the cost function, the control input is obtained and acts on the system, so as to realize the control of the system.

为解决上述技术问题,本发明是采用如下技术方案实现的:In order to solve the problems of the technologies described above, the present invention is achieved by adopting the following technical solutions:

本发明所述的基于数据驱动预测控制的电动汽车扭矩优化是通过软件系统的联合仿真实现。软件系统由Matlab/Simulink和AMESim高级仿真软件组成。其中AMESim软件是一个商用的复杂系统建模仿真平台,它在本发明中的主要作用是提供高保真的集中电机式纯电动汽车模型,在仿真实验中这一模型代替真实车辆作为控制方法的实施对象;MATLAB/Simulink软件则是用于控制器的仿真模型搭建,即通过Simulink编程来完成基于数据驱动预测控制的扭矩优化控制器的搭建。The electric vehicle torque optimization based on data-driven predictive control described in the present invention is realized through joint simulation of software systems. The software system consists of Matlab/Simulink and AMESim advanced simulation software. Wherein the AMESim software is a commercial complex system modeling and simulation platform, and its main function in the present invention is to provide a high-fidelity centralized motor type pure electric vehicle model. In the simulation experiment, this model replaces the real vehicle as the implementation of the control method The object; MATLAB/Simulink software is used to build the simulation model of the controller, that is, to complete the construction of the torque optimization controller based on data-driven predictive control through Simulink programming.

从功能上说本发明可以包括以下几部分:控制器仿真模块和集中式纯电动汽车模型。下面详细说明各部分的作用:Functionally speaking, the present invention may include the following parts: a controller simulation module and a centralized pure electric vehicle model. The role of each part is explained in detail below:

集中式纯电动汽车模型在控制器的设计中主要的作用是通过离线仿真得到能体现系统的动态特性的输入输出激励数据,控制器根据这些数据构造出系统的预测输出方程。The main role of the centralized pure electric vehicle model in the design of the controller is to obtain the input and output excitation data that can reflect the dynamic characteristics of the system through offline simulation, and the controller constructs the predictive output equation of the system based on these data.

控制器模块的主要作用是对电动汽车模型的各种状态信息如车速、电池输出电压、电机输出力矩等进行采集,然后进行查表和运算,生产控制信号——电机的驱动力矩信号和机械制动力矩信号并且将该信号发送给电动汽车的执行机构——电机和传统机械制动机构;The main function of the controller module is to collect various state information of the electric vehicle model, such as vehicle speed, battery output voltage, motor output torque, etc., and then perform table lookup and calculation, and produce control signals—motor drive torque signals and mechanical control signals. Power torque signal and send the signal to the actuator of the electric vehicle - the motor and the traditional mechanical brake mechanism;

电动汽车模型包括电驱动系统模型、传动轴模型、车辆动力学模型、轮胎模型等几个部分。它的作用是按照扭矩优化控制器给出的控制信号来产生相应的驱动或制动力矩,改变车辆的动态——电机输出力矩、机械制动力矩、车速等,实现车辆的良好性能。The electric vehicle model includes several parts such as the electric drive system model, the drive shaft model, the vehicle dynamics model, and the tire model. Its function is to generate corresponding driving or braking torque according to the control signal given by the torque optimization controller, and change the dynamics of the vehicle—motor output torque, mechanical braking torque, vehicle speed, etc., to achieve good performance of the vehicle.

本发明中基于数据驱动预测控制的电动汽车扭矩优化方法实施的控制框图如图一所示,图中扭矩优化控制器是在Simulink中搭建的,控制器的输入是期望的车速,而实际车速是实时反馈回控制器的,Tmax是电机最大驱动力矩,它是由电机的机械特性和电池的输出电压共同决定的,既体现了电机本身的执行器硬性约束条件,又体现出了随着电池放电时间增加电压减小对整车性能的影响。整车控制器得到的驱动力矩必须小于等于Tmax,因此Tmax是作为约束给到控制器的。图中集中式电动汽车模型是在AMESim中搭建的,用来模拟实车的运行。控制器优化得到的驱动和制动力矩信号分别给到电机和制动模块,控制车辆的运行,而车辆的实际车速作为反馈信号反馈给控制器。The control block diagram of the implementation of the electric vehicle torque optimization method based on data-driven predictive control in the present invention is shown in Figure 1, the torque optimization controller in the figure is built in Simulink, the input of the controller is the desired vehicle speed, and the actual vehicle speed is Feedback to the controller in real time, Tmax is the maximum driving torque of the motor, which is determined by the mechanical characteristics of the motor and the output voltage of the battery. Time increases the voltage to reduce the impact on vehicle performance. The driving torque obtained by the vehicle controller must be less than or equal to Tmax, so Tmax is given to the controller as a constraint. The centralized electric vehicle model in the figure is built in AMESim to simulate the operation of the real vehicle. The driving and braking torque signals optimized by the controller are respectively sent to the motor and braking module to control the operation of the vehicle, and the actual speed of the vehicle is fed back to the controller as a feedback signal.

本发明的控制目标是,扭矩优化控制器根据实时反馈回来的实际车速与期望车速信号对比,在满足约束条件前提下,优化得到驱动和制动力矩信号Tm、Tb,并给到整车模型中的电机和制动模块,控制车辆的运行,最终让实际车速跟踪上期望车速。The control objective of the present invention is that the torque optimization controller compares the actual vehicle speed and the expected vehicle speed signal fed back in real time, and under the premise of satisfying the constraint conditions, optimizes the driving and braking torque signals Tm and Tb, and gives them to the vehicle model The motor and brake module control the operation of the vehicle, and finally let the actual speed track the desired speed.

本发明提供了一套基于以上运行原理和运行过程的装置。即基于PC机的离线电动汽车扭矩优化设计试验平台。搭建以及运行过程如下:The present invention provides a set of devices based on the above operation principle and operation process. That is, a PC-based off-line electric vehicle torque optimization design test platform. The build and run process is as follows:

1、软件选择1. Software selection

该控制系统的被控对象和控制器的仿真模型分别通过软件Matlab/Simulink和AMESim进行搭建,软件版本分别为MatlabR2009a和AMESimR10,求解器选择分别为ode3和Euler。仿真步长为定步长,步长选择为0.1s。The simulation models of the controlled object and the controller of the control system are built by the software Matlab/Simulink and AMESim respectively. The software versions are MatlabR2009a and AMESimR10 respectively, and the solvers are ode3 and Euler respectively. The simulation step size is a fixed step size, and the step size is selected as 0.1s.

2、联合仿真设置2. Co-simulation settings

要实现Matlab/Simulink和AMESim的联合仿真,首先必须按照要求设置PC电脑的环境变量,让两者相互关联。然后在AMESim界面中添加与simulink通信的接口模块,将Matlab/Simulink和AMESim间需要通信的变量连接到这个模块;最后经过系统编译之后,AMESim中的模型信息以S-function的形式保留在Simulink中,从而实现两者的联合仿真与通信。在运行Simulink仿真模型时,AMESim模型也在同时进行计算和求解。仿真过程中两者之间不断进行数据的交换。如果对AMESim中的模型结构或者参数设置进行了修改,则需要重新编译。值得注意的是,两者的仿真步长必须一致。In order to realize the co-simulation of Matlab/Simulink and AMESim, the environment variables of the PC must be set according to the requirements first, so that the two are related to each other. Then add an interface module for communicating with simulink in the AMESim interface, and connect the variables that need to communicate between Matlab/Simulink and AMESim to this module; finally, after system compilation, the model information in AMESim is retained in Simulink in the form of S-function , so as to realize the joint simulation and communication of the two. When running the Simulink simulation model, the AMESim model is also being calculated and solved at the same time. During the simulation process, data is exchanged between the two continuously. If the model structure or parameter settings in AMESim are modified, recompilation is required. It is worth noting that the simulation step size of the two must be the same.

本发明详细步骤是:Detailed steps of the present invention are:

a、集中式电动汽车仿真模型搭建:采用模块化方法,在AMESim中搭建集中式电动汽车的整车模型,如图二所示。整个电动汽车仿真模型主要包括电驱动模块,传动模块、轮胎模块以及车辆纵向动力学,整车模型参数如表一:a. Construction of centralized electric vehicle simulation model: A modularized method is used to build a centralized electric vehicle vehicle model in AMESim, as shown in Figure 2. The whole electric vehicle simulation model mainly includes electric drive module, transmission module, tire module and vehicle longitudinal dynamics. The parameters of the whole vehicle model are shown in Table 1:

表一电动汽车参数表Table 1 Electric Vehicle Parameters

;

电驱动系统为车辆提供动力,包括电池部分和电机部分。电池主要是为电机供电,纯电动汽车的电池部分是由多个单体电池串并联构成,常用的是锂电池组。电池组对外输出的终端电压为单个电池输出电压和,电池系统输出终端电压即电池组提供给电机的电压,在这个模型中电池系统额定端电压是320V;本发明中采用的是永磁同步电机,电机的控制方法是矢量控制法,电机的最大输出力矩为300Nm。The electric drive system provides power for the vehicle, including the battery part and the motor part. The battery is mainly used to supply power to the motor. The battery part of a pure electric vehicle is composed of multiple single batteries connected in series and parallel. Lithium battery packs are commonly used. The terminal voltage output by the battery pack is the sum of the output voltage of a single battery. The output terminal voltage of the battery system is the voltage provided by the battery pack to the motor. In this model, the rated terminal voltage of the battery system is 320V; the permanent magnet synchronous motor is used in the present invention , the control method of the motor is the vector control method, and the maximum output torque of the motor is 300Nm.

传动模块主要包括变速器和驱动轴。电机输出的力矩经由变速器通过不同的齿轮半径产生不同速比从而减小转速增大输出力矩,这里的传动比是5:1,即转速变为原来的1/5,扭矩增大为原来的5倍,正好弥补电机本身转速较高,扭矩不足的问题。本发明重点研究车辆的直线运行,左右轮的输出力矩和转速相同不用差分,因而没有差速器。The transmission module mainly includes the transmission and the drive shaft. The torque output by the motor passes through the transmission to produce different speed ratios through different gear radii to reduce the speed and increase the output torque. The transmission ratio here is 5:1, that is, the speed becomes 1/5 of the original, and the torque increases to 5 of the original. times, just to make up for the high speed of the motor itself and the problem of insufficient torque. The present invention focuses on the linear running of the vehicle, the output torque and rotational speed of the left and right wheels are the same without differential, and thus there is no differential.

图中有四个轮胎模型,轮胎使用的是MagicFormula魔术公式模型。There are four tire models in the picture, and the tires use the MagicFormula magic formula model.

车辆纵向动力学部分,其中考虑了车辆在行驶过程中受到驱动力,制动力和行驶阻力的作用,其中行驶阻力包括空气阻力,滚动阻力和摩擦阻力。在这个模块中可以设置车辆的整体质量、坡度、风速等参数。The vehicle longitudinal dynamics part, which considers the driving force, braking force and driving resistance of the vehicle during driving, where the driving resistance includes air resistance, rolling resistance and frictional resistance. In this module, parameters such as the overall quality of the vehicle, slope, and wind speed can be set.

模型选择的循环工况是欧洲轻型车的循环工况NEDC(NewEuropeanDrivingCycle),这一工况中含有若干次较长时间的停车和匀速运动,且起步和制动曲线都较为平滑,能较好的体现车辆的稳态性能。这一工况模拟了汽车在市区路况下的行驶状态,具有较强的实用性。EUDC驾驶循环耗时1200秒,该工况下车辆的期望速度如图三所示,它就是扭矩优化控制器的期望速度。The cycle condition selected by the model is the cycle condition NEDC (New European Driving Cycle) of European light-duty vehicles. This condition contains several times of stopping and constant speed movement for a long time, and the starting and braking curves are relatively smooth. It reflects the steady-state performance of the vehicle. This working condition simulates the driving state of the car in urban road conditions, and has strong practicability. The EUDC driving cycle takes 1200 seconds. The expected speed of the vehicle under this condition is shown in Figure 3, which is the expected speed of the torque optimization controller.

b、本发明中控制器的控制目标是在进行扭矩优化的同时满足对NEDC工况的速度要求,同时驱动力矩和制动力矩应该满足实际中的电机最大扭矩和电池的约束,这些约束是在设计数据驱动预测控制器时在约束条件处理中体现的。本发明扭矩优化数据驱动预测控制器设计:采用的数据驱动预测控制算法是由子空间辨识和模型预测控制相结合构成,其构成示意图如图四所示。该方法与其他控制方法的主要区别是不需要用传统的传递函数或状态空间模型来设计控制器,而是应用子空间线性预测方程预测系统的未来输出值,子空间预测方程的系数是直接通过系统的离线输入输出数据计算得到的,基于预测方程,结合模型预测控制算法基本原理,得到带约束的数据驱动预测控制方法。具体的步骤如下:b. The control target of the controller in the present invention is to meet the speed requirements of the NEDC working condition while optimizing the torque, and at the same time, the driving torque and braking torque should meet the constraints of the maximum torque of the motor and the battery in practice. These constraints are in Embodied in constraint handling when designing data-driven predictive controllers. The design of the torque-optimized data-driven predictive controller of the present invention: the adopted data-driven predictive control algorithm is composed of the combination of subspace identification and model predictive control, and its composition schematic diagram is shown in Figure 4. The main difference between this method and other control methods is that it does not need to use the traditional transfer function or state space model to design the controller, but to use the subspace linear prediction equation to predict the future output value of the system. The coefficients of the subspace prediction equation are directly passed The off-line input and output data of the system are calculated, based on the prediction equation, combined with the basic principle of the model predictive control algorithm, a data-driven predictive control method with constraints is obtained. The specific steps are as follows:

①激励数据的选取:在设计控制器前,首先需要针对前面搭建的整车模型的动态特性设计适当的激励数据,再根据这些激励数据得到系统预测输出方程。这里选取驱动力矩命令和制动力矩命令作为激励输入信号,在AMESim整车模型中,将设计的驱动力矩和制动力矩数据给电机和制动器,开环运行模型,便得到测量的实际车速,这里的仿真步长为0.1s。驱动力矩命令、制动力矩命令以及测量得到的车速,便是最终需要的系统激励数据如图五所示。在激励的选取上由于驱动力矩的范围是:-300Nm-300Nm,制动力矩信号范围:0-1,车速范围:0-40m/s,为了确保激励模型的精确性,对激励数据进行了归一化,驱动力矩的归一化系数为1/100,制动力矩归一化系数为1,车速归一化系数为1/40。值得注意的是,在控制器将优化求解得到后的驱动和制动力矩命令给到整车模型前,需要反归一化。得到激励数据后,将其存为data数据文件,根据这些数据得到系统的输入Hankel矩阵Up、Uf,输出Hankel矩阵Yp、Yf:① Selection of excitation data: Before designing the controller, it is first necessary to design appropriate excitation data for the dynamic characteristics of the vehicle model built earlier, and then obtain the system prediction output equation based on these excitation data. Here, the driving torque command and the braking torque command are selected as the excitation input signals. In the AMESim vehicle model, the designed driving torque and braking torque data are given to the motor and brake, and the model is run in an open loop to obtain the measured actual vehicle speed. Here The simulation step size is 0.1s. The driving torque command, braking torque command and the measured vehicle speed are the final required system excitation data, as shown in Figure 5. In the selection of excitation, since the driving torque range is: -300Nm-300Nm, the braking torque signal range: 0-1, and the vehicle speed range: 0-40m/s, in order to ensure the accuracy of the excitation model, the excitation data is normalized Normalization, the normalization coefficient of driving torque is 1/100, the normalization coefficient of braking torque is 1, and the normalization coefficient of vehicle speed is 1/40. It is worth noting that before the controller gives the driving and braking torque commands after the optimization solution to the vehicle model, denormalization is required. After getting the excitation data, save it as a data file, and get the input Hankel matrix Up, Uf of the system according to these data, and output the Hankel matrix Yp, Yf:

矩阵的下角标的p和f分别表示“过去(past)”和“未来(future)”,为了保证数据能够包含关于系统状态的足够信息,往往需要Hankel矩阵的列数需要足够的大。对于单输入单输出系统,Hankel矩阵中的元素是一个数值,而对于多输入多输出系统,Hankel矩阵中的元素是一个相应维数的列矩阵。本发明的输入为驱动力矩命令和制动力矩命令,输出为车速,因此输入Hankel矩阵Up、Uf中的元素是2维的列矩阵,输出Hankel矩阵Yp、Yf中的元素是一个数值;The subscripts p and f of the matrix represent "past" and "future" respectively. In order to ensure that the data can contain sufficient information about the state of the system, the number of columns of the Hankel matrix often needs to be large enough. For a single-input single-output system, the element in the Hankel matrix is a value, while for a multiple-input multiple-output system, the element in the Hankel matrix is a column matrix of the corresponding dimension. The input of the present invention is the driving torque command and the braking torque command, and the output is the vehicle speed, so the elements in the input Hankel matrix Up, Uf are 2-dimensional column matrices, and the elements in the output Hankel matrix Yp, Yf are a numerical value;

.

②预测方程及其验证:② Prediction equation and its verification:

通过前面得到的输入输出Hankel矩阵构造出系统的预测输出方程为:The predictive output equation of the system constructed by the input and output Hankel matrix obtained above is:

(1) , (1)

即为通过子空间辨识方法估计的系统未来输出值,通过求解最小二乘问题,获得预测方程中的两个预测矩阵系数Lw和Lu That is, the future output value of the system estimated by the subspace identification method, by solving the least squares problem, the two prediction matrix coefficients Lw and Lu in the prediction equation are obtained

(2) (2)

两个预测矩阵系数Lw和Lu的解由下式求得:The solutions of the two prediction matrix coefficients Lw and Lu are obtained by the following equations:

(3) (3)

在已知系统的输入输出信息的Hankel矩阵,并获得Lw和Lu后,利用子空间预测方程(1),即得到系统未来输出值;在实际上控制器应用时,只有输出Hankel矩阵的第一列作为系统未来的估计值,这样一方面大大减少了计算量,另一方面为模型预测控制的应用做好了准备。因此最终的输出预测方程为如公式(4),是Hankel矩阵的第一列After the Hankel matrix of the input and output information of the system is known, and Lw and Lu are obtained, the future output value of the system can be obtained by using the subspace prediction equation (1); in the actual application of the controller, only the Hankel matrix is output The first column of is used as the estimated value of the system in the future, which on the one hand greatly reduces the amount of calculation, and on the other hand prepares for the application of model predictive control. Therefore, the final output prediction equation is as in formula (4), is the Hankel matrix first column of

(4) , (4)

根据激励数据得到系统的预测输出模型,对于数据驱动预测控制算法,预测模型能否精确地预测系统的未来输出,决定着控制性能的优劣。下面,本发明通过几组仿真实验对得到的预测方程进行一定的验证。The predictive output model of the system is obtained according to the excitation data. For the data-driven predictive control algorithm, whether the predictive model can accurately predict the future output of the system determines the quality of the control performance. Next, the present invention verifies the prediction equation obtained through several sets of simulation experiments.

图六是从激励数据中任意抽取的一段激励数据的辨识结果。可以看到预测得到的系统输出与实际系统输出非常接近。另外,我们重新设计了一组激励如图七所示,预测的系统输出也能很好的跟踪上实际的系统输出。这说明设计的预测模型精度是符合要求的。Figure 6 is the identification result of a section of incentive data randomly extracted from the incentive data. It can be seen that the predicted system output is very close to the actual system output. In addition, we redesigned a set of incentives as shown in Figure 7, and the predicted system output can also track the actual system output well. This shows that the accuracy of the designed prediction model meets the requirements.

③数据驱动预测控制器设计:在获得系统输出的预测输出方程后,根据模型预测控制算法。通过对目标代价函数的求解获得优化后的驱动力矩和制动力矩信号,代价函数的数学表达形式如下:③Data-driven predictive controller design: After obtaining the predictive output equation of the system output, predictive control algorithm based on the model. The optimized driving torque and braking torque signals are obtained by solving the objective cost function, and the mathematical expression of the cost function is as follows:

(5) (5)

由预测控制理论可知,采用增量型的预测控制器,这样可以使控制器具有积分作用,从而减少系统的稳态误差,提高控制效果。因此将系统输出的预测方程(4)改写为增量型式:It can be seen from the predictive control theory that the incremental predictive controller is used, which can make the controller have an integral function, thereby reducing the steady-state error of the system and improving the control effect. Therefore, the prediction equation (4) output by the system is rewritten as an incremental form:

(6) ; (6)

对增项型预测输出进行累加得到如下的模型预测输出方程:The following model prediction output equation is obtained by accumulating the incremental prediction output:

(7) (7)

其中,in,

;

F项为系统自由响应,相应地S?uf项被称为系统的控制响应;The F term is the free response of the system, and the corresponding S?uf term is called the control response of the system;

利用增量型预测输出模型构造出如下形式的代价函数:The cost function of the following form is constructed by using the incremental prediction output model:

(8) (8)

其中,in,

(9) , ; (9)

其中,Γu和Γy分别是输入项和输出项的加权矩阵;控制时域为Nu,而预测时域为Np;在本发明中,在后期经过大量实验仿真后,选定预测时域为20,控制时域为4。这里的参考值Ref就是NEDC循环工况的期望车速v_q,对它进行归一化后实时更新给到控制器中的。加权系数Λ=Γu/Γy,经过大量仿真实验调整后,选定Λ值为: Wherein, Γu and Γy are the weighted matrices of the input and output items respectively; the control time domain is Nu, and the prediction time domain is Np; in the present invention, after a large number of experimental simulations in the later stage, the selected prediction time domain is 20, The control time domain is 4. The reference value Ref here is the expected vehicle speed v_q of the NEDC cycle condition, which is normalized and updated to the controller in real time. The weighting coefficient Λ=Γu/Γy, after a large number of simulation experiments and adjustments, the selected value of Λ is:

扭矩优化系统中的电机最大力矩约束、制动器的最大制动力矩约束和实际车速的约束由下面的数学表达式描述:The maximum torque constraint of the motor, the maximum braking torque constraint of the brake and the constraint of the actual vehicle speed in the torque optimization system are described by the following mathematical expressions:

(10)。 (10).

最终的扭矩优化数据驱动预测控制器模型如图八所示,主要是通过MatlabThe final torque-optimized data-driven predictive controller model is shown in Fig. 8, mainly through Matlab

中的M文件编译程序实现。通过AMESim和Simulink联合仿真技术,经过调试后,在初始参数下得到的车速仿真结果图如图九所示,由图可知实际车速与期望车速基本重合,控制效果良好。The M file compiler in the program is implemented. Through the joint simulation technology of AMESim and Simulink, after debugging, the vehicle speed simulation result obtained under the initial parameters is shown in Figure 9. It can be seen from the figure that the actual vehicle speed basically coincides with the expected vehicle speed, and the control effect is good.

实验验证Experimental verification

为了进一步验证扭矩优化数据驱动预测控制器的控制性能,在集中式电动汽车模型中分别改变坡度、整车负载和风速大小而其他参数不变这三种工况下对扭矩优化控制器进行了性能验证。In order to further verify the control performance of the torque-optimized data-driven predictive controller, the performance of the torque-optimized controller was tested under the three conditions of changing the slope, vehicle load, and wind speed in the centralized electric vehicle model, respectively, while other parameters remained unchanged. verify.

1)不同坡度1) Different slopes

电动汽车的爬坡能力要求一般是大于等于20%(即9度),通过实验得知电机的最大扭矩直接影响着爬坡性能(这里的爬坡性能是指在该坡度下能实现ENDC期望速度跟踪),当最大扭矩为100Nm时爬坡能力为10%,超过10%后不能实现速度的跟踪;最大扭矩200Nm时为15%,超过15%后不能实现速度的跟踪;最大扭矩300Nm时最大坡度能达到20%的要求。本发明中设定电机最大扭矩为300Nm,保持其他量不变,风速0m/s,整车质量1000kg,只改变坡度,分别设定为5%、10%、20%,得到的仿真结果如图十所示。The climbing ability requirement of electric vehicles is generally greater than or equal to 20% (that is, 9 degrees). Through experiments, it is known that the maximum torque of the motor directly affects the climbing performance (the climbing performance here refers to the ENDC desired speed that can be achieved under this slope. Tracking), when the maximum torque is 100Nm, the climbing ability is 10%, and the speed tracking cannot be realized after exceeding 10%; when the maximum torque is 200Nm, it is 15%, and the speed tracking cannot be realized after exceeding 15%; the maximum slope can not be realized when the maximum torque is 300Nm Can meet the 20% requirement. In the present invention, the maximum torque of the motor is set to 300Nm, and other quantities are kept unchanged, the wind speed is 0m/s, and the mass of the vehicle is 1000kg. Only the slope is changed, and they are respectively set to 5%, 10%, and 20%. The obtained simulation results are shown in the figure Ten shown.

由图可知,由于有了坡度,在刚开始坡道起步的时候车辆有下滑的趋势,坡度越大下滑的趋势越大,实际中坡道起步是需要踩着刹车的,所以在模型中这是合理的。随着坡度的增加整体的速度跟踪效果还是很好的,但是由于电机最大扭矩的执行器硬性条件约束,在坡度很大的时候,车速在达到上限值后没法继续增加,因而在速度较高时,车速只能维持在上限值,而无法继续跟踪,但是在速度上限以下的速度跟踪效果很好。其中,在20%坡度时速度上限约为18m/s(64.8km/h)左右,这在现实中也是合理的。说明扭矩优化数据驱动预测控制器在不同坡度情况下,仍然具有良好的控制性能。It can be seen from the figure that due to the slope, the vehicle has a tendency to slide when it starts to start on a hill. The greater the slope, the greater the tendency to slide. In practice, it is necessary to step on the brakes when starting on a hill, so in the model this is reasonable. As the slope increases, the overall speed tracking effect is still very good. However, due to the rigid condition of the actuator with the maximum torque of the motor, when the slope is very large, the vehicle speed cannot continue to increase after reaching the upper limit. When the speed is high, the vehicle speed can only be maintained at the upper limit and cannot continue to track, but the speed tracking below the upper speed limit works well. Among them, the upper limit of speed is about 18m/s (64.8km/h) at a slope of 20%, which is also reasonable in reality. It shows that the torque optimization data-driven predictive controller still has good control performance under different slope conditions.

2)不同整车负载2) Different vehicle loads

保持其他量不变,设定坡度为0,风速为0m/s,只改变整车质量m,假设乘客的平均体重为75kg,分别设定整车质量为1500kg、(1500+2*75)kg、(1500+4*75)kg,得到的车速曲线如图十一所示。Keep other quantities unchanged, set the slope to 0, the wind speed to 0m/s, and only change the mass of the vehicle m, assuming that the average weight of passengers is 75kg, set the mass of the vehicle to 1500kg, (1500+2*75)kg respectively , (1500+4*75)kg, the obtained speed curve is shown in Figure 11.

由图可知在这些质量下控制效果整体都很好,但是随着质量的增加,偏差会增大,在质量为(1500+4*75)kg时有了一些超调,但是整体跟踪效果都很好,说明数据驱动滚动优化整车控制器在不同质量情况下,仍然具有良好的控制性能。It can be seen from the figure that the overall control effect is very good under these masses, but as the mass increases, the deviation will increase, and there is some overshoot when the mass is (1500+4*75) kg, but the overall tracking effect is very good. Well, it shows that the data-driven rolling optimization vehicle controller still has good control performance under different quality conditions.

3)不同风速3) Different wind speeds

保持其他量不变,设定坡度为0,整车质量为1000kg,只改变环境风速,分别设定为10m/s、20m/s、30m/s,得到的车速对比曲线如图11所示。由图可知,在改变环境风速到30m/s后,车速的跟踪效果依然很好,说明扭矩优化数据驱动预测控制器在不同风速情况下,仍然具有良好的控制性能。Keeping other variables unchanged, set the slope to 0, the mass of the vehicle to 1000kg, and only change the ambient wind speed, which is set to 10m/s, 20m/s, and 30m/s respectively. The obtained vehicle speed comparison curves are shown in Figure 11. It can be seen from the figure that after changing the ambient wind speed to 30m/s, the tracking effect of the vehicle speed is still very good, which shows that the torque optimization data-driven predictive controller still has good control performance under different wind speeds.

本发明针对于集中式电动汽车设计了基于数据驱动预测控制的扭矩优化控制器,这种方法巧妙的将数据驱动子空间辨识和模型预测控制方法结合在一起,根据系统的输入输出数据得到系统的预测方程,再通过模型预测控制优化得到系统的控制输入,同时显式的考虑了系统的约束。为了验证扭矩优化控制器的有效性,在AMESim高级仿真软件中搭建了集中式前轮驱动电动汽车模型,并且在不同坡度、不同整车负载、不同风速工况下验证了控制器的性能。仿真结果表明,数据驱动预测控制器整车控制器在不同质量,不同坡度,不通风速情况下,仍然具有良好的控制性能。The present invention designs a torque optimization controller based on data-driven predictive control for centralized electric vehicles. This method cleverly combines data-driven subspace identification and model predictive control methods, and obtains the system's performance based on the input and output data of the system. The predictive equations are then optimized by model predictive control to obtain the control input of the system, while explicitly considering the constraints of the system. In order to verify the effectiveness of the torque optimization controller, a centralized front-wheel drive electric vehicle model was built in the AMESim advanced simulation software, and the performance of the controller was verified under different slopes, different vehicle loads, and different wind speed conditions. The simulation results show that the data-driven predictive controller vehicle controller still has good control performance under the conditions of different masses, different slopes, and no ventilation speed.

Claims (1)

1.一种基于数据驱动预测控制的电动汽车扭矩优化方法,其特征在于:其步骤是:1. A method for optimizing electric vehicle torque based on data-driven predictive control, characterized in that: its steps are: a、集中式电动汽车仿真模型搭建:采用模块化方法,在AMESim中搭建集中式电动汽车的整车模型,整个电动汽车仿真模型主要包括电驱动模块,传动模块、轮胎模块以及车辆纵向动力学,整车模型参数如表一:a. Construction of centralized electric vehicle simulation model: A modularized method is used to build a centralized electric vehicle vehicle model in AMESim. The entire electric vehicle simulation model mainly includes electric drive modules, transmission modules, tire modules and vehicle longitudinal dynamics. The vehicle model parameters are shown in Table 1: 表一电动汽车参数表Table 1 Electric Vehicle Parameters ; b、扭矩优化数据驱动预测控制器设计:采用的数据驱动预测控制算法是由子空间辨识和模型预测控制相结合构成,具体的步骤如下:b. Torque optimization data-driven predictive controller design: The data-driven predictive control algorithm adopted is composed of subspace identification and model predictive control. The specific steps are as follows: ①激励数据的选取:选取驱动力矩命令和制动力矩命令作为激励输入信号,在AMESim整车模型中,将设计的驱动力矩和制动力矩数据给电机和制动器,开环运行模型,便得到测量的实际车速,驱动力矩命令、制动力矩命令以及测量得到的车速,便是最终需要的系统激励数据;根据这些数据得到系统的输入Hankel矩阵Up、Uf,输出Hankel矩阵Yp、Yf:①Selection of excitation data: select the driving torque command and braking torque command as the excitation input signal, in the AMESim vehicle model, give the designed driving torque and braking torque data to the motor and brake, and run the model in an open loop to obtain the measurement The actual vehicle speed, the driving torque command, the braking torque command and the measured vehicle speed are the final required system excitation data; according to these data, the input Hankel matrix Up and Uf of the system, and the output Hankel matrix Yp and Yf are obtained: ; ②预测方程:②Prediction equation: 通过输入输出Hankel矩阵构造出系统的预测输出方程为:The predicted output equation of the system constructed by inputting and outputting the Hankel matrix is: (1) , (1) 即为通过子空间辨识方法估计的系统未来输出值,通过求解最小二乘问题,获得预测方程中的两个预测矩阵系数Lw和Lu That is, the future output value of the system estimated by the subspace identification method, by solving the least squares problem, the two prediction matrix coefficients Lw and Lu in the prediction equation are obtained (2) (2) 两个预测矩阵系数Lw和Lu的解由下式求得:The solutions of the two prediction matrix coefficients Lw and Lu are obtained by the following equations: (3) (3) 在已知系统的输入输出信息的Hankel矩阵,并获得Lw和Lu后,利用子空间预测方程(1),即得到系统未来输出值;After the Hankel matrix of the input and output information of the system is known, and Lw and Lu are obtained, the future output value of the system can be obtained by using the subspace prediction equation (1); 最终的输出预测方程为如公式(4),是Hankel矩阵的第一列The final output prediction equation is as formula (4), is the Hankel matrix first column of (4) , (4) ③数据驱动预测控制器设计:对目标代价函数的求解获得优化后的驱动力矩和制动力矩信号,代价函数的数学表达形式如下:③Data-driven predictive controller design: The optimized driving torque and braking torque signals are obtained by solving the target cost function. The mathematical expression of the cost function is as follows: (5) (5) 将系统输出的预测方程(4)改写为增量型式:Rewrite the prediction equation (4) output by the system into an incremental form: (6) ; (6) 对增项型预测输出进行累加得到如下的模型预测输出方程:The following model prediction output equation is obtained by accumulating the incremental prediction output: (7) (7) 其中,in, ; F项为系统自由响应,相应地S?uf项被称为系统的控制响应;The F term is the free response of the system, and the corresponding S?uf term is called the control response of the system; 利用增量型预测输出模型构造出如下形式的代价函数:The cost function of the following form is constructed by using the incremental prediction output model: (8) (8) 其中,in, (9) , ; (9) 其中,Γu和Γy分别是输入项和输出项的加权矩阵;控制时域为Nu,而预测时域为Np;加权系数Λ=Γu/Γy,选定Λ值为: Among them, Γu and Γy are the weighting matrices of input items and output items respectively; the control time domain is Nu, and the prediction time domain is Np; the weighting coefficient Λ=Γu/Γy, the selected Λ value is: 扭矩优化系统中的电机最大力矩约束、制动器的最大制动力矩约束和实际车速的约束由下面的数学表达式描述:The maximum torque constraint of the motor, the maximum braking torque constraint of the brake and the constraint of the actual vehicle speed in the torque optimization system are described by the following mathematical expressions: (10)。 (10).
CN201410793965.0A 2014-12-21 2014-12-21 Electric automobile torque optimization method based on data-driven PREDICTIVE CONTROL Active CN104401232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410793965.0A CN104401232B (en) 2014-12-21 2014-12-21 Electric automobile torque optimization method based on data-driven PREDICTIVE CONTROL

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410793965.0A CN104401232B (en) 2014-12-21 2014-12-21 Electric automobile torque optimization method based on data-driven PREDICTIVE CONTROL

Publications (2)

Publication Number Publication Date
CN104401232A CN104401232A (en) 2015-03-11
CN104401232B true CN104401232B (en) 2016-06-22

Family

ID=52638925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410793965.0A Active CN104401232B (en) 2014-12-21 2014-12-21 Electric automobile torque optimization method based on data-driven PREDICTIVE CONTROL

Country Status (1)

Country Link
CN (1) CN104401232B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647280B (en) * 2017-01-16 2019-05-24 山东工商学院 The data-driven Design of Predictive method and system of HEV mode switching
CN107269408B (en) * 2017-05-15 2022-08-05 吉林大学 Diesel engine optimized combustion controller and simulation model control method
CN107168104B (en) * 2017-06-23 2020-06-16 吉林大学 Observer-based longitudinal speed control method for pure electric intelligent automobile
CN107323308B (en) * 2017-06-26 2019-06-25 杭州氢途科技有限公司 A kind of fuel cell car tractive torque calculation method with predictive ability
CN107719187B (en) * 2017-09-30 2020-06-23 合肥巨一动力系统有限公司 Method for improving torque precision through torque control of electric automobile electric drive system
CN109035477B (en) * 2018-07-04 2021-06-29 浙江中控技术股份有限公司 Forklift equipment state comprehensive evaluation method, device and system
CN109039168A (en) * 2018-07-13 2018-12-18 浙江工业大学之江学院 The multiple dimensioned approximate explicit model forecast Control Algorithm of brshless DC motor
CN110877533B (en) * 2018-09-05 2023-10-10 联合汽车电子有限公司 Electric automobile power control system and method
CN110362871B (en) * 2019-06-15 2023-04-18 江苏开沃汽车有限公司 Simulation method of program for controlling tire slip
CN114450207B (en) * 2019-10-25 2024-04-12 Zf腓德烈斯哈芬股份公司 Model-based predictive control of a drive machine of a motor vehicle and of a vehicle component
CN115158037B (en) * 2022-09-06 2022-12-09 中国重汽集团济南动力有限公司 Torque distribution method and system for four-wheel drive motor of electric vehicle
CN115675121A (en) * 2022-11-21 2023-02-03 智新控制系统有限公司 Vehicle multidimensional torque control method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2964508B1 (en) * 2010-09-06 2014-12-12 Renault Sa METHOD FOR CONTROLLING AN ELECTRIC MOTOR DRIVING A MOTOR VEHICLE
JP5830449B2 (en) * 2012-08-30 2015-12-09 日立オートモティブシステムズ株式会社 Electric vehicle drive system
CN103192737B (en) * 2013-03-25 2015-10-07 吉林大学 Drive control method for all-electric car
CN103303159B (en) * 2013-05-09 2015-07-29 常州迈控智能科技有限公司 Electric vehicle controller and Dual Drive control method thereof
CN104210383B (en) * 2014-09-18 2016-05-25 上海工程技术大学 A kind of four-wheel drive electric automobile torque distribution control method and system

Also Published As

Publication number Publication date
CN104401232A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN104401232B (en) Electric automobile torque optimization method based on data-driven PREDICTIVE CONTROL
Yang et al. A stochastic predictive energy management strategy for plug-in hybrid electric vehicles based on fast rolling optimization
Cipek et al. A control-oriented simulation model of a power-split hybrid electric vehicle
Chen et al. Design and experimental evaluations on energy efficient control allocation methods for overactuated electric vehicles: Longitudinal motion case
Chen et al. Adaptive energy-efficient control allocation for planar motion control of over-actuated electric ground vehicles
Simmons et al. Modeling and energy management control design for a fuel cell hybrid passenger bus
De Castro et al. Wheel slip control of EVs based on sliding mode technique with conditional integrators
CN107168104B (en) Observer-based longitudinal speed control method for pure electric intelligent automobile
Wu et al. Fast velocity trajectory planning and control algorithm of intelligent 4WD electric vehicle for energy saving using time‐based MPC
CN106080584A (en) A kind of hybrid vehicle pattern based on Model Predictive Control Algorithm switching control method for coordinating
Zhou et al. A Rule‐Based Energy Management Strategy Based on Dynamic Programming for Hydraulic Hybrid Vehicles
Xiong et al. A new synchronous control method for dual motor electric vehicle based on cognitive-inspired and intelligent interaction
Sun et al. An integrated control strategy for the composite braking system of an electric vehicle with independently driven axles
Sun et al. A novel torque coordination control strategy of a single‐shaft parallel hybrid electric vehicle based on model predictive control
Horrein et al. Forward and Backward simulations of a power propulsion system
Zhao et al. Distributed electric powertrain test bench with dynamic load controlled by neuron PI speed-tracking method
Goodarzi et al. Stability enhancement and fuel economy of the 4-wheel-drive hybrid electric vehicles by optimal tyre force distribution
Wang et al. Research on compound coordinated control for a power-split hybrid electric vehicle based on compensation of non-ideal communication network
CN106647280A (en) HEV (hybrid electric vehicle) mode switching data driving prediction controller design method and HEV mode switching data driving prediction controller design system
Moore et al. Fuel cell hardware-in-loop
Li et al. Design and application of a tire slip energy control scheme based on optimal guaranteed cost theory for four‐in‐wheel drive electric vehicles
Zhang et al. Research on coordinated control of braking mode switching for enhancing switching quality considering communication delay and time-varying model parameters
Amiri et al. Feed-forward modelling and fuzzy logic based control strategy for powertrain efficiency improvement in a parallel hybrid electric vehicle
Xiang et al. A novel nonlinear optimal control approach for the dynamic process of a hybrid electric vehicle equipped with electromechanical transmission
Cui et al. Electric vehicle differential system based on co-simulation of Carsim/Simulink

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant