Sie sind auf Seite 1von 6

AVEC ’12

A Direct Method for Optimal Control and Optimal Design of


Two-Wheeled Vehicles
Giacomo Perantoni, David J N Limebeer and Matthew R Arthington
University of Oxford

Department of Engineering Science, University of Oxford, Parks Road


Oxford, Oxfordshire, OX1 3BN, United Kingdom
Phone: (+44) (0) 1865 283172
E-mail: giacomo.perantoni@eng.ox.ac.uk, david.limebeer@eng.ox.ac.uk, matthew.arthington@eng.ox.ac.uk

This paper illustrates a method for the optimal control and optimal design of two-wheeled vehicles
and presents results of its application to minimum lap time, obstacle avoidance and dynamic
parameter optimisation problems. The task is to find the best control trajectory for a defined
manoeuvre within a constrained state-space, which can include both fixed and moving obstacles.
If the vehicle model includes free design parameters, then these are simultaneously optimised to
best facilitate the prescribed manoeuvre.

Topics / Vehicle Dynamics, Modelling and Simulation.

1. INTRODUCTION time a simpler single-track car model is used to obtain


fast solutions for real-time driver support. The solution
The design of two-wheeled vehicles is a fascinating of the optimal control problem is found using indirect
art and a precise science. Bicycles and motorcycles are, methods, seeking trajectories that satisfy the first order
by their nature, characterised by a structural ‘inverted necessary conditions for optimality, as given in [8].
pendulum’ type instability that requires stabilization by There are fundamental differences between
the rider. With increased speed and more extreme riding two-wheeled and four-wheeled vehicles, since the roll
conditions other instabilities may come into play, dynamics are an essential feature of two-wheeled
including the well-studied wobble- and weave-mode vehicle behaviour. Modelling a vehicle such as a
oscillations described in [1], and the more recently common motorcycle in its full non-linear dynamics is
analysed burst oscillations [2]. In modern vehicles, not a trivial task and requires automated model building
highly engineered design and control strategies aim to facilities. As a consequence, the optimal control of
guarantee stability and enhance performance. The load non-linear two-wheeled vehicle models is facilitated by
distribution, geometry, flexibilities, damping elements, (and in some cases requires) the integration of
gear ratios, amongst other design parameters, can be multi-body and optimal control software. Some valuable
chosen to influence the vehicle dynamics. In addition, examples of this combination can be found in [9] and
passive and active control strategies are employed to [10], where increasingly detailed two-wheeled vehicle
improve stability, safety and performances. models are considered.
This work applies a general method for the Direct optimal control methods are well suited to
deterministic model-based optimal control of non-linear the solution of the problems discussed, offering the
systems to the problem of design, trajectory planning possibility of readily including time-varying constraints
and control of two-wheeled vehicles, with an initial and the optimisation of vehicle parameters. One aim of
focus on minimum-time manoeuvres. A review of the the current work is to eliminate the dependence on a
applications of optimal control to vehicles can be found vehicle model with fixed parameters, which is a
in [3]. recurrent theme in all of the optimal control studies
The research in [4], [5] and [6] studies the related mentioned above. Furthermore, we wish to consider the
task of finding the minimum-time manoeuvre for a optimisation problem with time varying constraints for
Formula One car, including load transfer, yaw inertia more complex models than the one described in [7].
and a thermodynamic model for tyre friction, amongst In the following we discuss the application of direct
other dynamic effects. The analysis is based on shooting methods for optimal control to a two-wheeled vehicle
methods, and allows for the optimisation of both the model: Section 2 introduces the vehicle model; Section
vehicle trajectory and the control inputs. It can also be 3 will briefly describe the direct method for solving
used to estimate the sensitivity of the lap times to optimal control problems; Section 4 will outline some
vehicle parameters (assuming a perfect driver). applications of optimal control and present the results
Minimum-time manoeuvres have also been found.
considered in the context of driver assistance [7]; this
AVEC ’12

2. VEHICLE MODEL vehicles. The subscripts 𝑓 and 𝑟 will identify the front
and rear contact points respectively.

Table 2 Tyre friction parameters.


stiffness factor
𝜙 shape factor
𝑀 peak value
curvature factor
𝑥̂𝑚
Our vehicle model has 5 degrees of freedom and 5
𝛿 free generalized speeds as listed in Table 3, which in
combination constitute the state, 𝑥, of the vehicle.

Table 3 Vehicle states.


