You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/262897953

Mechatronic System Optimization based on Surrogate Models-Application to an


Electric Vehicle

Conference Paper · July 2012


DOI: 10.5220/0004011900110016

CITATIONS READS
17 612

1 author:

Moncef Hammadi
ISAE-Supméca - Institut supérieur de mécanique de Paris
125 PUBLICATIONS 926 CITATIONS

SEE PROFILE

All content following this page was uploaded by Moncef Hammadi on 06 June 2014.

The user has requested enhancement of the downloaded file.


Mechatronic System Optimization Based on Surrogate Models:
Application to an Electric Vehicle

Moncef HAMMADI1 , Jean-Yves CHOLEY1 , Olivia PENAS1 and Alain RIVIERE1


1 LISMMA, SUPMECA-PARIS, 3 rue Fernand Hainaut, 93400 Saint-Ouen, France
{moncef.hammadi, jean-yves.choley, olivia.penas, alain.riviere}@supmeca.fr

Keywords: Mechatronic design, Optimization, Surrogate Models, Modelica, Electric Vehicle.

Abstract: Preliminary optimization of mechatronic systems is an extremely important step in the development process of
multi-disciplinary products. However, long computing time in optimization based on multi-domain modelling
tools need to be reduced. Surrogate model technique comes up as a solution for decreasing time computing in
multi-disciplinary optimization. In this paper, an electric vehicle has been optimized by combining Modelica
modelling language with surrogate model technique. Modelica has been used to model the electric vehicle
and surrogate model technique has been used to optimize the electric motor and the transmission gear ratio.
Results show that combining surrogate model technique with Modelica reduces significantly computing time
without much decrease in accuracy.

1 INTRODUCTION
For this reason, substituting DAE system with
Mechatronic Systems (MS) are interdisciplinary surrogate models, using statistical methods, is one
products with a synergistic spatial and functional way of alleviating this burden.
integration of mechanical, electronic and software The polynomial Response Surface Method (RSM)
subsystems (Craig, 2009). (Box and Wilson, 1951) is commonly considered
The great challenge in mechatronic design lies in as the first surrogate modelling technique. It uses
optimizing a complete system with various physical a polynomial formulation to approximate an exact
phenomena related to interacting heterogeneous function. Other techniques such as Kriging (Krige,
subsystems. 1951) and Artificial Neural Networks (ANNs) of
Radial Basis Functions (RBF) (Hardy, 1971), (Hop-
Several multi-domain modelling tools such as field, 1982) and (Powel, 1985) are also used to model
Bond-Graphs, VHDL-AMS, Matlab/Simulink and complex relationships between inputs and outputs.
Modelica are used for preliminary design of MS. Surrogate models are also known as metamodels
For instance, Modelica (Elmqvist et al., 1998) (Blanning, 1975).
combines object-oriented concepts with multi-port
methods for modelling and simulation of physical
systems. It includes a declarative mathematical In this paper, both RMS and ANNs of RBF sur-
description of models and provides a graphical rogate models have been generated from a Modelica
modelling approach. Multi-domain model library of model of an Electric Vehicle (EV). After their val-
lumped parameter elements can be created and added idation and comparison of their accuracy, the ANN
to the default Modelica library for future use. The of RBF surrogate model has been chosen to optimize
end results of Modelica modelling is a system of the electric motor and the gear ratio of the EV. The
differential-algebraic equations (DAE) that represents optimization based on the surrogate model has been
the complete mechatronic system. So that, Modelica compared with an optimization based on the Modelica
is considered as an ideal tool for preliminary design model. Results found are compared with a real case of
of MS. an electric vehicle developed by general motors(GM
However, optimizing a mechatronic system based EV1). Results show an interesting reduction in com-
on DAE is computationally expensive, due to the puting time of optimization without significantly af-
considerable number of simulation evaluations. fecting the accuracy.
2 SURROGATE MODELLING error (Erms) and the maximum error (Emax), which
are respectively expressed as:
RSM and ANNs of RBF have been used in this study m
due to their high accuracy and ease of use. The prin- | ∑ (F(x ji ) − Fa (x ji ))|
cipal features of these two surrogate modelling tech- j=1
Emi = ; 1≤i≤n (5)
niques are described in the following section. m

2.1 Response Surface Method s


m
∑ [F(x ji ) − Fa (x ji )]2
As it has been mentioned, RSM uses a polynomial j=1
formulation to approximate an exact function or a Ermsi = ; 1≤i≤n (6)
m
simulation process F(X); where X is the input design
vector that can be represented by a matrix as:
Emaxi = max(|F(x ji )−Fa (x ji )|); 1 ≤ i ≤ n; 1 ≤ j ≤ m;
x11 x12 ... x1n
 
j
x x22 ... x2n  (7)
X =  21 (1)
... ... ... ... 
xm1 xm2 ... xmn
n and m are the number of design variables and the 3 APPLICATION: ELECTRIC
number of sample points, respectively. VEHICLE OPTIMIZATION
The approximation function Fa (X) is therefore ex-
pressed as: Figure 1 shows EV model which has been performed
n n n−1 n using Modelica language. The EV is composed of a
Fa (X) = a + ∑ bi xi + ∑ ci xi2 + ∑ ∑ di j xi x j + ... battery (312 V), a power converter, a controller, an
i=1 i=1 i=1 j=i+1 electric motor and a transmission.
(2) The objective of this study is to optimize the
Polynomial degree in RSM models is frequently less
than or equal to 2. Coefficients a, bi , ci , di j , ... are es- Accelerator pedal

timated by means of the least squares method.


v i w

2.2 Artificial Neural Network of Radial Meca. Power sensor

Basis Functions Method


In an ANN of RBF, a response F(X) is approximated Battery Velocity output

with Fa (X) as a linear combination of radial basis


functions Φ j .
m
Figure 1: Electric Vehicle Model (Modelica).
Fa (X) = ∑ ω j .Φ j (kX − µ j k) (3)
j=1
maximum electric power PeMax of the motor and
µ j are the centres of the radial functions and ω j are the overall transmission gear ratio Gr . This opti-
the weighting coefficients that can be determined by mization should respect a performance constraint of
the least squares method. acceleration to reach a velocity V10 = 100 km/h in 10
seconds.
2.3 Validating a Surrogate Model The electric motor is modelled by the following
equations (parameters and variables are described in
The surrogate model Fa (X) and the approximated Tables 1 and 2).
function F(X) are related as follows:
k.ωm = Vem f (8)
Fa (X) = F(X) + E (4)
Tm = k.i (9)
The validation of the surrogate model is performed
through the evaluation of the residual vector E. This di
Ve = L. + R.i +Vem f (10)
evaluation can be made by calculating several quanti- dt
ties such as the mean error (Em), the root mean square Pe = Ve .i (11)
Table 2: Electric vehicle variables.
The transmission model is defined by:
1 Motor rotational speed ω(rad/s)
Ft = M.g. fr + .dair .CD .A f .v2 Electromotive forces Vem f (V )
2
(12) Motor torque Tm (N.m)
G2r Electric current in motor i(A)
+(M + I. ).a + M.g.sin(α))
ηg .r2 Voltage input Ve (V )
Pm = Ft .v (13) Tractive effort Ft (N)
For the purpose of comparing the simulation results Vehicle velocity v(m/s)
with a real case, we chose values that match the elec- Vehicle acceleration a(m/s2 )
tric vehicle EV1 of General Motors (GM), which are Electric motor instant power Pe (W )
published in (Larminie and Lowry, 2003). These pa- Mechanical power Pm (W )
rameters are given in Table 1. Velocity at 10 seconds V10 (km/h) ≈ 100km/h
As indicated in Table 1, the maximum electric power
Table 1: Electric vehicle parameters.
Based on the precedent mathematical formulation,
parameter value
a Modelica model of the EV has been elaborated to be
Vehicle mass M(kg) 1540
simulated on an interval time of 30 seconds.
Gravity acceleration g(m/s) 9.81
The input design vector X for the surrogate models is
Coefficient of rolling resistance fr 0.0048
defined as:
Density of the air dair (kg/m3 ) 1.205
Drag coefficient CD 0.19 X = [Gr , PeMax , ωc , ωM ] (15)
Frontal area A f (m2 ) 1.8
Moment of inertia of the motor I(kg.m2 ) 0.03 The output variable is defined by V10 which is deter-
Radius of the tyre r(m) 0.3 mined by the Modelica simulations at every input de-
Slope angle α(rad) 0 sign point.
Motor characteristics k(N.m/A) 0.2 The design space limits for X are defined by : 2 ≤
Motor internal resistance R(Ω) 0.02 Gr ≤ 13; 90000 ≤ PeMax ≤ 110000; 600 ≤ ωC ≤ 900;
Motor inductance L(H) 0.01 1000 ≤ ωC ≤ 1400.
Gear system efficiency ηg 0.95 The sample points of the design space domain have
Gear ratio Gr opt. been determined using the Design of Experiment
Motor maximum power PeMax (W ) opt. (DoE) technique with a Latin Hypercube method
Motor maximum speed ωM (rad/s) const. (Mackay et al., 1979).
Motor critical speed ωC (rad/s) const. Automatic evaluation of the output variable has been
performed using iSIGHT software1 , which has been
PeMax and the gear ratio of the system connecting also used to elaborate both RSM and ANN of RBF
the motor to the axle Gr are to be optimized. The surrogate models.
maximum motor speed ωM and the critical speed ωC The formulation of the optimization problem is de-
are defined as constraints. ωC is the minimum speed fined as follows:
above which the electric motor powers the transmis-
min PeMax , for 90000 ≤ PeMax ≤ 110000