𝐹𝑥
𝑏 Generalised coordinates
𝑤 𝑥 Cartesian coordinates of the
𝜓
𝑦̂𝑚 rear-wheel ground contact point (in
𝑧𝑚 inertial coordinates)
yaw angle
Fig. 1 Timoshenko-Young bicycle diagram (from [1]). roll (or lean) angle
The vehicle model we use here (see Fig. 1) is an steering angle
extended version of the well-known Timoshenko- Generalised speeds
Young model [11]. The original version of this model 𝑥̂ longitudinal speed of the main frame
has no prime mover and the rolling contacts are ̂ lateral speed of the main frame
modelled using non-holonomic constraints. The vehicle 𝜔 yaw rate
is steered using the steering angle . 𝜔 roll rate
In our model we propel the vehicle with a
𝜔𝛿 steering rate
controllable force 𝐹𝑥 applied to the rear-wheel ground
contact point (in the forward direction of the main frame,
𝑥̂𝑚 ), while steering is achieved using the torque-like 3. OPTIMAL CONTROL
steering acceleration input 𝜔̇ 𝛿 . The vehicle is
In this section we employ well-known optimal
parameterised using the 4 variables in Table 1.
control techniques in order to perform various
manoeuvres. The optimal control problem can be
Table 1 Vehicle parameters.
described in terms of the minimization of a performance
mass of the main frame body index subject to constraints (including those associated
wheelbase with the vehicle model). The general optimisation
forward distance of the mass centre problem is
mass height
[ (𝑥( ) )
{ ( ) 𝑥( ) 𝑥( ) }
(2)
This simplified two-wheeled vehicle model cannot
reproduce effects such as straight-running self-stability, ∫ (𝑥( ) ( ) ) ]
or the weave and wobble modes, but captures the basic
dynamics associated with the roll freedom.
subject to the constraints
The non-holonomic rolling constraints in the
original Timoshenko-Young model are replaced with 𝑓(𝑥̇ ( ) 𝑥( ) ( ) )
friction forces due to side-slipping tyres. For the present
(𝑥( ) ( ) )
purposes we have chosen a relatively simple Pacejka
Magic Formula tyre model [12], which maps the tyre (𝑥( ) ( ) ) (3)
sideslip angle 𝛼 to the lateral friction force. This (𝑥( ) 𝑥( ) )
relation is described by: { (𝑥( ) 𝑥( ) )

𝐹 ( ( 𝛼 ( 𝛼 ( 𝛼)))) (1) where is time, and 𝑥( ) and ( ) are the vehicle


state and control vectors respectively. The vector
in which , , and are parameters that define function 𝑓 describes the vehicle dynamics. The vector
the shape of the friction curve. The inclusion of tyres in functions and define the equality and inequality
the model introduces an effective limit on the roll angle constraints for the system (e.g. the road shape, or box
while cornering. The friction parameters, shown in constraints on the states and controls) with the subscript
Table 2, are used for both the front and the rear wheels, referring to the boundaries of the time horizon. The
although this symmetry is not usually valid for real
AVEC ’12

scalar function is the cost associated with the This large sparse NLP problem can be attacked
terminal conditions and is the stage cost assigned to using methods from the mature field of numerical
the instantaneous state and control. optimisation.
It goes without saying that an explicit analytical
solution does not generally exist for problems of this 4. RESULTS
type and so one must resort to numerical algorithms for
a solution. The approach adopted here is one of For our calculations we have used the ‘Imperial
transcribing the given problem into a general College London Optimal Control Software’ (ICLOCS,
finite-dimensional Non-Linear Programming (NLP) http://www.ee.ic.ac.uk/ICLOCS/), an open source
problem. Following the methodology given in [13] the toolbox for the direct transcription of continuous time
dynamic system is discretised in time, while the optimal control problems. We interfaced ICLOCS with
continuous state and control functions are quantised into the multi-body software VehicleSim (www.carsim.com)
a finite set of decision variables as follows: so that optimal control problems involving complex
mechanical systems can be transcribed and solved
[ ] automatically. The NLP problems are solved with the
[𝑥( ) 𝑥( ) 𝑥( ) 𝑥( ) ] open-source interior point optimizer IPOPT [14].
(4)
[ ( ) ( ) ( ) ] 4.1 Minimum lap time problem
[ ] The aim of this section is to study the optimal
control of our modified Timoshenko-Young bicycle
The difference equations coming from the model. The task is to complete a lap of a prescribed
discretisation of the continuous-time differential closed track in minimum time. The cost and constraints
dynamics are considered as a set of constraints on the for the optimal control problem are defined as follows:
decision variables:
(𝑥( ) ) (𝑥( ) ( ) )
𝑓 (𝑥( ) 𝑥( ) ( ) ) (𝑥( ) ( ) )
𝐹 ( ) [ ] (5) (𝑥( ) ( ) ) (𝑥( ))
𝑓 (𝑥( ) 𝑥( ) ( ) )
(𝑥( ))
where the functions 𝑓 represents a discrete time
(𝑥( )) (8)
approximation of the continuous time differential
equations* 𝑓 from (3). | | 𝑚 𝑥
The cost and the constraints are then reformulated [|𝐹𝑥 | |𝐹 | ]
as functions of the decision variables : (𝑥( ) 𝑥( ) ) 𝑥( ) 𝑥( )
(𝑥( ) 𝑥( ) )
( ) (𝑥( ) )
∑ {[ (𝑥( ) ( ) ) The minimum time objective can be embedded in
the terminal cost term; there is no need for the integral
(𝑥( ) ( ) )] term in (2). If one were to require a penalty of such
( )⁄ } things as energy consumption, then the stage cost term
(𝑥( ) ( ) ) would be required. The last row of defines a
(6) constraint on the maximum magnitude of the drive force
( ) [ (𝑥( ) ( ) )] applied to the main frame, which is consistent with the
(𝑥( ) 𝑥( ) ) characteristics of the tyres and reproduces the concept
(𝑥( ) ( ) ) of a ‘friction circle’ for the rear tyre. The second last
( ) row is a box constraint on the lean angle with
[ (𝑥( ) ( ) )] 𝑚 𝑥 6 °, which is introduced to enforce upright
(𝑥( ) 𝑥( ) ) running and assist the NLP convergence. The other
entries of are used to describe the track and obstacles.
Following discretisation, (3) is solved as a NLP The circuit is defined in terms of feasible sets in the
problem: state space, which constrain the movement of the rear
wheel ground contact point. In our case the obstacle
( ) boundaries are defined in terms of circles (shown in Fig.
𝐹 ( ) 2), with the feasible zones either inside or outside these
(7) circles:
{ ( )
( )
(𝑥( )) ((𝑥 ( ) 𝑥 )
(9)
( ( ) ) 𝑟 )
*
Here the trapezoidal rule is used, for which
[𝑥( ) 𝑥( )]⁄( )
[𝑓(𝑥( ) ( ) ) 𝑓(𝑥( ) ( ) )]⁄ .
AVEC ’12

Fig. 2 Bicycle trajectory for the time optimal control problem. The cartoons show the configurations of the bicycle
at equally spaced time instants (~ 𝑠). The thick grey curves show the obstacles and track boundaries, while
the thin grey-scaled curve is the trajectory of the rear contact point. The grey scale shading corresponds to time,
and is consistent with that used in Fig. 3, Fig. 4 and Fig. 5 (later times are darker). The axes are given in metres,
with optimal lap time 𝑡𝑓 ≈ 4 𝑠.
16
60
200

40
15
[m/s]

100
[N]

20
xm

 [deg]
Longitudinal force F

14
Longitudinal speed v

0 0
Lean angle


60 hard constraint
13 -20
-100 
45 friction limit

-40

12 -200

-60

0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10
Time [s] Time [s]

Fig. 3 Longitudinal speed 𝑥̂ (solid line) and Fig. 4 Lean angle for the minimum time trajectory.
longitudinal force 𝐹𝑥 at the rear contact point
(dashed line) for the minimum time trajectory in The solution of this and other minimum time
Fig. 2. problems confirms some results derived theoretically,
such as the non-minimum phase behaviour of a
The quantities 𝑥 and are the coordinates of two-wheeled vehicle entering a corner [1]. Some

the centre of the obstacle, 𝑟 is its radius and the intuitive results were also obtained, such as the wheels
sign stipulates whether the unfeasible zone is on the working close to their friction peaks to attain the highest
inside or the outside of the obstacle boundary. For this available cornering force (see Fig. 5).
problem the obstacles are fixed and is time invariant. The method also reproduced counter-steering
Equality constraints are used to enforce the continuity of behaviour and drifting under extreme cornering, both of
the trajectory at the initial and final time, thereby which are observable in real motorcycle riding.
defining a minimum lap time racing problem. Some interesting results were obtained in special
Fig. 2 shows the optimal minimum-time lap cases, such as the non-circular minimum-time trajectory
trajectory for the modified Timoshenko-Young bicycle of a Timoshenko-Young bicycle running around a
around a simple closed circuit, with the longitudinal circular track when the lean angle is limited and the
speed and drive force given in Fig. 3. The roll angle is maximum absolute value of the longitudinal force is
given in Fig. 4. Note that the tyre friction saturation large. This is analogous to having tyres with high
effectively limits the roll angle to approximately 4 °. friction in the longitudinal and low friction in the lateral
direction, thus favouring long straight accelerations and
slow tight corners to trace a quasi-polygonal trajectory.
AVEC ’12

Fig. 5 Front- and rear-wheel lateral friction forces 𝐹𝑦𝑓 and 𝐹𝑦𝑟 , respectively on the left and in the middle. The
total rear-wheel force is shown in the right-hand diagram. The markers correspond to time-indexed operating
points with grey scales consistent with Fig. 2.
4.2 Avoiding moving obstacles of the obstacles; here 𝑧 8.
Fig. 6 illustrates a minimum time problem in which
𝑥(𝑡𝑓 ) the modified Timoshenko-Young bicycle performs a
Moving moving variant of the double lane change manoeuvre
obstacle (original manoeuvre in [15]) in which an object moves
across the lane obstructing the road. The optimal control
calculation procedure finds simultaneously the vehicle
trajectory and steering control to avoid the obstacles and
reach the target in minimum time (the drive force is
imposed to maintain a constant longitudinal speed as
𝑥(𝑡 ) required in [15]). In order to minimise the trajectory
length the rear contact point travels at the boundary of
the invading obstacle. A similar problem, with an
Fig. 6 Extended Timoshenko-Young bicycle obstacle leaving the vehicle path (as opposed to
travelling at ~110 km/h (as required in [15]) and invading it) has been solved using the same techniques.
avoiding an obstacle that is invading the road at a As expected, this showed that the vehicle must wait
speed of 1.25 m/s. The dotted lines are the start until a clear path appears to the target, and then enter
and finish lines. Grey scales are associated with this path at the maximum possible speed as soon as it
time instants for moving objects, with darker plots opens up.
corresponding to later times, apart from the near 4.3 Design optimization
and far objects, which are static. The straight lines There is a third line of investigation relating to the
are the lane boundaries. optimisation of vehicle design. Using the direct method,
the model parameters are included in the optimal control
A second optimal control application is the problem as optimisation variables. For this purpose the
avoidance of moving obstacles. The direct transcription differential equations in (3) are rewritten with an
methodology allows the straightforward introduction of explicit dependency on the model parameters vector 𝑝
time varying path constraints that can be used to
represent moving obstacles. In this case is an explicit 𝑓(𝑥̇ ( ) 𝑥( ) ( ) 𝑝 ) (12)
function of time:
and, accordingly, the constraints (5) now read
(𝑥( ) ( ) ) (𝑥( ) )
(𝑥( ) ) 𝐹 ( 𝑝 )
(10)
[ ] 𝑓 (𝑥( ) 𝑥( ) ( ) 𝑝 )
(𝑥( ) ) (13)
[ ]
𝑓 (𝑥( ) 𝑥( ) ( )𝑝 )
An extension of (9) allows the introduction of an
obstacle that moves into the vehicle’s path using With the inclusion of free vehicle parameters the
constraints of the form: NLP problem from (7) becomes:

(𝑥( ) ) ((𝑥 𝑟 ( ) 𝑥 ( )) ( )
{ }
(11) 𝐹 ( 𝑝 )
( ( ) ( )) 𝑟 ) (14)
𝑟 { ( )
( )
where the exponent 𝑧 is used to change the shape
AVEC ’12

The advantage of this formulation is that the vehicle REFERENCES


can be optimised for specific manoeuvres while
recognising the dynamic behaviour of the vehicle [1] D. J. N. Limebeer and R. Sharp, “Bicycles,
(assuming optimal rider controls). This method can be Motorcycles and Models”, IEEE Control Systems
applied to a large variety of applications, starting with Magazine, vol. 26, no. 5, pp. 34-61, 2006.
the frame dimensions for fastest cornering to the
[2] D. J. N. Limebeer and A. Sharma, “Burst
suspension optimisation for minimum distance braking,
Oscillations in the Accelerating Bicycle”, Journal
or even for the design of the steering assembly
of Applied Mechanics, vol. 77, 2010.
components to satisfy some boundaries or requirements
on the rider’s steering control. A successful application [3] R. S. Sharp and H. Peng, “Vehicle dynamics
of this process confirmed some design guidelines for the applications of optimal control theory”, Vehicle
standard Timoshenko-Young bicycle that can be System Dynamics, pp. 1073-1111, 2011.
theoretically proved: considering the original model in [4] D. Casanova, On Minimum Time Vehicle
[11] running around a circular track, with constant speed Manoeuvring: The Theoretical Optimal Lap, 2000.
and an upper bound on the modulus of the lean angle, [5] D. P. Kelly, Lap Time Simulation with Transient
the vehicle is faster for a larger . This can be verified Vehicle and Tyre Dynamics, 2008.
considering the distance 𝑅𝑚 of the mass from the
[6] D. P. Kelly and R. S. Sharp, “Time-optimal control
centre of rotation. For a given radius of the rear contact
of the race car: influence of a thermodynamic tyre
point trajectory 𝑅𝑐 and a given maximum lean angle model”, Vehicle System Dynamics, vol. 50, no. 4,
𝑚 𝑥 there holds 𝑅𝑚 𝑅𝑐 𝑚 𝑥 (assuming pp. 641-662, 2012.
) and the angular speed to guarantee the moment
[7] E. Bertolazzi, F. Biral, M. Da Lio, A. Saroldi and F.
𝑔 tan 𝑎𝑥
balance about the roll axis is 𝜔 √𝑅 . The Tango, “Supporting Drivers in Keeping Safe Speed
𝑐𝑝 ℎ sin 𝑎𝑥
and Safe Distance: The SASPENCE Subproject
𝑅𝑐𝑝 ℎ sin 𝑎𝑥 Within the European Framework Programme 6
time spent for a full lap is thus 𝜋√ ,
𝑔 tan 𝑎𝑥 Integrating Project PReVENT”, IEEE transactions
which is monotonically decreasing (with > ) up to on Intelligent Transportation Systems, vol. 11, no.
the singular condition 𝑅𝑐 𝑚 𝑥 , at which 3, pp. 525-538, 2010.
. The optimal control calculations also confirm [8] A. E. Bryson and Y.-C. Ho, Applied Optimal
that is independent of the parameter , which can be Control, Taylor & Francis, 1975.
theoretically proven.
[9] V. Cossalter, M. Da Lio, R. Lot and L. Fabbri, “A
General Method for the Evaluation of Vehicle
5. CONCLUSIONS
Manoeuvrability with Special Emphasis on
Motorcycles”, Vehicle System Dynamics, vol. 31,
The direct transcription method for optimal control
no. 2, pp. 113-135, 1999.
has been successfully applied to a series of
minimum-time problems for an extended [10] E. Bertolazzi, F. Biral and M. Da Lio,
Timoshenko-Young bicycle with Pacejka-type tyre “Symbolic-numeric efficient solution of optimal
friction. The continuous-time optimal control problems control problems for multibody systems”, Journal
have been converted to non-linear programming of Computational and Applied Mathematics, vol.
problems and then solved through a numerical 185, pp. 404-421, 2006.
optimisation algorithm. [11] S. Timoshenko and D. H. Young, Advanced
The solution of the minimum lap time problem Dynamics, New York: McGraw-Hill, 1948.
returned both the vehicle trajectory and the vehicle [12] H. B. Pacejka, Tyre and Vehicle Dynamics (Second
controls. These results can be used as reference edition), Oxford: Butterworth-Heinemann, 2006.
trajectories for rider training purposes and as
performance indices for various vehicle/track [13] J. T. Betts, Practical Methods for Optimal Control
combinations. and Estimation Using Nonlinear Programming -
In a manner similar to that proposed in [7], the 2nd ed., SIAM, 2010.
optimal manoeuvre method applied to obstacle [14] A. Wächter, An Interior Point Algorithm for
avoidance could be beneficial for the on-line generation Large-Scale Nonlinear Optimization with
of reference manoeuvres in an interactive driver/vehicle Applications in Process Engineering, Pittsburgh,
scenario. Pennsylvania: CARNEGIE MELLON
The design optimisation method would be UNIVERSITY, 2002.
extremely advantageous looking into the development [15] “Lane Change Manoeuvre Test Procedures”,
of new automotive technologies, such as hybrid or Government of South Australia. Department for
electric vehicles. An automatic procedure would also transport, Energy and Infrastructure. Safety and
support the decision making processes with component Regulation Division, Walkerville, 05/06.
sizing and positioning, possibly using a
‘mission-oriented’ approach when the design with
stringent specifications.

Das könnte Ihnen auch gefallen