sion efficiently. 

Table 2 gives the variables which are dependant of
 min Gr , for 2 ≤ Gr ≤ 13



time during simulation.
max V10 , for 98 ≤ V10 ≤ 101 (16)
We introduce an optimizing objective variable
1100 ≤ ωM ≤ 1400


V10 (km/h) that represents the vehicle velocity at 10 


600 ≤ ωC ≤ 900

seconds. The goal is to reach 100km/h.
In the acceleration test, the controller and the power
converter act to power the electric motor with current To solve the non-linear multi-objective optimizing
in order to provide a torque Tm defined as: problem, a sequential quadratic programming algo-
 Tm = pa .Pemax /ωC (if ω ≤ ωC )
 rithm called Non-Linear Programming by Quadratic
 Lagrangian (NLPQL) (Schittkowski, 1985) has been
Tm = pa .Pemax /ωM (if ω ≥ ωM ) (14) used. NLPQL is well suited for non-linear problems

 T = p .Pe /ω
m a max else with few objectives and continuous design space.
The percentage of acceleration (pa ), during the
acceleration test, reaches 100% in 2 seconds.
1 http://www.simulia.com/products/isight.html
4 RESULTS AND DISCUSSION rogate model is:
V10 = − 81.29 + 19.Gr + 0.002.Pemax − 0.0847.ωc
In this paper, we have combined Modelica modelling
technique with surrogate model method for modelling + 0.0383.ωM − 1.1942.G2r + 0.007.Gr .ωc
and optimization of an electric vehicle. Both RSM + 0.0003.Gr .ωM
and ANN of RBF surrogate models have been elabo- (17)
rated.
Table 3 gives the evaluation of residual vector E for Such simple mathematical model is useful for system
both RSM and ANN of RBF models. engineers at high abstraction level for system analysis
Results show that ANN of RBF surrogate model and decision making .
A response surface (V10 = F(Gr , PeMax )) for the RBF
Table 3: Residuals in RMS and RBF models. surrogate model is given by Figure 3. This response
Em (%) Erms (%) Emax (%)
RSM 4.1 5.4 11.9
RBF 2.1 2.8 7.1

presents a better accuracy than RSM model. Figure


2 shows the distribution of residuals for the both sur-
rogate models. The results of validation prove the ca-

RMS

Figure 3: Response surface for ANN of RBF surrogate


model: V10 = F(Gr , PeMax ).
residual

surface shows that V10 reaches a maximum, which


justifies the need to optimize V10 .

Table 4 shows results of optimization based on


ANN of RBF surrogate model and a comparison with
actual an optimization based on the Modelica model.
Results show a good agreement between the two op-
RBF
Table 4: Optimization results.
RBF Modelica Err.(%)
Gr 9.15 10.1 9.4
PeMax (kW ) 102 98 5.2
residual

V10 (km/h) 99 100.7 1.7


ωC (rad/s) 828 780 6.1
ωM (rad/s) 1112 1154 3.6
Computing time(s) 4 332

timizations with an important gain of computing time


actual for the optimization based on the ANN of RBF surro-
Figure 2: Residual distribution of surrogate models (RSM gate model (4 seconds for RBF surrogate model and
and RBF). 332 seconds for Modelica model).
These results are close to those published for the elec-
pacity of RBF models to approximate non linear re- tric vehicle GM EV1. Indeed, for EV1 the electric
sponses. However, RSM model is simpler and eas- motor has a power PeMax = 100 kW , maximum speed
ier to exchange between modelling platforms. In our of 12000 rpm(ωM = 1256 rad/s), ωC = 600 rad/s
case, the algebraic model elaborated for the RSM sur- and a transmission gear ratio Gr = 11 (Larminie and
350
Lowry, 2003). The choice of Gr affects the perfor-
mance of acceleration but also has an influence on 300

other requirements such as the maximum vehicle ve- 250

locity, which has not been considered in this optimiza-


200
tion. This explains the little difference between values

Electric current i(A)


of Gr found by optimization and the value chosen by 150

GM for EV1. 100


To verify the performance constraint of acceleration
test with the case of EV1 vehicle, we have fixed the 50

following values in the Modelica model: PeMax = 0

100 kW ; ωC = 600 rad/s; ωM = 1256 rad/s and Gr =


-50
11. 0 10 Time (s) 20 30

Figure 4 shows the input signal of pedal acceleration


and the output vehicle velocity. This figure confirms 1E5

that the electric vehicle reaches a velocity of 100 km/h


8E4
in 10 seconds.

Electric power (W)


130 6E4
V(km/h)
120
110
Input signal of acceleration (%) 4E4
100
90
80
2E4
V(km/h)

70
60
50 0E0

40
0 10 Time (s) 20 30
30
20 Figure 5: Electric current (top) and electric power (bottom)
10
during acceleration test of the EV.
0
-10
0 5 10 Time [s] 15 20 25 30

Figure 4: Results of Modelica simulation during an acceler- to develop ANN of RBF and RSM surrogate mod-
ation test of the EV (accelerator signal and vehicle velocity). els. A comparison of accuracy of the two surrogate
models has been made. It confirms that ANN of RBF
Figure 5 shows the variation of the electric current method is more accurate that RSM in the case of elec-
and power during the performance test of accelera- tric vehicle modelling. ANN of RBF surrogate model
tion. The electric current reaches a maximum of 330 has been used to optimize the electric motor and the
A and the electric power reaches a maximum of 98 gear ratio of the EV. Results show the important gain
kW. The value of the maximum current helps in the in computing time compared to direct optimization
choice of the battery. based on the Modelica model, without affecting a lot
The simulation near the optimal solution is per- accuracy. Results of simulation in the case of acceler-
formed to verify the output design variables. To im- ation test have been compared to a real case of an EV
prove the optimization accuracy, it is possible to per- (GM EV1), and results show a good agreement with
form a second optimization on the Modelica Model, those published.
but near the optimal solutions given by the optimiza- Thus, combining Modelica and surrogate modelling
tion based on the surrogate models. In this case, sur- techniques is an effective method to reduce design
rogate models play a role of assistant in optimization. time and minimize complexity of optimizing mecha-
This alternative has longer time of computing but with tronic systems.
a better precision, and in most cases time will be
shorter than direct optimization on Modelica model
without knowing the neighbourhoods of the optimal
solution.

5 CONCLUSIONS
An electric vehicle has been modelled using Model-
ica language. This model has been used as a support
REFERENCES
Blanning, R. (1975). The construction and implementation
of metamodels. Simulation, 24(6):177184.
Box, G. E. P. and Wilson, K. B. (1951). On the experi-
mental attainment of optimum conditions (with dis-
cussion). Journal of the Royal Statistical Society, Se-
ries B, 13:1–45.
Craig, K. (2009). Mechatronic system design. Technical
report, ASME Newsletter.
Elmqvist, H., Mattsson, S., and Otter, M. (1998). Modelica
: The new object-oriented modeling language. In The
12th European Simulation Multiconference, Manch-
ester, UK.
Hardy, R. L. (1971). Multiquadratic equations of topology
and other irregular surfaces. Journal of Geophysical
Research, 76:1905–1915.
Hopfield, J. (1982). Neural networks and physical sys-
tems with emergent collective computational abilities.
Proc. Natl. Acad. Sci., 79:2554–2558.
Krige, D. (1951). A statistical approach to some basic mine
valuation problems on the witwatersrand. Journal
of the Chemical, Metallurgical and Mining Society,
52:119–139.
Larminie, J. and Lowry, J. (2003). Electric Vehicle Technol-
ogy Explained. John Wiley & Sons.
Mackay, M. D., Beckman, R. J., and Conover, W. J. (1979).
A comparison of three methods for selecting values of
input variables in the analysis of output from a com-
puter code. Technometrics, 21:239–245.
Powel, M. (1985). Radial basis functions for multi-variable
interpolation: A review. In IMA Conference on Algo-
rithms for the Approximation of Functions and Data.
Schittkowski, K. (1985). Nlpql: a fortran subroutine solving
constrained nonlinear programming problems. Annals
of Operations Research, 5 (1-4):485–500.

View publication stats

You might also like