원시데이터 수집 시스템
선정목록으로

Battery Model Impact on Time-Optimal Codesign for Electric Racing Cars: Review and Application

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Giorgio Riva — Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Milan, Italy|||Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Via G. Ponzio 34/5, Milan, Italy
  2. Stefano Radrizzani — Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Milan, Italy|||Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Via G. Ponzio 34/5, Milan, Italy
  3. Giulio Panzani — Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Milan, Italy|||Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Via G. Ponzio 34/5, Milan, Italy
DOI
10.1109/tte.2024.3403930
저널
IEEE Transactions on Transportation Electrification
발행년도
2024
발행기관
Institute of Electrical and Electronics Engineers
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/tte.2024.3403930
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4398249702

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The sustainable mobility trend touches the racing world as well, from the hybridization of Formula 1 (F1) and Le Mans Hypercars to the fully electric Formula E racing class. In this scenario, the research community is studying how to push electric racing vehicles to their limit, combining vehicle dynamics and energy management, to successfully solve the minimum lap time problem. Recently, this class of problems has been enlarged towards optimal sizing, with a particular interest in batteries, which represent the main bottleneck for electric vehicle performance. In this work, starting from a thorough review of literature approaches, we define a general optimization framework of minimum lap and race time problems for electric vehicles, suitable to figure out the impact of different modeling choices on both problem structure and optimal variables profiles. Exploiting a case study on Generation 3 (Gen 3) of Formula E cars, we delve into the impact of battery models’ complexity on both optimal sizing and optimal battery usage. We show how highly detailed models are necessary to study the evolution of both battery and vehicle control variables during the race, while, simple models are more than sufficient to address the battery sizing problem.

본문 84,993자

본문 펼치기
# Battery model impact on time-optimal co-design for electric racing cars: review and application Giorgio Riva, _Member,_ _IEEE,_ Stefano Radrizzani, _Member,_ _IEEE,_ Giulio Panzani, _Member,_ _IEEE_ _Abstract_ —The sustainable mobility trend touches the racing world as well, from the hybridization of Formula 1 (F1) and Le Mans Hypercars to the fully electric Formula E racing class. In this scenario, the research community is studying how to push electric racing vehicles to their limit, combining vehicle dynamics and energy management, to successfully solve the minimum lap time problem. Recently, this class of problems has been enlarged towards optimal sizing, with a particular interest in batteries, which represent the main bottleneck for electric vehicle performance. In this work, starting from a thorough review of literature approaches, we define a general optimization framework of minimum lap and race time problems for electric vehicles, suitable to figure out the impact of different modeling choices on both problem structure and optimal variables profiles. Exploiting a case study on Generation 3 (Gen 3) of Formula E cars, we delve into the impact of battery models’ complexity on both optimal sizing and optimal battery usage. We show how highly detailed models are necessary to study the evolution of both battery and vehicle control variables during the race, while, simple models are more than sufficient to address the battery sizing problem. _Index_ _Terms_ —Electric Racing Cars, Battery Sizing, Optimization, Optimal Control, Co-Design I. INTRODUCTION In the last decade, the interest in vehicles equipped with electric powertrains has considerably increased in light of the transition towards sustainable mobility. In this context, many technological challenges have emerged [1], and batteries represent one of the most impelling obstacles towards the fullscale adoption of Electric Vehicles (EV). Indeed, the current technologies available on the market suffer from multiple weaknesses, such as high costs, lower energy and power densities than fuel, and safety concerns [2]. As often happens in the automotive field, the most challenging technological progresses are driven by racing competitions, and vehicle electrification does not represent an exception. This fact is demonstrated by the hybridization pursued by Formula 1 (F1) and Le Mans Hypercars, and, most importantly, by the fully electric Formula E racing class, which has just revealed the plan for the new Generation 4, which will start racing in 2026. In racing competitions, performance is merely evaluated by the lap time, and in the specific case of electric vehicles, batteries represent the main bottleneck for performance. Indeed, manufacturers have to cope with the trade-off between the high energy and high power density of current state-of-the-art technologies, as a fragile balance The authors are with Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Via G. Ponzio 34/5, 20133, Milan, Italy (e-mail: giorgio.riva@polimi.it, stefano.radrizzani@polimi.it, giulio.panzani@polimi.it). Corresponding author: Giorgio Riva. among disposable energy, power, and weight. The pivotal role of batteries is also motivated by the continuous development of new technologies for automotive (see [3] for a complete overview), which represents a significant opportunity in the direction of performance enhancement in the future. Compared to urban vehicles, where the sizing of batteries and other powertrain components is chosen to maximize mileage and durability while satisfying economical constraints, in the racing context the focus is shifted towards the maximization of the vehicle performance given the requirements of the specific competition, e.g., mileage, weight, and power limitations. Thus, in the described scenario, the ability to evaluate the performance and to select the size of powertrain and battery pack components, for a given application, represents a key tool for racing vehicle manufacturers. _Literature_ _Review._ As a consequence, in the scientific literature many works have emerged tackling the problem of performance optimization for electric racing vehicles, where the role of the different components is taken into account, as in [4], [5], with an eye on batteries in [3], [6]. These works rely on the definition of an Optimal Control Problem (OCP), where each vehicle component is suitably modeled, and the time to cover a single lap or a full race is minimized, as a proxy for the vehicle performance. Minimum Lap Time (MLT) problems are widely studied in the scientific community of vehicle dynamics, as a tool to analyze and understand how to improve vehicle performance [7], [8], from the coupling of Quasi Steady State (QSS) methods and g-g plots [9], up to modern OCP solutions [10], starting from the 1990s. The family of OCP consists of a nonlinear optimization problem, setup to minimize the lap time and constrained by the vehicle dynamics. In this context, employed models span a variety of approaches: the vehicle can be modeled through either a simple point mass or a more complex multi-degrees-of-freedom (DOF) model, e.g., in [11], [12], while the trajectory can either be dictated or left free as an additional design variable. In the world of hybrid and electric vehicles, the standard vehicle model is the single DOF point mass driving on a fixed trajectory (see [4], [13]– [19]), especially when the focus is on the design of either the energy storage system or the powertrain, since it is able to grab the most relevant energy-related phenomena. As exceptions, [20] and [5] propose MLT solutions employing respectively a double track model with load transfer, and a fourteen DOF model including suspensions. The literature of OCP for hybrid electric vehicles is polarized towards the convex formulation based on [21], from the first work in [13] on a hybrid F1 car, followed by [14] and [15]. Inside this convex framework, [4] represents the first example of MLT for fully electric racing vehicles, where special effort is given to model and analyze the impact of both electric motor and transmission layouts. In all mentioned works, given the lap time objective, the battery is always modeled through a highly simplified equivalent circuit with constant voltage. In the light of sizing and management of the energy storage system, together with the temperature management of powertrain elements, a natural extension of MLT problems is represented by Minimum Race Time (MRT) ones, where mileage represents a key aspect in the optimization. In this scenario, [22] proposes a trajectory optimization OCP to devise a two laps race strategy for an autonomous electric vehicle, accounting for the temperature of the electric motor; while, in the flavor of convex formulations, [23] enlarges the MLT problem to a race as a sequence of stints for an endurance car, to outcome the optimal race strategy. In this context, the optimal sizing of batteries for electric racing vehicles has been addressed only by [6] and by its hybrid architecture extension in [3], which have first introduced a more complex battery model, where the voltage depends on the state-of-charge of the battery, to retrieve more reliable battery outcomes. These two works tackle the race problem in the same way as MLT ones, enlarging the optimization to the whole race length. It is worth mentioning that, different approaches to the race problem are proposed in [23] and [19], where a model of the lap time is learned from a large multitude of MLT-OCP solutions (e.g., through Artificial Neural Networks as in [19]), and the whole race is optimized through a simpler higher level problem, merging multiple laps. _Aim_ _and_ _Scope._ Considering the described state-of-the-art, the objective of our research is the study of the impact that different models can have on the structure of the resulting OCP, and on the obtained optimal size of a battery pack. In particular, we aim at highlighting the role of battery models, whose variety of choices entails the need for a precise guideline to catch different design objectives. In this way, we can address the problem of understating the amount of battery information that is needed a-priori when designing the battery pack for a racing application. Moreover, as a byproduct, we aim to tidy up the multiplicity of literature approaches for each component of a racing EV, inside a unified mathematical framework. _Main_ _Contributions._ The novel contributions of our work can be decomposed into two main branches. (i) We outcome a comprehensive literature review of minimum lap-race time problems for electric racing vehicles, with a focus on the different models employed for each subsystem: vehicle dynamics, powertrain and brakes, and batteries. Moreover, we show that the manifold of approaches available in the literature can be framed in a unified mathematical description of the problem, whose structural breakdown allows a straightforward analysis of its properties as a function of the modeling choices. Finally, to enhance the overall readability, all the derived model formulations are summarized in Tab. I, where the entire OCP is reconstructed, both in convex and non-convex forms. (ii) Regarding the impact of battery models, we leverage the previous works in [6] and [3] as a starting point, moving the focus from the selection of the best chemistry towards the choice of the most suitable battery model as a function of the designer objective. In this respect, we derive a practical guideline to select the complexity of the battery model, tailored to the desired objective, via a meaningful case study: the Formula E Generation 3 (Gen 3) in the 2021 Rome ePrix circuit, i.e, the current most challenging racing scenario for fully electric vehicles. The results suggest that the simplest possible battery model, whose parameters can be retrieved from easy-access datasheets, is sufficient to attain consistent sizing results, while the need for realistic behaviors of the optimized variables, for control purposes, can be obtained only via the more complex models, whose characterization might ask for further identification processes. In addition, we provide a detailed comparison between convex and non-convex formulations, showing their consistency in terms of race time and sizing results, but also their differences in the optimal profiles introduced by the needed relaxations in the convex solutions. _Outline._ In Section II, the joint minimum race time and battery sizing problem is formally defined, highlighting the structural breakdown of the constraints and deriving its bi-level formulation. In Section III, the different modeling approaches of each vehicle subsystem are analyzed in detail, discussing the impact of the different choices on the convexity property of the optimization problem. Finally, the case study is tackled in Section IV, where the impact of the derived battery models is discussed both in terms of sizing results and of the obtained profiles reliability, providing a useful guideline for the problem. The paper is ended in Section V with concluding remarks. II. THE JOINT MINIMUM RACE TIME AND BATTERY SIZING PROBLEM As already discussed in [6], the joint optimization of race time and battery size can be cast as a single Co-design Optimization Problem (Co-OP), relating the sizing parameters of the battery pack to their impact on the achievable race performance on a given circuit. In the literature, this codesign framework represents a common approach to tackle sizing problems of hybrid electric vehicles, both in racing, as in this work, and in non-racing applications. In the latter scenario, the final objective is typically different from time minimization (see [24]–[26]), and mainly focused on standard hybrid powertrains. In this work, we build up the formulation provided in [6] for the racing context, highlighting how different modeling choices, with special attention to batteries, impact the properties and the outcomes of the resulting Co-OP. Towards this aim, we structurally divide the set of optimization variables _U_ of the Co-OP as _U_ = [ _us, uv, up, ub_ ], where _us_ represents the set of sizing battery parameters for a fixed cell technology, and _uv_, _up_, _ub_ collect, respectively, all state and control variables related to the vehicle dynamics, the powertrain and braking system, and the battery. From this description, the Co-OP can be mathematically formulated as: _U_ =[ _us_ min _,uv,up,ub_ ] <sup>_t_</sup> <sup>race(</sup> <sup>_U_</sup> <sup>)</sup> (1a) _us_ _∈_ _S_ (1b) [ _uv, us_ ] _∈_ _V_ (1c) [ _up, us_ ] _∈_ _P_ (1d) [ _ub, us_ ] _∈_ _B_ (1e) [ _uv, up, ub, us_ ] _∈_ _C,_ (1f) where, the objective _t_ race defined in (1a) represents the overall race time to be minimized, while the feasible set, defined by the intersection of constraints (1b)-(1f), can be easily interpreted, thanks to the partition of _U_ as follows. (i) Set _S_ defines the admissible values for the tunable battery size parameters, which are typically expressed through box constraints. (ii) Sets _V, P, B_ model the evolution of the state variables and the possible physical limitations respectively of vehicle dynamics, powertrain and battery subsystems. Such three constraint sets are independent of the other subsystems’ variables, while they can be affected by the sizing ones _us_, as shown in Section III. As an example, _B_ constrains the evolution of the state-of-charge of the battery based on both the battery current and the size of the battery itself. (iii) Set _C_ models the coupling among the subsystems, and possibly the sizing variables. As already discussed in [6] and [27], Problem (1) can be reformulated, safeguarding the global optimum, as a bilevel optimization problem composed of two nested layers: the sizing variables _us_ are optimized in the outer layer, where the cost function is evaluated through the inner one, which solves the minimum race time problem, given a fixed value for the sizing variables _u_ ¯ _s_ _∈_ _S_ . The described bi-level optimization problem can be formulated as: As extensively used in the following section, (4) represents the building block to transform all dynamic equations in each subsystem of Problem (2) from time to space domain. To highlight the strong dependence of all state equations from the vehicle speed _v_, Problem (2) can be rewritten as: _uv_ _∈_ _V_ ( _us_ ) [ _up, v_ ] _∈_ _P_ ( _us_ ) [ _ub, v_ ] _∈_ _B_ ( _us_ ) [ _uv, up, ub_ ] _∈_ _C_ ( _us_ )    min _uv,up,ub_ - _S_ 0 <u>1</u> _v_ ( _s_ ) <sup>d</sup> <sup>_s_</sup> min _us∈S_    _,_ (5) _uv_ min _,up,ub_ <sup>_t_</sup> <sup>race(</sup> <sup>_uv, up, ub, us_</sup> <sup>)</sup> _uv_ _∈_ _V_ ( _us_ ) _up_ _∈_ _P_ ( _us_ ) _ub_ _∈_ _B_ ( _us_ ) [ _uv, up, ub_ ] _∈_ _C_ ( _us_ )    min _us∈S_    _._ (2) where _v_ is omitted in the first constraint because, as it will be explained in the next section, it always belongs to vector _uv_ . Thus, we remark that the vehicle speed profile is an optimization variable, and is not imposed a-priori. The formulation of Problem (5) provides a plain description of the optimization problem, where each subsystem - vehicle, powertrain and battery - is modeled through an independent set of constraints plus the coupling terms, possibly shaped by the fixed sizing variables. In the following sections, a comprehensive overview of the modeling approaches employed in the literature for each subsystem is presented, highlighting their impact on the structure of the optimization problem, and on the significance of both sizing results and optimal profiles via a suitable case study. III. MINIMUM RACE TIME MODELING As anticipated, the focus of this work is the analysis of the properties of the inner layer problem - i.e., the minimum race time one - looking at the impact on the sizing results of the outer one. So, we remark that we do not deepen the properties of the outer layer, mainly for two reasons: (i) it represents a different topic that requires a dedicated analysis, and (ii) in most cases, like in the example of Section IV, it can be easily solved either through greedy brute-force approaches, like gridding, or via more efficient gradient-free solutions, as in [3], [6], with Bayesian Optimization, due the limited size and discrete nature of the problem. Given this premise, in this section, the different modeling approaches employed in the literature for each subsystem of the inner layer of Problem (5) are considered, analyzing their impact on the problem structure. A specific focus is given to the _convexity_ property, which plays a fundamental role in optimization [29]. Indeed, convex formulations of optimization problems can be very convenient for two main reasons [29]: (i) any local minimum is also a global one, and (ii) the availability of reliable and efficient off-the-shelf solvers. Thus, convexity represents a nice to have property also for the class of problems tackled in this work, in order to guarantee global optimality and ease of solution despite the possible huge dimension of the problem itself, as discussed by many works, like [4], [13]. On the other hand, many physical laws employed in these problems are modeled by non-convex relationships, requiring possible significant approximations to keep them convex. This clean trade-off between convex and Before moving on, we introduce here a fundamental modeling tool, common to all subsystems of the problem. As explained before, the main objective of the sizing problem in (1) for a racing vehicle is the minimization of the race time, which can be expressed as: _t_ <sup>_∗_</sup> _race_ <sup>= arg min</sup> <sup>_t_</sup> <sup>(</sup> <sup>_S_</sup> <sup>)</sup> <sup>_,_</sup> (3) where _t_ is the time, _S_ is the race length. To formulate an Optimal Control Problem (OCP), we exploit a state-space reformulation where the covered space along the race-line _s_ becomes the independent variable [13], [28] and the link between space and time is given by the vehicle speed _v_ : _v_ = <sup><u>d</u></sup> d <sup>_<u>s</u>_</sup> _t_ <sup><u>d</u></sup> d <sup>_<u>s</u>_</sup> _t_ <sup>_→_</sup> d <sup><u>d</u></sup> _s_ <sup>_•_</sup> d <sup><u>d</u></sup> _s_ <sup>_•_</sup> <sup>=</sup> _v_ <sup><u>1</u></sup> _v_ <sup><u>1</u></sup> <sup>_·_</sup> d <sup><u>d</u></sup> _t_ <sup>_•_</sup> (4) d <sup><u>d</u></sup> _t_ <sup>_•_</sup> <sup>_._</sup> non-convex approaches is investigated in detail in this section from a modeling prospective, while the effect on results is addressed in Section IV. We refer to Tab. I for a summary of all the possible models described in the following of the section. _A._ _Vehicle_ _Dynamics_ _Model_ In the minimum lap/race time framework, especially when the main goal is the sizing of the energy storage system, the point-mass model is typically employed [4], [13]–[19], to face the trade-off between model accuracy and complexity. The reason is two-fold: (i) the race-line is considered fixed and lap invariant, and (ii) the point-mass model is sufficient to capture all the energy related phenomena, which are the key elements for the battery sizing problem, as validated from an energy-related perspective in [6] or [18] against a commercial simulator. The point mass model describes the dynamics of a vehicle only by means of the evolution of the longitudinal speed, which is computed by the following force balance: where total longitudinal, lateral and vertical forces - respectively _Fx_, _Fy_ and _Fz_ - acting on the vehicle are defined as: _Fx_ = <sup>_<u>T</u>_</sup> _R_ <sup>_<u>w</u>_</sup> <sup><u>(</u></sup> w <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _Fy_ = _MρR_ ( _s_ ) _v_ ( _s_ ) <sup>2</sup> _Fz_ = _Mg_ cos( _θ_ ( _s_ )) + _F_ down( _v_ ( _s_ )) _,_ (10) �2 + _µy_ - _<u>MρR</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>v</u>_ <u>(</u> _<u>s</u>_ <u>)</u> <sup>2</sup> _Mg_ cos( _θ_ ( _s_ )) + _C_ down _v_ ( _s_ ) <sup>2�2</sup> _._ �2 _≤_ _−_ _F_ drag( _v_ ) _−_ _F_ roll( _v, θ_ ) _−_ _Fg_ ( _θ_ ) _,_ (6) where the aerodynamic downforce is expressed as _F_ down = _C_ down _v_ ( _s_ ) <sup>2</sup>, and _C_ down is the aerodynamic downforce coefficient. Exploiting the force definitions, (9) becomes - _µTxwR_ <u>(</u> _<u>sw</u>_ <u>)</u> �2 + - _<u>MρR</u>_ <u>(</u> _µsy_ <u>)</u> _<u>v</u>_ <u>(</u> _<u>s</u>_ <u>)</u> <sup>2</sup> �2 _≤_ - _Mg_ cos( _θ_ ( _s_ )) + _C_ down _v_ ( _s_ ) <sup>2�2</sup> _._ (11) It is worth mentioning that, in many literature works, e.g., [4], [13], the ellipse constraint is relaxed by a rectangle, decoupling longitudinal and lateral limits, allowing the computation in advance of the maximum vehicle speed value achievable along the race-line, combining expressions of lateral and vertical forces in (10). For the purpose of our work, we stick with the ellipse formulation, which represents a better description of the _driving_ _at_ _the_ _limit_ concept typical of the racing scenario. From the above description of the vehicle model, we can specify the cost function in (5), the vector of optimization variables _uv_ = [ _v_ ( _s_ ) _, Tw_ ( _s_ )], and the constraint set _V_, composed by equations (7,8,11). In this formulation, which is summarized in Tab. I, non-convexity arises due to multiple reasons: i) the term _v_ <sup><u>1</u></sup> <sup>in</sup> <sup>the</sup> <sup>cost</sup> <sup>function</sup> <sup>(5),</sup> <sup>ii)</sup> <sup>the</sup> <sup>term</sup> _v_ <sup><u>1</u></sup> and the term proportional to _v_ <sup>2</sup> in the state dynamics equality constraint (8), and iii) the fourth-order polynomial dependence from _v_ in the inequality constraint (11). Nevertheless, different works, starting from [21] and [13], have shown that it is possible to rewrite the vehicle dynamics part of the optimization problem into a convex framework. This formulation is achieved from the non-convex one by following the three steps below. (i) The lethargy dd _st_ <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>is</sup> <sup>introduced</sup> <sup>as</sup> <sup>an</sup> <sup>additional</sup> <sup>opti-</sup> mization variable, making the cost function (5) linear, thus convex: <u>dd</u> _<u>vt</u>_ <sup>=</sup> _M_ <sup><u>1</u></sup> <u>d</u> _<u>v</u>_ _M_ - _<u>Tw</u>_ _Rw_ initialized as: _v_ (0) = _v_ 0 _,_ (7) where _v_ is the vehicle speed tangential to the fixed race-line, which is described by the curvature _ρR_ ( _s_ ) and slope _θ_ ( _s_ ). The force _F_ drag = _C_ drag _v_ <sup>2</sup> represents the drag resistance, defined by the aerodynamic drag coefficient _C_ drag, which is the predominant friction contribution in racing cars due to the high speed. The force _F_ roll = _C_ roll _Fz_ is the rolling resistance, which is proportional, via the rolling coefficient _C_ roll, to the vertical load _Fz_, which is defined later in (10). Force _Fg_ = _Mg_ sin( _θ_ ), instead, is the gravitational resistance, where _g_ = 9 _._ 81 m/s <sup>2</sup> is the gravitational acceleration. Parameter _M_ is the total mass of the vehicle, comprising the battery _Mb_ and the chassis _Mv_ one, and _Rw_ is the radius of a single equivalent wheel. Finally, _Tw_, i.e., the total torque applied to the wheel, is the control variable that affects the longitudinal speed, while _v_ 0 represents the initial speed, which can model either a standstill or a rolling start. Following the state-space reformulation introduced in (4), the vehicle state equation becomes: _v_ <sup><u>1</u></sup> <sup>in</sup> <sup>the</sup> <sup>cost</sup> <sup>function</sup> <sup>(5),</sup> <sup>ii)</sup> <sup>the</sup> <sup>term</sup> _v_ <sup><u>1</u></sup> - _S_ 0 <u>1</u> _v_ ( _s_ ) <sup>d</sup> <sup>_s →_</sup> - _S_ 0 <u>d</u> _<u>t</u>_ d _s_ <sup>(</sup> <sup>_s_</sup> <sup>)d</sup> <sup>_s._</sup> (12) - _·_ _v_ (1 _s_ ) <sup>_._</sup> Despite this, the link between vehicle speed _v_ ( _s_ ) and lethargy still introduces the non-convex constraint _v·_ d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>=</sup> 1, which can be however relaxed as: _v_ ( _s_ ) _·_ d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≥_</sup> <sup>1</sup> <sup>_,_</sup> (13) <u>d</u> _<u>v</u>_ d( _ss_ <u>)</u> = _M_ <u>1</u> - _<u>Tw</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _Rw_ _w_ <u>(</u> _<u>s</u>_ <u>)</u> _−_ _F_ drag( _v_ ( _s_ )) _−_ _F_ roll( _v_ ( _s_ ) _, θ_ ( _s_ )) _−_ _Fg_ ( _θ_ ( _s_ )) (8) We highlight that, all the variables are expressed in a coordinate frame attached to the vehicle, where the _x_ axis is the longitudinal direction, the _z_ axis points upwards, normal to the track, and the _y_ axis completes the right-handed coordinate system. We refer to [3] for a pictorial representation. Given the assumptions of point-mass model and fixed trajectory, the lateral dynamics is accounted for via the friction-ellipse static constraint [6], [20], limited by the peak values of longitudinal and lateral friction, _µx_ and _µy_ as: that is a convex constraint since it can be expressed as the second-order cone (see [4] and [13] for more details) ������ ������ 2 d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_,_</sup> <sup>(14)</sup> _v_ ( _s_ ) _·_ _v_ <sup><u>1</u></sup> ¯ d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> _v_ <sup><u>1</u></sup> ¯ <sup>_−_</sup> <sup>_v_</sup> <sup>¯</sup> <sup>_·_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> _≤_ _v_ ( _s_ ) _·_ _v_ <sup><u>1</u></sup> ¯ ������������2 _v_ <sup><u>1</u></sup> ¯ <sup>+ ¯</sup> <sup>_v ·_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> - _<u>Fy</u>_ _µy_ where _v_ ¯ = 1 m/s is the normalization speed. (ii) The kinetic energy of the vehicle _E_ kin( _s_ ) is introduced as a state variable in place of the speed _v_ ( _s_ ), generating a linear, thus convex, state equation, since the spatial �2 _≤_ _Fz_ <sup>2</sup> <sup>_,_</sup> (9) - _<u>Fx</u>_ _µx_ �2 + derivative of an energy is a force, and the drag resistance is a linear function of the kinetic energy: <u>d</u> _<u>E</u>_ <u>kin(</u> _<u>s</u>_ <u>)</u> <u>kin(</u> _<u>s</u>_ <u>)</u> = <sup>_<u>Tw</u>_</sup> <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> d _s_ _Rw_ _−_ <sup><u>2</u></sup> _M_ <sup>(</sup> <sup>_C_</sup> <sup>drag +</sup> <sup>_C_</sup> <sup>roll</sup> <sup>_C_</sup> <sup>down)</sup> <sup>_E_</sup> <sup>kin(</sup> <sup>_s_</sup> <sup>)</sup> _Rw_ _−_ _Mg_ (sin( _θ_ ( _s_ )) + _C_ roll cos( _θ_ ( _s_ ))) _,_ (15) initialized as: _E_ kin(0) = <sup><u>1</u></sup> 2 <sup><u>1</u></sup> 2 <sup>_Mv_</sup> 0 <sup>2</sup> <sup>_._</sup> (16) Equivalent Circuit Models (ECM) can be the right tool to use, see [3], [6], [18], [23]. The family of ECMs is wide, and we can search for the right balance between complexity and accuracy, which affects both the structure of the problem and the significance of the results. In the next part of the section, we describe three possible modeling approaches, with increasing complexity, from a non-convex perspective, and then, as in Section III-A, we discuss how, whether it is possible, to obtain a convex formulation for the subsystem. All three models share some common variables and equations, that are summarized in this paragraph. The battery pack is made of a multitude of cells, taken from a specific technology. Each cell technology is characterized by its weight _m_ cell, a nominal capacity _q_ cell, an internal resistance _r_ 0 _,_ cell, and an Open-Circuit Voltage (OCV) _v_ oc, the latter possibly function of the state-of-charge (SoC), labelled with _ζ_ in the equations, of the cell. From these definitions, the related variables at the battery level can be computed as functions of the battery size parameters, i.e., the number of cells in series _Ns_ and in parallel _Np_ : Finally, the non-convex quadratic equality constraint between kinetic energy and speed, _E_ kin( _s_ ) = <sup><u>1</u></sup> 2 <sup>_Mv_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)2,</sup> <sup>is</sup> tween kinetic energy and speed, _E_ kin( _s_ ) = <sup><u>1</u></sup> 2 <sup>_Mv_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)2,</sup> <sup>is</sup> relaxed as: _E_ kin( _s_ ) _≥_ <sup><u>1</u></sup> 2 <sup><u>1</u></sup> (17) 2 <sup>_Mv_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)2</sup> <sup>_,_</sup> to obtain a convex quadratic inequality constraint. (iii) The non-convex ellipse limit in (11) can be expressed as a convex constraint exploiting the norm operator and the linearity of both centripetal and aerodynamic forces with respect to kinetic energy: ������ ������ ������2 _<u>Tw</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _µxRw_ <u>2</u> _<u>ρR</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>E</u>_ <u>kin(</u> _<u>s</u>_ <u>)</u> _µy_ ������ _r_ 0 _,_ cell _,_ _Qb_ = _Npq_ cell _._ (19) _≤_ - <u>2</u> �2 _Mg_ cos( _θ_ ( _s_ )) + _M_ <sup>_C_</sup> <sup>down</sup> <sup>_E_</sup> <sup>kin(</sup> <sup>_s_</sup> <sup>)</sup> (18) To retrieve a convex formulation for the vehicle dynamics, the two relaxations (13) and (17) are necessary, but, fortunately, they do not change the global optimum. Indeed, the solution of the relaxed problem is equivalent to the non-relaxed one, because both constraints would be satisfied with equality. Indeed, 1) to minimize the race time, the lethargy dd _st_ <sup>must</sup> be minimized, meaning that, given a vehicle speed the first relaxation (13) would be satisfied with equality; 2) then, for the same reason, the optimal solution would maximize the vehicle speed, which is limited by the kinetic energy constraint, leading to the tight satisfaction of the second relaxation (17). To recap, the convex formulation of the vehicle dynamics has _uv_ = - dd _st_ <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, v_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, E_</sup> <sup>kin(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, Tw_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> - as set of optimization _V_ oc = _Nsv_ oc _,_ _R_ 0 = <sup>_<u>Ns</u>_</sup> _Np_ Each battery model includes also the SoC dynamics, which is expressed through the battery current _Ib_ ( _s_ ) using the spatial reformulation in (4) as: <u>d</u> _<u>ζ</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>ζ</u>_ <u>(</u> _<u>s</u>_ <u>)</u> = _−_ <sup>_<u>Ib</u>_</sup> <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> d _s_ _Qb_ <u>1</u> _·_ _v_ ( _s_ ) <sup>_._</sup> (20) _Qb_ - dd _st_ <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, v_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, E_</sup> <sup>kin(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, Tw_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> has _uv_ = - dd _st_ <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, v_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, E_</sup> <sup>kin(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, Tw_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> - as set of optimization variables, and the set _V_ defined as in Tab. I as the set of constraints (14,15,16,17,18). We claim that the vehicle dynamics part of the optimization problem in (5) can be expressed, without approximation, as a convex problem, at the price of two additional optimization variables, one for each constraint relaxation, which may increase the computational burden. We remark also that this convex formulation is not limited to the point-mass model of a vehicle, but it can be extended to more complex scenarios, as shown by [20] with a double-track model for a minimum lap time problem. Moreover, the whole battery pack weight _Mb_, affecting the vehicle mass _M_ in (6), can be expressed as: _Mb_ = <sup>_<u>NpN</u>_</sup> _α_ <sup>_<u>sm</u>_</sup> <sup><u>cell</u></sup> _,_ (21) where _α_ is the packaging factor accounting for the weight of the battery case, which is modeled as the (1 _−_ _α_ ) percentage of the overall weight. Then, to exploit the battery in its correct operating region, strict constraints, obtained from cell limits on voltage ( _v_ min _, v_ max), current ( _i_ min _, i_ max), and SoC, are introduced: _Npi_ min _≤_ _Ib_ ( _s_ ) _≤_ _Npi_ max _Nsv_ min _≤_ _Vb_ ( _s_ ) _≤_ _Nsv_ max 0 _≤_ _ζ_ ( _s_ ) _≤_ 1 _,_ (22) _B._ _Battery_ _Model_ In this section, we discuss the core topic, namely the modeling of the battery subsystem in Problem (5). In a sizing problem, the battery model should be able to capture (i) the internal energy losses, (ii) the dynamics of the disposable energy, and (iii) its physical limitations constraining the achievable performance, while keeping the complexity as low as possible. In this scenario, electro-chemical models [30] are far away from being exploitable, and it is well-established that where _Vb_ is the battery voltage at the terminals, whose expression depends on the chosen model. Finally, to comply with possible regulations, a limit on the power achievable at the terminals of the battery, i.e., _Pb_ ( _s_ ) = _Vb_ ( _s_ ) _·_ _Ib_ ( _s_ ), is introduced: _Pb,_ min _≤_ _Vb_ ( _s_ ) _· Ib_ ( _s_ ) _≤_ _Pb,_ max _._ (23) In the following, the peculiarities of each non-convex battery model are described, deriving its own formulation inside the optimization problem. 1) _Static_ _ECM_ _with_ _constant_ _OCV_ _(_ Vn _–_ R _)._ It is the simplest model, where the open-circuit voltage is assumed to be constant and equal to the nominal value: _V_ oc = _Nsv_ oc = _Nsvn_ = _Vn_, where _vn_ is the nominal cell voltage. The battery optimization vector is defined as _ub_ = [ _ζ_ ( _s_ ) _, Ib_ ( _s_ )], while the constraint set _B_, in Tab. I, contains equations (20,22,23), where _Vb_ ( _s_ ) = _Vn −_ _R_ 0 _Ib_ ( _s_ ). 2) _Static_ _ECM_ _with_ _SoC_ _dependent_ _OCV_ _(_ VSoC _–_ R _)_ . This second model integrates the well-known dependence of the open-circuit voltage from the state-ofcharge to improve accuracy, i.e., _V_ oc( _ζ_ ) = _Nsv_ oc( _ζ_ ), where the dependence can be any nonlinear function matching experimental data. In this second model, vector _ub_ = [ _ζ_ ( _s_ ) _, Ib_ ( _s_ )] is the same as the first one, while the constraint set _B_ is very similar to the previous case, as shown in Tab. I, where _Vb_ ( _s_ ) = _V_ oc( _ζ_ ( _s_ )) _−_ _R_ 0 _Ib_ ( _s_ ). 3) _Dynamic_ _ECM_ _with_ _SoC_ _dependent_ _OCV_ _(_ VSoC _–_ RC _)_ . In this last case, we leverage the Randle model, which adds dynamic components to the second static equivalent circuit in the form of RC pairs, which account for the relaxation dynamics in the cell. In our work, we consider a model with a single RC pair, chosen as the one with the longest time constant [30], because fast ones are typically characterized by much lower resistance values, thus less impacting on the disposable energy. We enlarge the set of optimization variables, _ub_ = [ _ζ_ ( _s_ ) _, Ib_ ( _s_ ) _, V_ 1( _s_ )], to include an additional state, namely the voltage _V_ 1 across the equivalent RC pair at the battery level, whose resistance and capacitance values at the battery level are obtained using Thevenin’s equivalent from cell’s ones as _C_ 1 = _c_ 1 _<u>NNps</u>_ <sup>and</sup> <sup>_R_</sup> <sup>1</sup> <sup>=</sup> <sup>_r_</sup> <sup>1</sup> <sup>_<u>N</u>_</sup> _Np_ <sup>_<u>s</u>_</sup> <sup>,</sup> <sup>and</sup> <sup>whose</sup> <sup>state</sup> <sup>equation</sup> (ii) From simple manipulations of the equations, the power loss in the internal resistance can be written as: _Pb,_ loss( _s_ ) = _P_ oc( _s_ ) _−_ _Pb_ ( _s_ ) = <sup>_<u>R</u>_</sup> <sup><u>0</u></sup> _Vn_ <sup>2</sup> _· P_ oc <sup>2</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_._</sup> (27) Exploiting the definition of _F_ oc( _s_ ), _Fb_ ( _s_ ), and lethargy dd _st_ <sup>, the power loss in the internal resistance can be written</sup> in terms of forces as: ( _F_ oc( _s_ ) _−_ _Fb_ ( _s_ )) _·_ d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>) =</sup> _V_ <sup>_<u>R</u>_</sup> _n_ <sup><u>02</u></sup> _Vn_ <sup>2</sup> _· F_ oc <sup>2</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_._</sup> (28) To obtain a convex formulation, (28) is relaxed by: ( _F_ oc( _s_ ) _−_ _Fb_ ( _s_ )) _·_ d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≥_</sup> _V_ <sup>_<u>R</u>_</sup> _n_ <sup><u>02</u></sup> _Vn_ <sup>2</sup> _· F_ oc <sup>2</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_,_</sup> (29) which is a second-order cone, as shown in [4]: ������������ _~~√~~_ _<u>R</u>_ <u>0</u> 2 _Vn_ _F_ <sup><u>1</u></sup> <u>¯</u> <sup>_−_</sup> <sup>_v_</sup> <sup>¯</sup> <sup>_·_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> _~~√~~_ _<u>R</u>_ <u>0</u> - _<u>v</u>_ <u>¯</u> 2 _Vn_ <sup>_F_</sup> <sup>oc(</sup> <sup>_s_</sup> <sup>)</sup> _F_ <u>¯</u> ( _F_ oc( _s_ ) _−_ _Fb_ ( _s_ )) _·_ _F_ <sup><u>1</u></sup> <u>¯</u> <sup>_−_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> _Vn_ <sup>_F_</sup> <sup>oc(</sup> <sup>_s_</sup> <sup>)</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_,_</sup> _≤_ ( _F_ oc( _s_ ) _−_ _Fb_ ( _s_ )) _·_ _F_ <sup><u>1</u></sup> <u>¯</u> ������ ������������2 _F_ <sup><u>1</u></sup> <u>¯</u> <sup>+ ¯</sup> <sup>_v ·_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> _<u>NNps</u>_ <sup>and</sup> <sup>_R_</sup> <sup>1</sup> <sup>=</sup> <sup>_r_</sup> <sup>1</sup> <sup>_<u>N</u>_</sup> _Np_ <sup>_<u>s</u>_</sup> _C_ 1 = _c_ 1 _<u>NNps</u>_ <sup>and</sup> <sup>_R_</sup> <sup>1</sup> <sup>=</sup> <sup>_r_</sup> <sup>1</sup> <sup>_<u>N</u>_</sup> _Np_ <sup>_<u>s</u>_</sup> <sup>,</sup> <sup>and</sup> <sup>whose</sup> <sup>state</sup> <sup>equation</sup> reads as (30) where _v_ ¯ = 1 m/s and _F_ <sup>¯</sup> = 1 N are normalization terms. This last relaxation requires an important remark: if on the one hand, it allows to obtain a convex formulation of the model, on the other hand, differently from the vehicle dynamics case, it is satisfied with equality only when the battery energy should be optimized to minimize the race time. In all other cases, the internal battery loss can be overestimated, leading to nonphysical profiles, as shown in Fig. 6 for the case study. Finally, from (25), the battery linear inequality constraints (22) and (23) are rewritten in terms of forces as: <sup><u>d</u></sup> d _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_R_</sup> <sup>0</sup> _._ (24) _Npi_ min d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> _Nsv_ min d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_<u>F</u>_</sup> <sup><u>oc</u></sup> _Vn_ <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_Vn_</sup> <sup><u>d</u></sup> d _s_ <sup>_<u>t</u>_</sup> <sup><u>oc</u></sup> _Vn_ <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _≤_ _Npi_ max d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <u>d</u> _<u>V</u>_ <u>1(</u> _<u>s</u>_ <u>)</u> <u>1(</u> _<u>s</u>_ <u>)</u> <u>1</u> = d _s_ _v_ ( _s_ ) <sup>_·_</sup> _C_ <sup><u>1</u></sup> 1 d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> _C_ 1 - _Ib_ ( _s_ ) _−_ <sup>_<u>V</u>_</sup> <sup><u>1(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _R_ 1 _<u>F</u>_ <u>oc(</u> _<u>s</u>_ <u>)</u> <u>oc</u> _Vn_ <u>(</u> _<u>s</u>_ <u>)</u> _≤_ _Nsv_ max d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> _,_ <sup><u>d</u></sup> d _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> From this addition, set _B_ enlarges the previous one including (24), as visible in Tab. I, where _Vb_ ( _s_ ) = _V_ oc( _ζ_ ( _s_ )) _−_ _R_ 0 _Ib_ ( _s_ ) _−_ _V_ 1( _s_ ). As stated before, all the three introduced models are defined through non-convex constraints, due to the presence of term _v_ <u>1</u> <sup>in</sup> <sup>the</sup> <sup>state</sup> <sup>equations,</sup> <sup>and,</sup> <sup>for</sup> <sup>the</sup> <sup>last</sup> <sup>two,</sup> <sup>of</sup> <sup>the</sup> <sup>OCV</sup> relationship with respect to the SoC. A convex re-formulation, as demonstrated in [4], [13], is possible only when the opencircuit voltage is assumed constant and is based on the following steps. (i) Thanks to the constant OCV, battery SoC can be equiv alently replaced by the available battery energy _Eb_ as a state variable, which are linked by _Eb_ ( _s_ ) = _ζ_ ( _s_ ) _·_ _Qb ·_ _Vn_ . As explained for the vehicle dynamics model, the spatial derivative of energy is a force, meaning that, declaring the open-circuit and terminal forces, _F_ oc( _s_ ) and _Fb_ ( _s_ ), from the respective powers _P_ oc( _s_ ) and _P_ b( _s_ ) as: _Pb,_ min d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_Fb_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_Pb,_</sup> <sup>max d</sup> d _s_ <sup>_<u>t</u>_</sup> _v_ <sup><u>oc</u></sup> ( _s_ <sup><u>(</u></sup> ) <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <sup>=</sup> <sup>_<u>Vn</u>_</sup> _v_ <sup>_<u>·</u>_</sup> ( <sup>_<u>I</u>_</sup> _s_ <sup>_<u>b</u>_</sup> ) <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _F_ oc( _s_ ) = <sup>_<u>P</u>_</sup> _v_ <sup><u>oc</u></sup> ( _s_ <sup><u>(</u></sup> ) <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _v_ ( _s_ ) _Fb_ ( _s_ ) = <sup>_<u>P</u>_</sup> _v_ <sup>_<u>b</u>_</sup> ( <sup><u>(</u></sup> _s_ <sup>_<u>s</u>_</sup> ) <sup><u>)</u></sup> <sup>=</sup> <sup><u>(</u></sup> <sup>_<u>Vn−R</u>_</sup> <sup><u>0</u></sup> 0 _≤_ _Eb_ ( _s_ ) _≤_ _Eb_ <sup>max</sup> _,_ (31) where _Eb_ <sup>max</sup> = _Qb_ _·_ _Vn_ . From the above description, in the convex reformulation the vector _ub_ is defined as _ub_ = [ _Eb_ ( _s_ ) _,_ _F_ oc( _s_ ) _,_ _Fb_ ( _s_ )], while the constraint set _B_, as in Tab. I, contains equations (26,30,31). To conclude, we highlight once more that this convex reformulation is possible only for the model with constant OCV introducing the aforementioned relaxation. Even if in [31] a linear dependence of such a relationship is integrated into a convex framework for energy optimization, its applicability can not be extended to the minimum lap-race time problem, due to the needed spatial reformulation. _C._ _Powertrain,_ _Brakes_ _and_ _Coupling_ _Constraints_ The integration of the battery and vehicle models is achieved via both coupling constraints and powertrain-brakes modeling, whose models are highly influenced by the required level of detail. In racing electric cars, we identify three main components connecting the battery to the vehicle: (i) _inverter_, (ii) _electric_ _motor_, and (iii) _gear-box_ . As a preliminary observation, the dynamics involved in these subsystems are typically orders of magnitude faster than the vehicle one, so that, as far as we are aware, no state variables are considered in any <sup>_<u>P</u>_</sup> _v_ <sup>_<u>b</u>_</sup> ( <sup><u>(</u></sup> _s_ <sup>_<u>s</u>_</sup> ) <sup><u>)</u></sup> <sup>=</sup> <sup><u>(</u></sup> <sup>_<u>Vn−R</u>_</sup> <sup><u>0</u></sup> _v_ <sup>_<u>I</u>_</sup> ( <sup>_<u>b</u>_</sup> _s_ <sup><u>(</u></sup> ) <sup>_<u>s</u>_</sup> <sup><u>))</u></sup> <sup>_<u>·Ib</u>_</sup> <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> (25) _v_ <sup>_<u>I</u>_</sup> ( <sup>_<u>b</u>_</sup> _s_ <sup><u>(</u></sup> ) <sup>_<u>s</u>_</sup> <sup><u>))</u></sup> <sup>_<u>·Ib</u>_</sup> <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _,_ we can derive the state equation for the battery energy evolution as: <u>d</u> _<u>Eb</u>_ <u>(</u> _<u>s</u>_ <u>)</u> = _−F_ oc( _s_ ) _._ (26) d _s_ previous work (inside vector _up_ ). The only exception regards the temperature dynamics of the electric motor, see [22] and [17], which however falls outside the domain of interest of this work, where we stick with the assumption in [6] and [3] of the presence of a properly sized cooling system able to keep the temperature under control. The _inverter_ is rarely accounted for in literature: in [23] the losses are modeled through a fitted quadratic function, framing it in the convex scenario through a similar relaxation technique used for the battery pack in (29); in [32], instead, the losses are introduced on semiconductor level, including both conduction and switching losses in a non-convex optimization setup. On the contrary, the _electric_ _motor_ is widely considered: [20], [23] and similarly [4], account for the motor limits and its losses via a quadratic model, fitted from data, as functions of the operating point; [17] and [18] employ a simpler model of the losses, just proportional to the square of the output power. In all these approaches, the models of the losses are relaxed, similarly to (29), to be included in a convex framework. We remark that the same approaches can be employed without relaxations in a non-convex setup, like in [19] for F1 hybrid cars. Finally, regarding the _gear-box_, most literature works, see [23] and [20], use a Fixed Gear Transmission (FGT) model with constant gear ratio and efficiency. However, [4] enlarges the analysis comparing the FGT model with a Continuously Variable Transmission (CVT), where the losses are included via a fitted quadratic model, always relaxed to be in a convex framework. Despite more complex models can be included, as in [32] and [23], given the energetic perspective of battery sizing problems, we employ the simplest possible one, namely a single average efficiency _η_ mapping the entire chain from the battery to the wheel, thus, including the electric motor, the inverter, and the gear-box. In this way, the focus is given to the impact of the different battery models discussed in Section III-B. Despite its simplicity, a fixed efficiency with a bi-directional flow of power can not be easily modeled, since the value of the efficiency is a discontinuous function of the sign of battery current: As already stated, the smoothing of the efficiency model in (33) still represents a non-convex constraint. Nevertheless, a convex solution can be obtained employing a technique proposed in the literature for the gear-box efficiency [20]. In this solution, see also Tab. I, the brake torque does not explicitly appear, so that _up_ and set _P_ can be left empty, since the total torque applied to the wheel _Tw_ ( _s_ ) includes the electric motor one. The discontinuous efficiency is accounted for in the coupling constraint via the following double inequality:    _Rw_ _w_ <u>(</u> _<u>s</u>_ <u>)</u> _−_ _η_ <sup><u>1</u></sup> _<u>TRw</u>_ _w_ <u>(</u> _<u>s</u>_ <u>)</u> _−_ _ηFb_ ( _s_ ) _≤_ 0 _<u>Tw</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _Rw_ _<u>Tw</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _η_ <sup><u>1</u></sup> <sup>_Fb_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>0</sup> (35) The constraint relaxation in (35) requires a two-fold explanation: (i) _RTww_ <sup>_−_</sup> <sup>_ηFb_</sup> <sup>_≤_</sup> <sup>0</sup> <sup>models</sup> <sup>the</sup> <sup>traction</sup> <sup>phase,</sup> <sup>and</sup> <sup>it</sup> is satisfied with equality when the battery energy should be optimized to minimize the race time; (ii) _R_ <sup>_<u>Tw</u>_</sup> _w_ <sup>_−_</sup> _η_ <sup><u>1</u></sup> <sup>_Fb_</sup> <sup>_≤_</sup> <sup>0 models</sup> the braking phase, where the difference between wheel and efficiency-scaled battery power is allocated to the mechanical brakes as: _R_ <sup>_<u>Tw</u>_</sup> _w_ <sup>_−_</sup> _η_ <sup><u>1</u></sup> br <sup>_∗_</sup> <sup>(</sup> <sup>_s_</sup> <sup>) =</sup> <sup>_Tw_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_<u>Rw</u>_</sup> _η_ _T_ <sup>_∗_</sup> <sup>_<u>w</u>_</sup> (36) _η_ <sup>_Fb_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_._</sup> _Tm_ ( _s_ ) _·_ <sup>_<u>v</u>_</sup> <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _R_ w = _Vb_ ( _Ib_ ( _s_ )) _· Ib_ ( _s_ ) _· η_ <sup>sign(</sup> <sup>_Ib_</sup> <sup>(</sup> <sup>_s_</sup> <sup>))</sup> _,_ (32) where _Tm_ ( _s_ ) is the torque delivered by the electric motor, which is part of the powertrain variables _up_, together with the brake negative torque _T_ br: _up_ = [ _Tm_ ( _s_ ) _, T_ br( _s_ )]. The discontinuity in (32) can be smoothed as proposed in [6] to obtain a non-convex differentiable equality constraint: _η_ <sup>sign(</sup> <sup>_Ib_</sup> <sup>(</sup> <sup>_s_</sup> <sup>))</sup> _≃_ If, on the one hand, such an implicit brake formulation allows to reduce the number of optimization variables with simpler constraints; on the other hand, it does not allow the simulation of situations where mechanical brakes are absent or power limited, like for the rear emergency brakes of Formula E Generation 3, which can be easily handled with the non-convex formulation in (34). IV. THE IMPACT OF BATTERY MODEL ON MRT AND SIZING: A CASE STUDY To evaluate the impact of the different modeling choices described in Section III, a case study is addressed. Similarly to [3], [6], the vehicle is a Formula E car, specifically the Generation 3, and its parameters are shown in Tab. II. Concerning the battery cell, we considered a single technology, the Sony Murata US18650VTC6 (VTC6), representative of the racing context, as demonstrated by its usage in the Formula E Generation 2 championship. Its parameters, are reported in Tab. III, highlighting if they are available from easy-access datasheets <sup>*,†</sup> or if an identification process is required. The identified parameters come from three different identification procedures proposed in [33], considered as possible alternative models. To summarize, the following models are considered: (i) Vn – R, characterized by the nominal constant open-circuit voltage and one resistance; (ii) VSoC – R, with a SoC-dependent open-circuit voltage and one resistance; (iii) VSoC – RC, with an RC couple in addiction to VSoC-R, taking into account the three sets of values in Tab. III. The impact of the modeling strategies is analyzed following these two steps: (i) the optimal battery size - for the 23 laps of the 2021 Rome ePrix (see [3] for a pictorial representation) *www.murata.com/en-eu/products/batteries/cylindrical †www.imrbatteries.com/content/sony <u>us18650vtc6-2.pdf</u> _η_ ˜( _Ib_ ( _s_ )) = <sup>_<u>η−</u>_</sup> <sup>1</sup> 2 <sup><u>+</u></sup> <sup>_<u>η</u>_</sup> (33) <sup>1</sup> 2 <sup>_<u>−η</u>_</sup> _·_ tanh ( _−βηIb_ ( _s_ )) _._ <sup>1</sup> 2 <sup><u>+</u></sup> <sup>_<u>η</u>_</sup> + <sup>_<u>η−</u>_</sup> <sup>1</sup> 2 <sup>_<u>−η</u>_</sup> where _βη_ represents a design smoothing variable. In conclusion, in the non-convex scenario, the sets _P_ and _C_, as shown in Tab. I, are defined respectively by the constraint on the negative sign of the brake torque (34), and by (32) and (33) for the efficiency of the transmission, along with the definition of the total torque at the wheel as the sum of motor and brakes (34). _Tw_ ( _s_ ) = _Tm_ ( _s_ ) + _T_ br( _s_ ) and _T_ br( _s_ ) _≤_ 0 (34) TABLE I SUMMARY OF THE MINIMUM RACE TIME PROBLEM IN (5). ALL THE MODELS DESCRIBED FOR VEHICLE DYNAMICS, BATTERY, AND POWERTRAIN-BRAKES ARE REPORTED, SPLITTING NON-CONVEX AND CONVEX FORMULATIONS, WHETHER POSSIBLE. NON-CONVEX FORMULATION CONVEX FORMULATION VEHICLE MODEL _uv_ [ _v_ ( _s_ ) _,_ _Tw_ ( _s_ )] <u>�</u> <u>dd</u> _<u>st</u>_ <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_v_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_, E_</sup> <sup>kin(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_Tw_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <u>�</u> <u>kind</u> _s_ <u>(</u> _<u>s</u>_ <u>)</u> = <sup>_<u>T</u>_</sup> _R_ <sup>_<u>w</u>_</sup> _w_ <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <u>d</u> _<u>E</u>_ <u>kin(</u> _<u>s</u>_ <u>)</u> _R_ <sup>_<u>w</u>_</sup> _w_ <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _−_ _M_ <u>2</u> <sup>(</sup> <sup>_C_</sup> <sup>drag +</sup> <sup>_C_</sup> <sup>roll</sup> <sup>_C_</sup> <sup>down)</sup> <sup>_E_</sup> <sup>kin(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_Mg_</sup> <sup>(sin(</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)) +</sup> <sup>_C_</sup> <sup>roll cos(</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)))</sup> 21 <sup>_Mv_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)2</sup> <sup>_≤_</sup> <sup>_E_</sup> <sup>kin(</sup> <sup>_s_</sup> <sup>)</sup> 2 _≤_ ������������ _v_ ( _s_ ) _−_ d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> ������������2 ������������ ������������ ������������ 2 <u>d</u> _<u>v</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>v</u>_ d( _ss_ <u>)</u> = _M_ <u>1</u> - _<u>Tw</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _Rw_ _w_ <u>(</u> _<u>s</u>_ <u>)</u> _−_ ( _C_ drag + _C_ roll _C_ down) _v_ ( _s_ ) <sup>2</sup> _−_ _Mg_ (sin( _θ_ ( _s_ )) + _C_ roll cos( _θ_ ( _s_ ))) _µy_ - _Mg_ cos( _θ_ ( _s_ )) + _C_ down _v_ ( _s_ ) <sup>2�2</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> �2 _≤_ _≤_ _v_ ( _s_ ) + d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> _v_ ( _s_ ) _−_ d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> _V_ <u>d</u> _<u>v</u>_ d( _ss_ <u>)</u> = _M_ <u>1</u> - _<u>TRw</u>_ _w_ <u>(</u> _<u>s</u>_ <u>)</u> _−_ ( _C_ drag + _C_ roll _C_ down) _v_ ( _s_ ) <sup>2</sup> _−_ _Mg_ (sin( _θ_ ( _s_ )) + _C_ roll cos( _θ_ ( _s_ )))� _·_ _v_ (1 _s_ ) - _µTxwR_ <u>(</u> _<u>sw</u>_ <u>)</u> �2 + - _<u>MρR</u>_ <u>(</u> _µsy_ <u>)</u> _<u>v</u>_ <u>(</u> _<u>s</u>_ <u>)</u> <sup>2</sup> �2 _≤_ - _Mg_ cos( _θ_ ( _s_ )) + _C_ down _v_ ( _s_ ) <sup>2�2</sup> �2 + - _<u>MρR</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>v</u>_ <u>(</u> _<u>s</u>_ <u>)</u> <sup>2</sup> ������ ������������2 d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> ������������ ������������2 _v_ (0) = _v_ 0 _<u>Tw</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _µxRw_ <u>2</u> _<u>ρR</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>E</u>_ <u>kin(</u> _<u>s</u>_ <u>)</u> _µy_ _≤_ - _Mg_ cos( _θ_ ( _s_ )) + _M_ <u>2</u> <sup>_C_</sup> <sup>down</sup> <sup>_E_</sup> <sup>kin(</sup> <sup>_s_</sup> <sup>)</sup> �2 _E_ kin(0) = <sup><u>1</u></sup> <u>2</u> <sup>_Mv_</sup> <u>0</u> <sup>2</sup> BATTERY MODEL Vn–R _ub_ [ _ζ_ ( _s_ ) _,_ _Ib_ ( _s_ )] [ _Eb_ ( _s_ ) _,_ _F_ oc( _s_ ) _, Fb_ ( _s_ )] <u>d</u> _<u>Eb</u>_ <u>(</u> _<u>s</u>_ <u>)</u> 2 _~~√~~_ _VRn_ <u>0</u> <u>d</u> _<u>ζ</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>ζ</u>_ d( _ss_ <u>)</u> = _−_ _v_ (1 _s_ ) <sup>_·_</sup> <sup>_<u>Ib</u>_</sup> _Q_ <sup><u>(</u></sup> _b_ <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <u>d</u> _<u>E</u>_ d _<u>bs</u>_ <u>(</u> _<u>s</u>_ <u>)</u> =2 _−_ _~~√~~_ _VFRn_ <u>0oc</u> <sup>_F_</sup> ( <sup>oc</sup> _s_ ) ������������ _F_ oc( _s_ ) _−_ _Fb_ ( _s_ ) ������������ _Vn_ <sup>_F_</sup> <sup>oc(</sup> <sup>_s_</sup> <sup>)</sup> d _s_ _Qb_ 0 _≤_ _ζ_ ( _s_ ) _≤_ 1 _F_ oc( _s_ ) _−_ _Fb_ ( _s_ ) _−_ d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> ������ ������������2 _≤_ _F_ oc( _s_ ) _−_ _Fb_ ( _s_ ) + d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> _≤_ _F_ oc( _s_ ) _−_ _Fb_ ( _s_ ) + d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> _B_ _Npi_ min _≤_ _Ib_ ( _s_ ) _≤_ _Npi_ max _Nsv_ min _≤_ _Vn −_ _R_ 0 _Ib_ ( _s_ ) _≤_ _Nsv_ max _Pb,_ min _≤_ ( _Vn −_ _R_ 0 _Ib_ ( _s_ )) _· Ib_ ( _s_ ) _≤_ _Pb,_ max _Npi_ min d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> _Nsv_ min d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> _Pb,_ min d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_<u>F</u>_</sup> <sup><u>oc</u></sup> _Vn_ <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_Fb_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_Pb,_</sup> <sup>max d</sup> d _s_ <sup>_<u>t</u>_</sup> <sup><u>oc</u></sup> _Vn_ <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _≤_ _Npi_ max d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup><u>d</u></sup> d _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_R_</sup> <sup>0</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_Vn_</sup> <sup><u>d</u></sup> d _s_ <sup>_<u>t</u>_</sup> _<u>F</u>_ <u>oc(</u> _<u>s</u>_ <u>)</u> _Vn_ <sup><u>d</u></sup> d _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <u>oc</u> _Vn_ <u>(</u> _<u>s</u>_ <u>)</u> _≤_ _Nsv_ max d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> d <sup><u>d</u></sup> _s_ <sup>_<u>t</u>_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> _ub_ [ _ζ_ ( _s_ ) _,_ _Ib_ ( _s_ )] <u>d</u> _<u>ζ</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>ζ</u>_ d( _ss_ <u>)</u> = _−_ _v_ (1 _s_ ) <sup>_·_</sup> <sup>_<u>Ib</u>_</sup> _Q_ <sup><u>(</u></sup> _b_ <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> d _s_ _Qb_ 0 _≤_ _ζ_ ( _s_ ) _≤_ 1 _B_ _Npi_ min _≤_ _Ib_ ( _s_ ) _≤_ _Npi_ max _Nsv_ min _≤_ _V_ oc( _ζ_ ( _s_ )) _−_ _R_ 0 _Ib_ ( _s_ ) _≤_ _Nsv_ max _Pb,_ min _≤_ ( _V_ oc( _ζ_ ( _s_ )) _−_ _R_ 0 _Ib_ ( _s_ )) _· Ib_ ( _s_ ) _≤_ _Pb,_ max _ub_ [ _ζ_ ( _s_ ) _,_ _V_ 1( _s_ ) _,_ _Ib_ ( _s_ )] _<u>ζ</u>_ d( _ss_ <u>)</u> = _−_ _v_ (1 _s_ ) <sup>_·_</sup> <sup>_<u>Ib</u>_</sup> _Q_ <sup><u>(</u></sup> _b_ <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> <u>d</u> _<u>ζ</u>_ <u>(</u> _<u>s</u>_ <u>)</u> d _s_ _Qb_ <u>d</u> _<u>V</u>_ <u>1(</u> _<u>s</u>_ <u>)</u> <u>1</u> <u>1</u> _<u>V</u>_ d1 _s_ <u>(</u> _<u>s</u>_ <u>)</u> = _v_ (1 _s_ ) <sup>_·_</sup> _C_ <u>11</u> - _Ib_ ( _s_ ) _−_ <sup>_<u>V</u>_</sup> _R_ <sup><u>1(</u></sup> 1 <sup>_<u>s</u>_</sup> <sup><u>)</u></sup> _R_ 1 0 _≤_ _Eb_ ( _s_ ) _≤_ _Eb_ <sup>max</sup> VSoC–R VSoC–RC POWERTRAIN, BRAKES AND COUPLING CONSTRAINTS _<u>TRw</u>_ _w_ <u>(</u> _<u>s</u>_ <u>)</u> _−_ _ηFb_ ( _s_ ) _≤_ 0 _B_ 0 _≤_ _ζ_ ( _s_ ) _≤_ 1 _Npi_ min _≤_ _Ib_ ( _s_ ) _≤_ _Npi_ max _Nsv_ min _≤_ _V_ oc( _ζ_ ( _s_ )) _−_ _R_ 0 _Ib_ ( _s_ ) _−_ _V_ 1( _s_ ) _≤_ _Nsv_ max _Pb,_ min _≤_ ( _V_ oc( _ζ_ ( _s_ )) _−_ _R_ 0 _Ib_ ( _s_ ) _−_ _V_ 1( _s_ )) _· Ib_ ( _s_ ) _≤_ _Pb,_ max _up_ [ _Tm_ ( _s_ ) _,_ _T_ br( _s_ )] _P_ _T_ br _≤_ 0 _Tw_ ( _s_ ) = _Tm_ ( _s_ ) + _T_ br( _s_ ) _C_ _<u>η</u>_ <sup><u>1</u></sup> <sup>_Fb_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>0</sup> _Tm_ ( _s_ ) <sup>_<u>v</u>_</sup> _<u>R</u>_ <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <u>w</u> <sup><u>)</u></sup> <sup>_<u>v</u>_</sup> _<u>R</u>_ <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <u>w</u> <sup><u>)</u></sup> <sup>=</sup> <sup>_Vb_</sup> <sup>(</sup> <sup>_Ib_</sup> <sup>(</sup> <sup>_s_</sup> <sup>))</sup> <sup>_· Ib_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_·_</sup> <sup>˜</sup> <sup>_η_</sup> <sup>(</sup> <sup>_Ib_</sup> <sup>(</sup> <sup>_s_</sup> <sup>))</sup> _<u>Tw</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>Rw</u>_ _<u>w</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _−_ _<u>η</u>_ <sup><u>1</u></sup> COST FUNCTION <u>�</u> _<u>S</u>_ <u>0</u> <u>d</u> _<u>t</u>_ <u>d</u> _<u>s</u>_ <sup>(</sup> <sup>_s_</sup> <sup>)d</sup> <sup>_s_</sup> _t_ race <u>�</u> _<u>S</u>_ <u>0</u> <u>1</u> _<u>v</u>_ <u>(</u> _<u>s</u>_ <u>)</u> <sup>d</sup> <sup>_s_</sup> - is compared using the different battery models in the nonconvex formulation; (ii) the evolution of vehicle speed and battery variables is discussed for the optimal battery size, highlighting the potential differences induced by the different battery models; finally, the consequences of using the convex formulation are also discussed. We highlight that, in this specific scenario, the slope _θ_ ( _s_ ) is set equal to zero, because the considered track is flat. Both approaches have been discretized with d _s_ = 15 m using the fourth-order explicit Runge-Kutta method [34], which keeps the linearity – and so convexity – in the convex formulation, and increases the overall accuracy in presence of significant discretization lengths. The value of the discretization step, coherent with previous works in [6] and [3], is chosen as a compromise between accuracy and complexity, allowing to achieve both consistent sizing results and speed profiles, even when compared with finer space discretizations. The non-convex approach is parsed with CasADi [35] and solved by employing the interior-point algorithm (IPOPT) [36] combined with the MA57 linear solver [37]. The convex approach, instead, is parsed with YALMIP [38] and solved using MOSEK [39]. Regarding the computational load, we highlight that there are no strict requirements since the optimizations are performed offline. To a give a flavour, the non-convex case with the Vn–R battery model, which has a total of 30362 optimization variables and 75903 constraints, takes on average 43.5 s to return the optimal solution on a personal computer equipped with a 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz processor and a 16GB RAM. TABLE II VEHICLE PARAMETERS vehicle mass _Mv_ 426 kg wheel radius _Rw_ 34.54 cm drag coefficient _C_ drag 0.3927 Ns <sup>2</sup> /m <sup>2</sup> aerodynamic downforce coefficient _C_ down 0.9526 Ns <sup>2</sup> /m <sup>2</sup> rolling coefficient _C_ roll 0.015 friction coefficients _µx, µy_ 1.2 maximum voltage _V_ max 878 V powertrain efficiency _η_ 0.87 packaging factor _α_ 0.80 maximum traction battery power _Pb,_ max 350 kW maximum braking battery power _Pb,_ <u>min</u> -600 kW TABLE III BATTERY CELL PARAMETERS _from_ _datasheets_ <sup>*,†</sup> cell capacity _q_ cell 3 Ah cell mass _m_ cell 46.6 g nominal voltage _vn_ 3.6 V voltage range _v_ min _, v_ max 2, 4.2 V current range _i_ min _, i_ max -6, 30 A resistance _r_ 0 13 mΩ OCV see <sup>*</sup> _identified_ _in_ _[33]_ RC set 1 _r_ 1 _, c_ 1 2.28, 4047.82 mΩ,F RC set 2 _r_ 1 _, c_ 1 15.04, 995.59 mΩ,F RC set 3 _r_ 1 _, c_ 1 20.65, 1344.85 mΩ,F _A._ _The_ _Impact_ _of_ _Battery_ _Models_ The cost function to be minimized, i.e., the race time, in this case study is a sole function of the number of cells in parallel _Np_, which is chosen as the battery size design parameter: _us_ = _Np_ . Indeed, the battery cell technology is fixed to be the VTC6, while the number of cells in series _Ns_ is 209, so to impose the maximum battery voltage: _Nsv_ max = _V_ max. Therefore, to compute the solution, the race time is evaluated for _Np_ _∈{_ 10 _, ...,_ 30 _}_ with a grid approach. Results are shown in Fig. 1: it is visible that the computed race time increases along with the model complexity. This trend is motivated by the reduction of net battery capacity, due to both the nonlinear open-circuit voltage characteristics and the total resistance increase ( _R_ 0 + _R_ 1). We highlight that the set of RC couples is intentionally sorted with increasing _R_ 1 in Tab. III to enhance the readability of the figure. Concerning the optimal point, the first three models (Vn–R, VSoC–R, VSoC–RC1) share the same optimum _Np_ = 24, while the other two (VSoC–RC2, VSoC–RC3) have the optimal point in _Np_ = 25. Indeed, this is a natural consequence of a lower net capacity, which calls for a bigger battery size. However, looking at the negligible race time difference between the solutions with 24 and 25 cells in parallel for the more complex models, we can appreciate the limited error introduced by a simpler battery model. Fig. 1. Comparison of sizing results for all the discussed non-convex battery models, as a function of the number of parallels _Np_ . A zoom around the optimum highlights the similarity among the obtained results. In order to compare the evolution of different variables during the race, we consider now _Np_ = 24. Fig. 2 compares the behavior, in the lap-domain, of both SoC and operating regions of battery current and voltage for Vn–R, VSoC–R and VSoC–RC3; the latter being the model with RC values with the highest impact on the results (see again Fig. 1). All three solutions end the race with almost zero state of charge, leaving the battery without available energy, meaning that the battery is not oversized. We can also see that the Vn–R state of charge profile is more different with respect to VSoC–R and VSoC–RC3, which are closer to each other. This aspect is motivated by the real shape of the OCV in Tab. III that is neglected in Vn–R, using the constant nominal one. This has a consequent impact on the battery current and voltage operating regions. At the beginning of the race, the battery is fully charged, meaning that the open-circuit voltage is close to the maximum value allowed at the terminals (as visible from the picture in Tab. III), thus limiting the maximum negative current achievable during braking. On the contrary, when the SoC lowers, the open-circui voltage decreases as well, so that the battery current should increase during traction phases to match the maximum power constraint (23). Focusing on the fourteenth lap in Fig. 3, it is possible to compare in more detail the different modeling approaches, because, in this lap, the open-circuit voltages of the more complex models are close to the nominal one. First of all, we can appreciate the similarity among the optimized speed profiles, despite the differences in the voltage generated by the RC dynamics in VSoC–RC3, which are compensated by tiny current dissimilarities to match the power requirement. These comments naturally reflect on the achieved race times, as evident by the alike shapes in Fig. 1. The reason behind that is something specific for the racing scenario, where the battery Fig. 2. Comparison of SoC, current and voltage race profiles with _Np_ = 24, for the three battery models with increasing complexity. For clarity, only the operating region envelopes are depicted for battery currents and voltages. power request is characterized by quick changes from hard braking to full traction, which are much faster than the RC dynamics. Indeed, considering the RC set 3, the time constant _R_ 1 _C_ 1 is equal to 27 _._ 77 s, while the change between traction and braking occurs approximately every 3-4 seconds. Fig. 3. Comparison of vehicle speed, in the fourteenth lap of the race, with _Np_ = 24, for the three battery models with increasing complexity, a zoom of the current and voltage is given, to appreciate the difference between the models. Fig. 4. Comparison of sizing results, as a function of the number of parallels _Np_, between the convex and non-convex approaches for the simplest battery model (Vn–R). Fig. 5. Comparative analysis of the integration errors between the convex and non-convex formulation of the simplest battery model (Vn–R). Race time discrepancies and distributions of vehicle speed differences are depicted as function d _s_ . _B._ _The_ _Impact_ _of_ _Convex_ _Formulations_ The analysis now focuses on the convex formulation, comparing it with the non-convex one with a static battery model with nominal voltage (Vn–R), because as discussed in Section III, they are equal except for the relaxation of the constraints (13,17,29,35). Indeed, Fig. 4 shows that the two approaches have the same optimal solution, and the cost function only differs due to numerical errors in the integration, induced by solving two different formulations of the same problem, where different state equations are employed. The motivation of this statement is provided in Fig. 5, where the difference between the two approaches is analyzed with respect to the discretization step d _s_, for _Np_ = 24. In the figure, the gap between achieved race times and the distributions of vehicle speed differences along the race are reported. We can highlight the monotonic trend towards zero of both quantities when the discretization step decreases, providing thorough evidence that both solutions converge towards the same continuous time formulation of the problem. The aforementioned relaxations can have an important impact on the behavior of the time-lap varying variables. Indeed, if it is proven in [13], and previously discussed in Section III-A, that to minimize the race time the relaxed constraints (13,17) are satisfied with equality, this is not guaranteed for the other two constraints (29,35). Starting with the relaxation of the battery constraint, we can compute in post-processing the value of an equivalent internal resistance _R_ 0 <sup>_∗_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>that</sup> <sup>satisfies</sup> Fig. 6. Distributions of equivalent battery internal resistance along the race for three different battery sizes of the convex problem. the constraint (29) with equality: 0 <sup>_∗_</sup> <sup>(</sup> <sup>_s_</sup> <sup>) =</sup> <sup>_V_</sup> _n_ <sup>2</sup> <sup>_·_</sup> <sup>(</sup> <sup>_F_</sup> <sup>oc(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_Fb_</sup> <sup>(</sup> <sup>_s_</sup> <sup>))</sup> <sup>_·_</sup> <sup><u>d</u></sup> <sup>_<u>t</u>_</sup> d _s_ Fig. 7. Comparison of the equivalent powertrain efficiency in the batterywheel power plane for three different battery sizes of the convex problem. _C._ _Final_ _Discussion_ _and_ _Sizing_ _Guidelines_ From the case study, we can retrieve important information about the minimum race time optimization and the optimal battery sizing for an electric racing car: if, on the one hand, more complex models are fundamental to compute the real evolution of the control variables, on the other hand, simpler ones are sufficient for sizing purposes. As a matter of fact, we have shown how the problem can be simplified up to a convex formulation without experiencing significant errors in the sizing results, as demonstrated by the negligible differences among the different battery models. As a consequence, we can state that the model with constant OCV attains consistent results and can be used as a reference for this purpose, even though the obtained profiles of electrical variables might be not physical. Moreover, since we have shown in Section IV-B that only small race time differences, due to integration errors, are present between its convex and non-convex formulations, we can stick with the former one, exploiting its global optimality properties. Summarizing the results of this case study, they suggest a guideline on how to approach the battery sizing problems in racing vehicles: (i) optimal sizing can be formulated with the simplest model; in this way, cell information can be retrieved from easy-access datasheets, which typically report the cell weight, the value of the internal resistance, the nominal voltage and the cell operating limits; (ii) more complex models can be experimentally identified, once a cell technology has been chosen and the battery pack sized; (iii) these models can be employed in a minimum race time problem in order to understand more trustworthy evolutions of the variables during the race, with the purpose of designing real-time control strategies. V. CONCLUSIONS In this work, we reviewed the minimum lap-race time literature approaches for racing electric vehicles, with a focus on their application to sizing. Through the definition of a general mathematical framework, we analyzed the impact of different modeling choices on the resulting optimization problem, with an eye on convexity. In particular, we focused on different battery models, ranging from static electro-equivalent models with nominal voltage, to dynamical equivalent circuits with a SoC-dependent open-circuit voltage. Their impact on _R_ 0 <sup>_∗_</sup> <u>1</u> <sup><u>d</u></sup> <sup>_<u>t</u>_</sup> (37) d _s_ <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_·_</sup> _F_ oc <sup>2</sup> ( _s_ ) <sup>_._</sup> The distribution of the values of _R_ 0 <sup>_∗_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>is</sup> <sup>shown</sup> <sup>in</sup> <sup>Fig.</sup> <sup>6</sup> for three battery packs with a different number of cells in parallel. It is visible that: if the battery is oversized ( _Np_ = 30), the average value of _R_ 0 <sup>_∗_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>is</sup> <sup>higher</sup> <sup>than</sup> <sup>_R_</sup> <sup>0,</sup> <sup>because</sup> <sup>some</sup> energy can be freely dissipated without affecting the race time; on the contrary, when the battery is undersized ( _Np_ = 11), _R_ 0 <sup>_∗_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>=</sup> <sup>_R_</sup> <sup>0</sup> <sup>because</sup> <sup>all</sup> <sup>the</sup> <sup>energy</sup> <sup>is</sup> <sup>necessary</sup> <sup>to</sup> <sup>minimize</sup> the race time to finish the race. Finally, we can notice that when _Np_ = 24, the equivalent resistance is closer to the real one _R_ 0, because the battery is optimally sized to cover the race on the considered circuit. Similar considerations can be made for the relaxation of the powertrain constraint (35). Fig. 7 shows the equivalent efficiency of the powertrain in the battery-wheel power plane, where the fixed efficiency and the forbidden region are highlighted. During traction phases (positive battery power), the optimal solution sticks to the desired fixed efficiency when the battery is either optimally sized or downsized, while it can introduce undesired dissipation when the battery is oversized, for the same reasons as before. In braking phases (negative battery power), the optimal solution is correctly not on the fixed efficiency curve, since the difference is dissipated through the mechanical brakes, as already discussed in Section III. These last discussions allow us to better highlight the possible drawbacks of the convex formulations for the minimum race time problem. First of all, a convex formulation is possible only for the simplest battery model, with constant OCV, thus limiting the accuracy and the capability to describe the different stages of the race. Moreover, the need of constraint relaxation to achieve convexity might lead to non-physical behaviors in the optimal profiles of energy-related variables, which turn out to be less informative for further analyses and developments. We remark here that, with the specific powertrain layout considered in this work, it is still possible to recompute the electrical variables, like battery power and current, in post-process, moving backwards from the wheel power through the non-relaxed models. As a final comment, such post-processing might not always be applied. For instance, with the hybrid battery pack layout in [3], an explicit model to split the total battery power between the two sources would not be available. the battery sizing problem has been evaluated through a case study. In this way, it was possible to show that, when the minimum race time paradigm is employed for sizing purposes, simple convex models are more than enough. On the contrary, it is also shown how more complex battery models, requiring non-convex formulations, are more suitable to understand and analyze the time evolution of battery and vehicle variables for control purposes. Future works will focus on extending the analysis towards the other main components of the electric powertrain: electric motors, transmissions and power electronics. REFERENCES [1] J. A. Sanguesa, V. Torres-Sanz, P. Garrido, F. J. Martinez, and J. M. Marquez-Barja, “A review on electric vehicles: Technologies and challenges,” _Smart_ _Cities_, vol. 4, no. 1, pp. 372–404, 2021. [2] X. Zeng, M. Li, D. Abd El-Hady, W. Alshitari, A. S. Al-Bogami, J. Lu, and K. Amine, “Commercialization of lithium battery technologies for electric vehicles,” _Advanced_ _Energy_ _Materials_, vol. 9, no. 27, p. 1900161, 2019. [3] S. Radrizzani, G. Riva, G. Panzani, M. Corno, and S. M. Savaresi, “Optimal sizing and analysis of hybrid battery packs for electric racing cars,” _IEEE_ _Transactions_ _on_ _Transportation_ _Electrification_, 2023. [4] O. Borsboom, C. A. Fahdzyana, T. Hofman, and M. Salazar, “A convex optimization framework for minimum lap time design and control of electric race cars,” _IEEE Transactions on Vehicular Technology_, vol. 70, no. 9, pp. 8478–8489, 2021. [5] H. Yu, F. Cheli, and F. Castelli-Dezza, “Optimal Design and Control of 4-IWD Electric Vehicles Based on a 14-DOF Vehicle Model,” _IEEE_ _Transactions_ _on_ _Vehicular_ _Technology_, vol. 67, no. 11, pp. 10 457– 10 469, 2018. [6] G. Riva, S. Radrizzani, G. Panzani, M. Corno, and S. M. Savaresi, “An optimal battery sizing co-design approach for electric racing cars,” _IEEE_ _Control_ _Systems_ _Letters_, vol. 6, pp. 3074–3079, 2022. [7] G. Perantoni and D. J. Limebeer, “Optimal control for a formula one car with variable parameters,” _Vehicle_ _System_ _Dynamics_, vol. 52, no. 5, pp. 653–678, 2014. [8] M. Massaro and D. Limebeer, “Minimum-lap-time optimisation and simulation,” _Vehicle_ _System_ _Dynamics_, vol. 59, no. 7, pp. 1069–1113, 2021. [9] R. S. Rice, “Measuring car-driver interaction with the gg diagram,” SAE Technical Paper, Tech. Rep., 1973. [10] P. de Buck and J. R. A. Martins, “Minimum lap time trajectory optimisation of performance vehicles with four-wheel drive and active aerodynamic control,” _Vehicle_ _System_ _Dynamics_, pp. 1–17, 2022. [11] D. J. Limebeer and G. Perantoni, “Optimal control of a formula one car on a three-dimensional track—part 2: Optimal control,” _Journal_ _of_ _Dynamic Systems, Measurement, and Control_, vol. 137, no. 5, p. 051019, 2015. [12] N. Dal Bianco, R. Lot, and M. Gadola, “Minimum time optimal control simulation of a gp2 race car,” _Proceedings_ _of_ _the_ _Institution_ _of_ _Mechanical_ _Engineers,_ _Part_ _D:_ _Journal_ _of_ _Automobile_ _Engineering_, vol. 232, no. 9, pp. 1180–1195, 2018. [13] S. Ebbesen, M. Salazar, P. Elbert, C. Bussi, and C. H. Onder, “Time optimal Control Strategies for a Hybrid Electric Race Car,” _IEEE_ _Transactions_ _on_ _Control_ _Systems_ _Technology_, vol. 26, no. 1, pp. 233– 247, 2018. [14] M. Salazar, C. Balerna, E. Chisari, C. Bussi, and C. H. Onder, “Equiv alent lap time minimization strategies for a hybrid electric race car,” in _2018_ _IEEE_ _Conference_ _on_ _Decision_ _and_ _Control_ _(CDC)_ . IEEE, 2018, pp. 6125–6131. [15] M. Salazar, P. Duhr, C. Balerna, L. Arzilli, and C. H. Onder, “Minimum Lap Time Control of Hybrid Electric Race Cars in Qualifying Scenarios,” _IEEE_ _Transactions_ _on_ _Vehicular_ _Technology_, vol. 68, no. 8, pp. 7296–7308, 2019. [16] P. Duhr, G. Christodoulou, C. Balerna, M. Salazar, A. Cerofolini, and C. H. Onder, “Time-optimal gearshift and energy management strategies for a hybrid electric race car,” _Applied Energy_, vol. 282, p. 115980, 2021. [17] A. Locatello, M. Konda, O. Borsboom, T. Hofman, and M. Salazar, “Time-optimal control of electric race cars under thermal constraints,” in _2021_ _European_ _Control_ _Conference_ _(ECC)_ . IEEE, 2021, pp. 905– 912. [18] P. Duhr, A. Sandeep, A. Cerofolini, and C. H. Onder, “Convex per formance envelope for minimum lap time energy management of race cars,” _IEEE_ _Transactions_ _on_ _Vehicular_ _Technology_, vol. 71, no. 8, pp. 8280–8295, 2022. [19] P. Duhr, D. Buccheri, C. Balerna, A. Cerofolini, and C. H. Onder, “Minimum-race-time energy allocation strategies for the hybrid-electric formula 1 power unit,” _IEEE_ _Transactions_ _on_ _Vehicular_ _Technology_, 2023. [20] S. Broere, J. van Kampen, and M. Salazar, “Minimum-lap-time control strategies for all-wheel drive electric race cars via convex optimization,” in _2022_ _European_ _Control_ _Conference_ _(ECC)_, 2022, pp. 1204–1211. [21] N. Murgovski, L. Johannesson, X. Hu, B. Egardt, and J. Sj¨oberg, “Convex relaxations in the optimal control of electrified vehicles,” in _2015_ _American_ _control_ _conference_ _(ACC)_, 2015, pp. 2292–2298. [22] T. Herrmann, F. Passigato, J. Betz, and M. Lienkamp, “Minimum race time planning-strategy for an autonomous electric racecar,” in _2020 IEEE_ _23rd_ _International_ _Conference_ _on_ _Intelligent_ _Transportation_ _Systems_ _(ITSC)_ . IEEE, 2020, pp. 1–6. [23] J. van Kampen, T. Herrmann, and M. Salazar, “Maximum-distance race strategies for a fully electric endurance race car,” _European_ _Journal_ _of_ _Control_, p. 100679, 2022. [24] E. Silvas, T. Hofman, N. Murgovski, L. F. P. Etman, and M. Steinbuch, “Review of optimization strategies for system-level design in hybrid electric vehicles,” _IEEE_ _Transactions_ _on_ _Vehicular_ _Technology_, vol. 66, no. 1, pp. 57–70, 2017. [25] X. Hu, S. J. Moura, N. Murgovski, B. Egardt, and D. Cao, “Integrated optimization of battery sizing, charging, and power management in plug-in hybrid electric vehicles,” _IEEE Transactions on Control Systems_ _Technology_, vol. 24, no. 3, pp. 1036–1043, 2016. [26] O. Sundstrom, L. Guzzella, and P. Soltic, “Torque-assist hybrid electric powertrain sizing: From optimal control towards a sizing law,” _IEEE_ _Transactions_ _on_ _Control_ _Systems_ _Technology_, vol. 18, no. 4, pp. 837– 849, 2010. [27] H. K. Fathy, J. A. Reyer, P. Y. Papalambros, and A. Ulsov, “On the coupling between the plant and controller optimization problems,” in _Proceedings_ _of_ _the_ _2001_ _American_ _Control_ _Conference_, vol. 3, 2001, pp. 1864–1869. [28] R. Verschueren, M. Zanon, R. Quirynen, and M. Diehl, “Time-optimal race car driving using an online exact hessian based nonlinear mpc algorithm,” in _2016_ _European_ _Control_ _Conference_ _(ECC)_, 2016, pp. 141–147. [29] D. Bertsekas, _Convex optimization algorithms_ . Athena Scientific, 2015. [30] D. M. Rosewater, D. A. Copp, T. A. Nguyen, R. H. Byrne, and S. Santoso, “Battery energy storage models for optimal control,” _IEEE_ _Access_, vol. 7, pp. 178 357–178 391, 2019. [31] F. Verbruggen, M. Salazar, M. Pavone, and T. Hofman, “Joint design and control of electric vehicle propulsion systems,” in _2020_ _European_ _Control_ _Conference_ _(ECC)_, 2020, pp. 1725–1731. [32] T. Herrmann, F. Sauerbeck, M. Bayerlein, J. Betz, and M. Lienkamp, “Optimization-based real-time-capable energy strategy for autonomous electric race cars,” _SAE_ _International_ _Journal_ _of_ _Connected_ _and_ _Auto-_ _mated_ _Vehicles_, vol. 5, no. 12-05-01-0005, pp. 45–59, 2022. [33] J. Estaller, A. Kersten, M. Kuder, T. Thiringer, R. Eckerle, and T. Weyh, “Overview of battery impedance modeling including detailed state-ofthe-art cylindrical 18650 lithium-ion battery cell comparisons,” _Energies_, vol. 15, no. 10, 2022. [34] J. C. Butcher, _The numerical analysis of ordinary differential equations:_ _Runge-Kutta_ _and_ _general_ _linear_ _methods_ . Wiley-Interscience, 1987. [35] J. A. E. Andersson, J. Gillis, G. Horn, J. B. Rawlings, and M. Diehl, “CasADi: a software framework for nonlinear optimization and optimal control,” _Mathematical_ _Programming_ _Computation_, vol. 11, pp. 1–36, 2019. [36] R. H. Byrd, M. E. Hribar, and J. Nocedal, “An interior point algorithm for large-scale nonlinear programming,” _SIAM Journal on Optimization_, vol. 9, no. 4, pp. 877–900, 1999. [37] I. S. Duff, “MA57—a Code for the Solution of Sparse Symmetric Definite and Indefinite Systems,” _ACM_ _Transactions_ _on_ _Mathematical_ _Software_, vol. 30, no. 2, p. 118–144, jun 2004. [38] J. Lofberg, “YALMIP : a toolbox for modeling and optimization in MATLAB,” in _2004_ _IEEE_ _International_ _Conference_ _on_ _Robotics_ _and_ _Automation_ _(ICRA),_ _International_ _Symposium_ _on_ _Computer_ _Aided_ _Con-_ _trol_ _System_ _Design_ _(CACSD)_, 2004, pp. 284–289. [39] E. D. Andersen and K. D. Andersen, “The mosek interior point opti mizer for linear programming: an implementation of the homogeneous algorithm,” in _High_ _performance_ _optimization_ . Springer, 2000, pp. 197–232.

섹션 본문 95문단 · 48,244자

(제목 없음)

1Battery model impact on time-optimal co-design for electric racing cars: review and application," in IEEE Transactions on Transportation Electrification,

I. INTRODUCTION

2In the last decade, the interest in vehicles equipped with electric powertrains has considerably increased in light of the transition towards sustainable mobility.In this context, many technological challenges have emerged [1], and batteries represent one of the most impelling obstacles towards the fullscale adoption of Electric Vehicles (EV).Indeed, the current technologies available on the market suffer from multiple weaknesses, such as high costs, lower energy and power densities than fuel, and safety concerns [2].

3As often happens in the automotive field, the most challenging technological progresses are driven by racing competitions, and vehicle electrification does not represent an exception.This fact is demonstrated by the hybridization pursued by Formula 1 (F1) and Le Mans Hypercars, and, most importantly, by the fully electric Formula E racing class, which has just revealed the plan for the new Generation 4, which will start racing in 2026.In racing competitions, performance is merely evaluated by the lap time, and in the specific case of electric vehicles, batteries represent the main bottleneck for performance.Indeed, manufacturers have to cope with the trade-off between the high energy and high power density of current state-of-the-art technologies, as a fragile balance among disposable energy, power, and weight.The pivotal role of batteries is also motivated by the continuous development of new technologies for automotive (see [3] for a complete overview), which represents a significant opportunity in the direction of performance enhancement in the future.Compared to urban vehicles, where the sizing of batteries and other powertrain components is chosen to maximize mileage and durability while satisfying economical constraints, in the racing context the focus is shifted towards the maximization of the vehicle performance given the requirements of the specific competition, e.g., mileage, weight, and power limitations.Thus, in the described scenario, the ability to evaluate the performance and to select the size of powertrain and battery pack components, for a given application, represents a key tool for racing vehicle manufacturers.

4Literature Review.As a consequence, in the scientific literature many works have emerged tackling the problem of performance optimization for electric racing vehicles, where the role of the different components is taken into account, as in [4], [5], with an eye on batteries in [3], [6].These works rely on the definition of an Optimal Control Problem (OCP), where each vehicle component is suitably modeled, and the time to cover a single lap or a full race is minimized, as a proxy for the vehicle performance.Minimum Lap Time (MLT) problems are widely studied in the scientific community of vehicle dynamics, as a tool to analyze and understand how to improve vehicle performance [7], [8], from the coupling of Quasi Steady State (QSS) methods and g-g plots [9], up to modern OCP solutions [10], starting from the 1990s.The family of OCP consists of a nonlinear optimization problem, setup to minimize the lap time and constrained by the vehicle dynamics.In this context, employed models span a variety of approaches: the vehicle can be modeled through either a simple point mass or a more complex multi-degrees-of-freedom (DOF) model, e.g., in [11], [12], while the trajectory can either be dictated or left free as an additional design variable.In the world of hybrid and electric vehicles, the standard vehicle model is the single DOF point mass driving on a fixed trajectory (see [4], [13]- [19]), especially when the focus is on the design of either the energy storage system or the powertrain, since it is able to grab the most relevant energy-related phenomena.As exceptions, [20] and [5] propose MLT solutions employing respectively a double track model with load transfer, and a fourteen DOF model including suspensions.The literature of OCP for hybrid electric vehicles is polarized towards the convex formulation based on [21], from the first work in [13] on a hybrid F1 car, followed by [14] and [15].Inside this convex framework, [4] represents the first example of MLT for fully electric arXiv:2312.17003v2[eess.SY] 7 Jun 2024 racing vehicles, where special effort is given to model and analyze the impact of both electric motor and transmission layouts.In all mentioned works, given the lap time objective, the battery is always modeled through a highly simplified equivalent circuit with constant voltage.In the light of sizing and management of the energy storage system, together with the temperature management of powertrain elements, a natural extension of MLT problems is represented by Minimum Race Time (MRT) ones, where mileage represents a key aspect in the optimization.In this scenario, [22] proposes a trajectory optimization OCP to devise a two laps race strategy for an autonomous electric vehicle, accounting for the temperature of the electric motor; while, in the flavor of convex formulations, [23] enlarges the MLT problem to a race as a sequence of stints for an endurance car, to outcome the optimal race strategy.In this context, the optimal sizing of batteries for electric racing vehicles has been addressed only by [6] and by its hybrid architecture extension in [3], which have first introduced a more complex battery model, where the voltage depends on the state-of-charge of the battery, to retrieve more reliable battery outcomes.These two works tackle the race problem in the same way as MLT ones, enlarging the optimization to the whole race length.It is worth mentioning that, different approaches to the race problem are proposed in [23] and [19], where a model of the lap time is learned from a large multitude of MLT-OCP solutions (e.g., through Artificial Neural Networks as in [19]), and the whole race is optimized through a simpler higher level problem, merging multiple laps.

5Aim and Scope.Considering the described state-of-the-art, the objective of our research is the study of the impact that different models can have on the structure of the resulting OCP, and on the obtained optimal size of a battery pack.In particular, we aim at highlighting the role of battery models, whose variety of choices entails the need for a precise guideline to catch different design objectives.In this way, we can address the problem of understating the amount of battery information that is needed a-priori when designing the battery pack for a racing application.Moreover, as a byproduct, we aim to tidy up the multiplicity of literature approaches for each component of a racing EV, inside a unified mathematical framework.

6Main Contributions.The novel contributions of our work can be decomposed into two main branches.(i) We outcome a comprehensive literature review of minimum lap-race time problems for electric racing vehicles, with a focus on the different models employed for each subsystem: vehicle dynamics, powertrain and brakes, and batteries.Moreover, we show that the manifold of approaches available in the literature can be framed in a unified mathematical description of the problem, whose structural breakdown allows a straightforward analysis of its properties as a function of the modeling choices.Finally, to enhance the overall readability, all the derived model formulations are summarized in Tab.I, where the entire OCP is reconstructed, both in convex and non-convex forms.(ii) Regarding the impact of battery models, we leverage the previous works in [6] and [3] as a starting point, moving the focus from the selection of the best chemistry towards the choice of the most suitable battery model as a function of the designer objective.In this respect, we derive a practical guideline to select the complexity of the battery model, tailored to the desired objective, via a meaningful case study: the Formula E Generation 3 (Gen 3) in the 2021 Rome ePrix circuit, i.e, the current most challenging racing scenario for fully electric vehicles.The results suggest that the simplest possible battery model, whose parameters can be retrieved from easy-access datasheets, is sufficient to attain consistent sizing results, while the need for realistic behaviors of the optimized variables, for control purposes, can be obtained only via the more complex models, whose characterization might ask for further identification processes.In addition, we provide a detailed comparison between convex and non-convex formulations, showing their consistency in terms of race time and sizing results, but also their differences in the optimal profiles introduced by the needed relaxations in the convex solutions.

7Outline.In Section II, the joint minimum race time and battery sizing problem is formally defined, highlighting the structural breakdown of the constraints and deriving its bi-level formulation.In Section III, the different modeling approaches of each vehicle subsystem are analyzed in detail, discussing the impact of the different choices on the convexity property of the optimization problem.Finally, the case study is tackled in Section IV, where the impact of the derived battery models is discussed both in terms of sizing results and of the obtained profiles reliability, providing a useful guideline for the problem.The paper is ended in Section V with concluding remarks.

II. THE JOINT MINIMUM RACE TIME AND BATTERY SIZING PROBLEM

8As already discussed in [6], the joint optimization of race time and battery size can be cast as a single Co-design Optimization Problem (Co-OP), relating the sizing parameters of the battery pack to their impact on the achievable race performance on a given circuit.In the literature, this codesign framework represents a common approach to tackle sizing problems of hybrid electric vehicles, both in racing, as in this work, and in non-racing applications.In the latter scenario, the final objective is typically different from time minimization (see [24]- [26]), and mainly focused on standard hybrid powertrains.In this work, we build up the formulation provided in [6] for the racing context, highlighting how different modeling choices, with special attention to batteries, impact the properties and the outcomes of the resulting Co-OP.Towards this aim, we structurally divide the set of optimization variables U of the Co-OP as U = [u s , u v , u p , u b ], where u s represents the set of sizing battery parameters for a fixed cell technology, and u v , u p , u b collect, respectively, all state and control variables related to the vehicle dynamics, the powertrain and braking system, and the battery.From this description, the Co-OP can be mathematically formulated as:

9where, the objective t race defined in (1a) represents the overall race time to be minimized, while the feasible set, defined by the intersection of constraints (1b)-(1f), can be easily interpreted, thanks to the partition of U as follows.

10(i) Set S defines the admissible values for the tunable battery size parameters, which are typically expressed through box constraints.(ii) Sets V , P, B model the evolution of the state variables and the possible physical limitations respectively of vehicle dynamics, powertrain and battery subsystems.Such three constraint sets are independent of the other subsystems' variables, while they can be affected by the sizing ones u s , as shown in Section III.As an example, B constrains the evolution of the state-of-charge of the battery based on both the battery current and the size of the battery itself.(iii) Set C models the coupling among the subsystems, and possibly the sizing variables.As already discussed in [6] and [27], Problem (1) can be reformulated, safeguarding the global optimum, as a bilevel optimization problem composed of two nested layers: the sizing variables u s are optimized in the outer layer, where the cost function is evaluated through the inner one, which solves the minimum race time problem, given a fixed value for the sizing variables ūs ∈ S .The described bi-level optimization problem can be formulated as:

11Before moving on, we introduce here a fundamental modeling tool, common to all subsystems of the problem.As explained before, the main objective of the sizing problem in (1) for a racing vehicle is the minimization of the race time, which can be expressed as:

12where t is the time, S is the race length.To formulate an Optimal Control Problem (OCP), we exploit a state-space reformulation where the covered space along the race-line s becomes the independent variable [13], [28] and the link between space and time is given by the vehicle speed v:

13As extensively used in the following section, (4) represents the building block to transform all dynamic equations in each subsystem of Problem (2) from time to space domain.To highlight the strong dependence of all state equations from the vehicle speed v, Problem (2) can be rewritten as:

14where v is omitted in the first constraint because, as it will be explained in the next section, it always belongs to vector u v .Thus, we remark that the vehicle speed profile is an optimization variable, and is not imposed a-priori.The formulation of Problem ( 5) provides a plain description of the optimization problem, where each subsystem -vehicle, powertrain and battery -is modeled through an independent set of constraints plus the coupling terms, possibly shaped by the fixed sizing variables.

15In the following sections, a comprehensive overview of the modeling approaches employed in the literature for each subsystem is presented, highlighting their impact on the structure of the optimization problem, and on the significance of both sizing results and optimal profiles via a suitable case study.

III. MINIMUM RACE TIME MODELING

16As anticipated, the focus of this work is the analysis of the properties of the inner layer problem -i.e., the minimum race time one -looking at the impact on the sizing results of the outer one.So, we remark that we do not deepen the properties of the outer layer, mainly for two reasons: (i) it represents a different topic that requires a dedicated analysis, and (ii) in most cases, like in the example of Section IV, it can be easily solved either through greedy brute-force approaches, like gridding, or via more efficient gradient-free solutions, as in [3], [6], with Bayesian Optimization, due the limited size and discrete nature of the problem.

17Given this premise, in this section, the different modeling approaches employed in the literature for each subsystem of the inner layer of Problem ( 5) are considered, analyzing their impact on the problem structure.A specific focus is given to the convexity property, which plays a fundamental role in optimization [29].Indeed, convex formulations of optimization problems can be very convenient for two main reasons [29]: (i) any local minimum is also a global one, and (ii) the availability of reliable and efficient off-the-shelf solvers.Thus, convexity represents a nice to have property also for the class of problems tackled in this work, in order to guarantee global optimality and ease of solution despite the possible huge dimension of the problem itself, as discussed by many works, like [4], [13].On the other hand, many physical laws employed in these problems are modeled by non-convex relationships, requiring possible significant approximations to keep them convex.This clean trade-off between convex and non-convex approaches is investigated in detail in this section from a modeling prospective, while the effect on results is addressed in Section IV.We refer to Tab.I for a summary of all the possible models described in the following of the section.

A. Vehicle Dynamics Model

18In the minimum lap/race time framework, especially when the main goal is the sizing of the energy storage system, the point-mass model is typically employed [4], [13]- [19], to face the trade-off between model accuracy and complexity.The reason is two-fold: (i) the race-line is considered fixed and lap invariant, and (ii) the point-mass model is sufficient to capture all the energy related phenomena, which are the key elements for the battery sizing problem, as validated from an energy-related perspective in [6] or [18] against a commercial simulator.The point mass model describes the dynamics of a vehicle only by means of the evolution of the longitudinal speed, which is computed by the following force balance:

19initialized as:

20where v is the vehicle speed tangential to the fixed race-line, which is described by the curvature ρ R (s) and slope θ(s).

21The force F drag = C drag v 2 represents the drag resistance, defined by the aerodynamic drag coefficient C drag , which is the predominant friction contribution in racing cars due to the high speed.

22The force F roll = C roll F z is the rolling resistance, which is proportional, via the rolling coefficient C roll , to the vertical load F z , which is defined later in (10).Force F g = M g sin(θ), instead, is the gravitational resistance, where g = 9.81 m/s 2 is the gravitational acceleration.Parameter M is the total mass of the vehicle, comprising the battery M b and the chassis M v one, and R w is the radius of a single equivalent wheel.Finally, T w , i.e., the total torque applied to the wheel, is the control variable that affects the longitudinal speed, while v 0 represents the initial speed, which can model either a standstill or a rolling start.Following the state-space reformulation introduced in (4), the vehicle state equation becomes:

23(8) We highlight that, all the variables are expressed in a coordinate frame attached to the vehicle, where the x axis is the longitudinal direction, the z axis points upwards, normal to the track, and the y axis completes the right-handed coordinate system.We refer to [3] for a pictorial representation.Given the assumptions of point-mass model and fixed trajectory, the lateral dynamics is accounted for via the friction-ellipse static constraint [6], [20], limited by the peak values of longitudinal and lateral friction, µ x and µ y as:

24where total longitudinal, lateral and vertical forces -respectively F x , F y and F z -acting on the vehicle are defined as:

25where the aerodynamic downforce is expressed as

26, and C down is the aerodynamic downforce coefficient.Exploiting the force definitions, (9) becomes

27(11) It is worth mentioning that, in many literature works, e.g., [4], [13], the ellipse constraint is relaxed by a rectangle, decoupling longitudinal and lateral limits, allowing the computation in advance of the maximum vehicle speed value achievable along the race-line, combining expressions of lateral and vertical forces in (10).For the purpose of our work, we stick with the ellipse formulation, which represents a better description of the driving at the limit concept typical of the racing scenario.From the above description of the vehicle model, we can specify the cost function in (5), the vector of optimization variables u v = [v(s), T w (s)], and the constraint set V , composed by equations (7,8,11).In this formulation, which is summarized in Tab.I, non-convexity arises due to multiple reasons: i) the term 1 v in the cost function (5), ii) the term 1 v and the term proportional to v 2 in the state dynamics equality constraint (8), and iii) the fourth-order polynomial dependence from v in the inequality constraint (11).Nevertheless, different works, starting from [21] and [13], have shown that it is possible to rewrite the vehicle dynamics part of the optimization problem into a convex framework.This formulation is achieved from the non-convex one by following the three steps below.

28(i) The lethargy dt ds (s) is introduced as an additional optimization variable, making the cost function (5) linear, thus convex:

29Despite this, the link between vehicle speed v(s) and lethargy still introduces the non-convex constraint v• dt ds = 1, which can be however relaxed as:

30that is a convex constraint since it can be expressed as the second-order cone (see [4] and [13] for more details)

31where v = 1 m/s is the normalization speed.(ii) The kinetic energy of the vehicle E kin (s) is introduced as a state variable in place of the speed v(s), generating a linear, thus convex, state equation, since the spatial derivative of an energy is a force, and the drag resistance is a linear function of the kinetic energy:

32initialized as:

33Finally, the non-convex quadratic equality constraint between kinetic energy and speed, E kin (s) = 1 2 M v(s) 2 , is relaxed as:

34to obtain a convex quadratic inequality constraint.(iii) The non-convex ellipse limit in (11) can be expressed as a convex constraint exploiting the norm operator and the linearity of both centripetal and aerodynamic forces with respect to kinetic energy:

35) To retrieve a convex formulation for the vehicle dynamics, the two relaxations ( 13) and ( 17) are necessary, but, fortunately, they do not change the global optimum.Indeed, the solution of the relaxed problem is equivalent to the non-relaxed one, because both constraints would be satisfied with equality.Indeed, 1) to minimize the race time, the lethargy dt ds must be minimized, meaning that, given a vehicle speed the first relaxation (13) would be satisfied with equality; 2) then, for the same reason, the optimal solution would maximize the vehicle speed, which is limited by the kinetic energy constraint, leading to the tight satisfaction of the second relaxation (17).

36To recap, the convex formulation of the vehicle dynamics has u v = dt ds (s), v(s), E kin (s), T w (s) as set of optimization variables, and the set V defined as in Tab.I as the set of constraints (14,15,16,17,18).We claim that the vehicle dynamics part of the optimization problem in (5) can be expressed, without approximation, as a convex problem, at the price of two additional optimization variables, one for each constraint relaxation, which may increase the computational burden.We remark also that this convex formulation is not limited to the point-mass model of a vehicle, but it can be extended to more complex scenarios, as shown by [20] with a double-track model for a minimum lap time problem.

B. Battery Model

37In this section, we discuss the core topic, namely the modeling of the battery subsystem in Problem (5).In a sizing problem, the battery model should be able to capture (i) the internal energy losses, (ii) the dynamics of the disposable energy, and (iii) its physical limitations constraining the achievable performance, while keeping the complexity as low as possible.In this scenario, electro-chemical models [30] are far away from being exploitable, and it is well-established that Equivalent Circuit Models (ECM) can be the right tool to use, see [3], [6], [18], [23].The family of ECMs is wide, and we can search for the right balance between complexity and accuracy, which affects both the structure of the problem and the significance of the results.In the next part of the section, we describe three possible modeling approaches, with increasing complexity, from a non-convex perspective, and then, as in Section III-A, we discuss how, whether it is possible, to obtain a convex formulation for the subsystem.

38All three models share some common variables and equations, that are summarized in this paragraph.The battery pack is made of a multitude of cells, taken from a specific technology.Each cell technology is characterized by its weight m cell , a nominal capacity q cell , an internal resistance r 0,cell , and an Open-Circuit Voltage (OCV) v oc , the latter possibly function of the state-of-charge (SoC), labelled with ζ in the equations, of the cell.From these definitions, the related variables at the battery level can be computed as functions of the battery size parameters, i.e., the number of cells in series N s and in parallel N p :

39Each battery model includes also the SoC dynamics, which is expressed through the battery current I b (s) using the spatial reformulation in (4) as:

40Moreover, the whole battery pack weight M b , affecting the vehicle mass M in (6), can be expressed as:

41where α is the packaging factor accounting for the weight of the battery case, which is modeled as the (1 − α) percentage of the overall weight.Then, to exploit the battery in its correct operating region, strict constraints, obtained from cell limits on voltage (v min , v max ), current (i min , i max ), and SoC, are introduced:

42where V b is the battery voltage at the terminals, whose expression depends on the chosen model.Finally, to comply with possible regulations, a limit on the power achievable at the terminals of the battery, i.e., P b (s) = V b (s) • I b (s), is introduced:

43In the following, the peculiarities of each non-convex battery model are described, deriving its own formulation inside the optimization problem. 1) Static ECM with constant OCV (V n -R).

44It is the simplest model, where the open-circuit voltage is assumed to be constant and equal to the nominal value: (20,22,23), where

45This second model integrates the well-known dependence of the open-circuit voltage from the state-ofcharge to improve accuracy, i.e.,

46where the dependence can be any nonlinear function matching experimental data.In this second model, vector

47is the same as the first one, while the constraint set B is very similar to the previous case, as shown in Tab.I, where

48In this last case, we leverage the Randle model, which adds dynamic components to the second static equivalent circuit in the form of RC pairs, which account for the relaxation dynamics in the cell.In our work, we consider a model with a single RC pair, chosen as the one with the longest time constant [30], because fast ones are typically characterized by much lower resistance values, thus less impacting on the disposable energy.We enlarge the set of optimization variables,

49to include an additional state, namely the voltage V 1 across the equivalent RC pair at the battery level, whose resistance and capacitance values at the battery level are obtained using Thevenin's equivalent from cell's ones as

Ns

50Np , and whose state equation reads as

51From this addition, set B enlarges the previous one including (24), as visible in Tab.I, where

52As stated before, all the three introduced models are defined through non-convex constraints, due to the presence of term

53As explained for the vehicle dynamics model, the spatial derivative of energy is a force, meaning that, declaring the open-circuit and terminal forces, F oc (s) and F b (s), from the respective powers P oc (s) and P b (s) as:

54we can derive the state equation for the battery energy evolution as:

55(ii) From simple manipulations of the equations, the power loss in the internal resistance can be written as:

56Exploiting the definition of F oc (s), F b (s), and lethargy dt ds , the power loss in the internal resistance can be written in terms of forces as:

57To obtain a convex formulation, ( 28) is relaxed by:

58which is a second-order cone, as shown in [4]:

59where v = 1 m/s and F = 1 N are normalization terms.This last relaxation requires an important remark: if on the one hand, it allows to obtain a convex formulation of the model, on the other hand, differently from the vehicle dynamics case, it is satisfied with equality only when the battery energy should be optimized to minimize the race time.In all other cases, the internal battery loss can be overestimated, leading to nonphysical profiles, as shown in Fig. 6 for the case study.Finally, from (25), the battery linear inequality constraints ( 22) and ( 23) are rewritten in terms of forces as:

60where

61From the above description, in the convex reformulation the vector u b is defined as u b = [E b (s), F oc (s), F b (s)], while the constraint set B, as in Tab.I, contains equations (26,30,31).

62To conclude, we highlight once more that this convex reformulation is possible only for the model with constant OCV introducing the aforementioned relaxation.Even if in [31] a linear dependence of such a relationship is integrated into a convex framework for energy optimization, its applicability can not be extended to the minimum lap-race time problem, due to the needed spatial reformulation.

C. Powertrain, Brakes and Coupling Constraints

63The integration of the battery and vehicle models is achieved via both coupling constraints and powertrain-brakes modeling, whose models are highly influenced by the required level of detail.In racing electric cars, we identify three main components connecting the battery to the vehicle: (i) inverter, (ii) electric motor, and (iii) gear-box.As a preliminary observation, the dynamics involved in these subsystems are typically orders of magnitude faster than the vehicle one, so that, as far as we are aware, no state variables are considered in any previous work (inside vector u p ).The only exception regards the temperature dynamics of the electric motor, see [22] and [17], which however falls outside the domain of interest of this work, where we stick with the assumption in [6] and [3] of the presence of a properly sized cooling system able to keep the temperature under control.

64The inverter is rarely accounted for in literature: in [23] the losses are modeled through a fitted quadratic function, framing it in the convex scenario through a similar relaxation technique used for the battery pack in (29); in [32], instead, the losses are introduced on semiconductor level, including both conduction and switching losses in a non-convex optimization setup.On the contrary, the electric motor is widely considered: [20], [23] and similarly [4], account for the motor limits and its losses via a quadratic model, fitted from data, as functions of the operating point; [17] and [18] employ a simpler model of the losses, just proportional to the square of the output power.In all these approaches, the models of the losses are relaxed, similarly to (29), to be included in a convex framework.We remark that the same approaches can be employed without relaxations in a non-convex setup, like in [19] for F1 hybrid cars.Finally, regarding the gear-box, most literature works, see [23] and [20], use a Fixed Gear Transmission (FGT) model with constant gear ratio and efficiency.However, [4] enlarges the analysis comparing the FGT model with a Continuously Variable Transmission (CVT), where the losses are included via a fitted quadratic model, always relaxed to be in a convex framework.

65Despite more complex models can be included, as in [32] and [23], given the energetic perspective of battery sizing problems, we employ the simplest possible one, namely a single average efficiency η mapping the entire chain from the battery to the wheel, thus, including the electric motor, the inverter, and the gear-box.In this way, the focus is given to the impact of the different battery models discussed in Section III-B.Despite its simplicity, a fixed efficiency with a bi-directional flow of power can not be easily modeled, since the value of the efficiency is a discontinuous function of the sign of battery current:

66where T m (s) is the torque delivered by the electric motor, which is part of the powertrain variables u p , together with the brake negative torque T br :

67The discontinuity in (32) can be smoothed as proposed in [6] to obtain a non-convex differentiable equality constraint:

68where β η represents a design smoothing variable.In conclusion, in the non-convex scenario, the sets P and C , as shown in Tab.I, are defined respectively by the constraint on the negative sign of the brake torque (34), and by ( 32) and (33) for the efficiency of the transmission, along with the definition of the total torque at the wheel as the sum of motor and brakes (34).

69As already stated, the smoothing of the efficiency model in (33) still represents a non-convex constraint.Nevertheless, a convex solution can be obtained employing a technique proposed in the literature for the gear-box efficiency [20].In this solution, see also Tab.I, the brake torque does not explicitly appear, so that u p and set P can be left empty, since the total torque applied to the wheel T w (s) includes the electric motor one.The discontinuous efficiency is accounted for in the coupling constraint via the following double inequality:

70The constraint relaxation in ( 35) requires a two-fold explanation: (i) Tw Rw − ηF b ≤ 0 models the traction phase, and it is satisfied with equality when the battery energy should be optimized to minimize the race time; (ii) Tw Rw − 1 η F b ≤ 0 models the braking phase, where the difference between wheel and efficiency-scaled battery power is allocated to the mechanical brakes as:

71If, on the one hand, such an implicit brake formulation allows to reduce the number of optimization variables with simpler constraints; on the other hand, it does not allow the simulation of situations where mechanical brakes are absent or power limited, like for the rear emergency brakes of Formula E Generation 3, which can be easily handled with the non-convex formulation in (34).

IV. THE IMPACT OF BATTERY MODEL ON MRT AND SIZING: A CASE STUDY

72To evaluate the impact of the different modeling choices described in Section III, a case study is addressed.Similarly to [3], [6], the vehicle is a Formula E car, specifically the Generation 3, and its parameters are shown in Tab.II.Concerning the battery cell, we considered a single technology, the Sony Murata US18650VTC6 (VTC6), representative of the racing context, as demonstrated by its usage in the Formula E Generation 2 championship.Its parameters, are reported in Tab.III, highlighting if they are available from easy-access datasheets * , † or if an identification process is required.The identified parameters come from three different identification procedures proposed in [33], considered as possible alternative models.To summarize, the following models are considered:

73(i) V n -R, characterized by the nominal constant open-circuit voltage and one resistance; (ii) V SoC -R, with a SoC-dependent open-circuit voltage and one resistance; (iii) V SoC -RC, with an RC couple in addiction to V SoC -R, taking into account the three sets of values in Tab.III.The impact of the modeling strategies is analyzed following these two steps: (i) the optimal battery size -for the 23 laps of the 2021 Rome ePrix (see [3] for a pictorial representation)

74-is compared using the different battery models in the nonconvex formulation; (ii) the evolution of vehicle speed and battery variables is discussed for the optimal battery size, highlighting the potential differences induced by the different battery models; finally, the consequences of using the convex formulation are also discussed.We highlight that, in this specific scenario, the slope θ(s) is set equal to zero, because the considered track is flat.Both approaches have been discretized with ds = 15 m using the fourth-order explicit Runge-Kutta method [34], which keeps the linearity -and so convexity -in the convex formulation, and increases the overall accuracy in presence of significant discretization lengths.The value of the discretization step, coherent with previous works in [6] and [3], is chosen as a compromise between accuracy and complexity, allowing to achieve both consistent sizing results and speed profiles, even when compared with finer space discretizations.The non-convex approach is parsed with CasADi [35] and solved by employing the interior-point algorithm (IPOPT) [36] combined with the MA57 linear solver [37].The convex approach, instead, is parsed with YALMIP [38] and solved using MOSEK [39].Regarding the computational load, we highlight that there are no strict requirements since the optimizations are performed offline.To a give a flavour, the non-convex case with the V n -R battery model, which has a total of 30362 optimization variables and 75903 constraints, takes on average 43.5 s to return the optimal solution on a personal computer equipped with a 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz processor and a 16GB RAM.

A. The Impact of Battery Models

75The cost function to be minimized, i.e., the race time, in this case study is a sole function of the number of cells in parallel N p , which is chosen as the battery size design parameter: u s = N p .Indeed, the battery cell technology is fixed to be the VTC6, while the number of cells in series N s is 209, so to impose the maximum battery voltage: N s v max = V max .Therefore, to compute the solution, the race time is evaluated for N p ∈ {10, ..., 30} with a grid approach.Results are shown in Fig. 1: it is visible that the computed race time increases along with the model complexity.This trend is motivated by the reduction of net battery capacity, due to both the nonlinear open-circuit voltage characteristics and the total resistance increase (R 0 + R 1 ).We highlight that the set of RC couples is intentionally sorted with increasing R 1 in Tab.III to enhance the readability of the figure.Concerning the optimal point, the first three models (V n -R, V SoC -R, V SoC -RC1) share the same optimum N p = 24, while the other two (V SoC -RC2, V SoC -RC3) have the optimal point in N p = 25.Indeed, this is a natural consequence of a lower net capacity, which calls for a bigger battery size.However, looking at the negligible race time difference between the solutions with 24 and 25 cells in parallel for the more complex models, we can appreciate the limited error introduced by a simpler battery model.In order to compare the evolution of different variables during the race, we consider now N p = 24.Fig. 2 compares the behavior, in the lap-domain, of both SoC and operating regions of battery current and voltage for V n -R, V SoC -R and V SoC -RC3; the latter being the model with RC values with the highest impact on the results (see again Fig. 1).All three solutions end the race with almost zero state of charge, leaving the battery without available energy, meaning that the battery is not oversized.We can also see that the V n -R state of charge profile is more different with respect to V SoC -R and V SoC -RC3, which are closer to each other.This aspect is motivated by the real shape of the OCV in Tab.III that is neglected in V n -R, using the constant nominal one.This has a consequent impact on the battery current and voltage operating regions.At the beginning of the race, the battery is fully charged, meaning that the open-circuit voltage is close to the maximum value allowed at the terminals (as visible from the picture in Tab.III), thus limiting the maximum negative current achievable during braking.On the contrary, when the SoC lowers, the open-circui voltage decreases as well, so that the battery current should increase during traction phases to match the maximum power constraint (23).

76Focusing on the fourteenth lap in Fig. 3, it is possible to compare in more detail the different modeling approaches, because, in this lap, the open-circuit voltages of the more complex models are close to the nominal one.First of all, we can appreciate the similarity among the optimized speed profiles, despite the differences in the voltage generated by the RC dynamics in V SoC -RC3, which are compensated by tiny current dissimilarities to match the power requirement.These comments naturally reflect on the achieved race times, as evident by the alike shapes in Fig. 1.The reason behind that is something specific for the racing scenario, where the battery power request is characterized by quick changes from hard braking to full traction, which are much faster than the RC dynamics.Indeed, considering the RC set 3, the time constant R 1 C 1 is equal to 27.77 s, while the change between traction and braking occurs approximately every 3-4 seconds.

B. The Impact of Convex Formulations

77The analysis now focuses on the convex formulation, comparing it with the non-convex one with a static battery model with nominal voltage (V n -R), because as discussed in Section III, they are equal except for the relaxation of the constraints (13,17,29,35).Indeed, Fig. 4 shows that the two approaches have the same optimal solution, and the cost function only differs due to numerical errors in the integration, induced by solving two different formulations of the same problem, where different state equations are employed.The motivation of this statement is provided in Fig. 5, where the difference between the two approaches is analyzed with respect to the discretization step ds, for N p = 24.In the figure, the gap between achieved race times and the distributions of vehicle speed differences along the race are reported.We can highlight the monotonic trend towards zero of both quantities when the discretization step decreases, providing thorough evidence that both solutions converge towards the same continuous time formulation of the problem.

78The aforementioned relaxations can have an important impact on the behavior of the time-lap varying variables.Indeed, if it is proven in [13], and previously discussed in Section III-A, that to minimize the race time the relaxed constraints (13,17) are satisfied with equality, this is not guaranteed for the other two constraints (29,35).Starting with the relaxation of the battery constraint, we can compute in post-processing the value of an equivalent internal resistance R * 0 (s) that satisfies the constraint (29) with equality:

79The distribution of the values of R * 0 (s) is shown in Fig. 6 for three battery packs with a different number of cells in parallel.It is visible that: if the battery is oversized (N p = 30), the average value of R * 0 (s) is higher than R 0 , because some energy can be freely dissipated without affecting the race time; on the contrary, when the battery is undersized (N p = 11), R * 0 (s) = R 0 because all the energy is necessary to minimize the race time to finish the race.Finally, we can notice that when N p = 24, the equivalent resistance is closer to the real one R 0 , because the battery is optimally sized to cover the race on the considered circuit.Similar considerations can be made for the relaxation of the powertrain constraint (35).Fig. 7 shows the equivalent efficiency of the powertrain in the battery-wheel power plane, where the fixed efficiency and the forbidden region are highlighted.During traction phases (positive battery power), the optimal solution sticks to the desired fixed efficiency when the battery is either optimally sized or downsized, while it can introduce undesired dissipation when the battery is oversized, for the same reasons as before.In braking phases (negative battery power), the optimal solution is correctly not on the fixed efficiency curve, since the difference is dissipated through the mechanical brakes, as already discussed in Section III.

80These last discussions allow us to better highlight the possible drawbacks of the convex formulations for the minimum race time problem.First of all, a convex formulation is possible only for the simplest battery model, with constant OCV, thus limiting the accuracy and the capability to describe the different stages of the race.Moreover, the need of constraint relaxation to achieve convexity might lead to non-physical behaviors in the optimal profiles of energy-related variables, which turn out to be less informative for further analyses and developments.We remark here that, with the specific powertrain layout considered in this work, it is still possible to recompute the electrical variables, like power and current, in post-process, moving backwards from the wheel power through non-relaxed models.As final comment, such post-processing might not always applied.For inwith the hybrid battery pack layout in [3], an explicit model to split the total battery power between the two sources would be available.

C. Final Discussion and Sizing Guidelines

81From the case study, we can retrieve important information about the minimum race time optimization and the optimal battery sizing for an electric racing car: if, on the one hand, more complex models are fundamental to compute the real evolution of the control variables, on the other hand, simpler ones are sufficient for sizing purposes.As a matter of fact, we have shown how the problem can be simplified up to a convex formulation without experiencing significant errors in the sizing results, as demonstrated by the negligible differences among the different battery models.As a consequence, we can state that the model with constant OCV attains consistent results and can be used as a reference for this purpose, even though the obtained profiles of electrical variables might be not physical.Moreover, since we have shown in Section IV-B that only small race time differences, due to integration errors, are present between its convex and non-convex formulations, we can stick with the former one, exploiting its global optimality properties.

82Summarizing the results of this case study, they suggest a guideline on how to approach the battery sizing problems in racing vehicles:

83(i) optimal sizing can be formulated with the simplest model; in this way, cell information can be retrieved from easy-access datasheets, which typically report the cell weight, the value of the internal resistance, the nominal voltage and the cell operating limits; (ii) more complex models can be experimentally identified, once a cell technology has been chosen and the battery pack sized; (iii) these models can be employed in a minimum race time problem in order to understand more trustworthy evolutions of the variables during the race, with the purpose of designing real-time control strategies.

V. CONCLUSIONS

84In this work, we reviewed the minimum lap-race time literature approaches for racing electric vehicles, with a focus on their application to sizing.Through the definition of a general mathematical framework, we analyzed the impact of different modeling choices on the resulting optimization problem, with an eye on convexity.In particular, we focused on different battery models, ranging from static electro-equivalent models with nominal voltage, to dynamical equivalent circuits with a SoC-dependent open-circuit voltage.Their impact on the battery sizing problem has been evaluated through a case study.In this way, it was possible to show that, when the minimum race time paradigm is employed for sizing purposes, simple convex models are more than enough.On the contrary, it is also shown how more complex battery models, requiring non-convex formulations, are more suitable to understand and analyze the time evolution of battery and vehicle variables for control purposes.

85Future works will focus on extending the analysis towards the other main components of the electric powertrain: electric motors, transmissions and power electronics.

86where v n is the nominal cell voltage.The battery optimization vector is defined as u b = [ζ(s), I b (s)], while the constraint set B, in Tab.I, contains equations

87) ≤ F b (s) ≤ P b,max dt ds (s) 0 ≤ E b (s) ≤ E max b , ,

Fig. 1 .

88Fig. 1.Comparison of sizing results for all the discussed non-convex battery models, as a function of the number of parallels Np.A zoom around the optimum highlights the similarity among the obtained results.

Fig. 2 .

89Fig. 2. Comparison of SoC, current and voltage race profiles with Np = 24, for the three battery models with increasing complexity.For clarity, only the operating region envelopes are depicted for battery currents and voltages.

Fig. 3 .

90Fig.3.Comparison of vehicle speed, in the fourteenth lap of the race, with Np = 24, for the three battery models with increasing complexity, a zoom of the current and voltage is given, to appreciate the difference between the models.

Fig. 4 .

91Fig. 4. Comparison of sizing results, as a function of the number of parallels Np, between the convex and non-convex approaches for the simplest battery model (Vn-R).

Fig. 5 .

92Fig. 5. Comparative analysis of the integration errors between the convex and non-convex formulation of the simplest battery model (Vn-R).Race time discrepancies and distributions of vehicle speed differences are depicted as function ds.

Fig. 6 .

93Fig. 6.Distributions of equivalent battery internal resistance along the race for three different battery sizes of the convex problem.

Fig. 7 .

94Fig. 7. Comparison of the equivalent powertrain efficiency in the batterywheel power plane for three different battery sizes of the convex problem.

TABLE I SUMMARY

95OF THE MINIMUM RACE TIME PROBLEM IN (5).ALL THE MODELS DESCRIBED FOR VEHICLE DYNAMICS, BATTERY, AND POWERTRAIN-BRAKES ARE REPORTED, SPLITTING NON-CONVEX AND CONVEX FORMULATIONS, WHETHER POSSIBLE.

참고문헌 40건

  1. Convex relaxations in the optimal control of electrified vehicles 2022 American Control Conference (ACC) · 2015 10.1109/acc.2015.7171074
  2. The Mosek Interior Point Optimizer for Linear Programming: An Implementation of the Homogeneous Algorithm Applied optimization · Springer Nature · 2000 10.1007/978-1-4757-3216-0_8
  3. An Interior Point Algorithm for Large-Scale Nonlinear Programming SIAM Journal on Optimization · Society for Industrial and Applied Mathematics · 1999 10.1137/s1052623497325107
  4. Optimal control for a Formula One car with variable parameters Vehicle System Dynamics · Taylor & Francis · 2014 10.1080/00423114.2014.889315
  5. The Numerical Analysis of Ordinary Differential Equations; Runge-Kutta and General Linear Methods. Mathematics of Computation · American Mathematical Society · 1988 10.2307/2008600
  6. Optimal Control of a Formula One Car on a Three-Dimensional Track—Part 2: Optimal Control Journal of Dynamic Systems Measurement and Control · ASM International · 2014 10.1115/1.4029466
  7. MA57---a code for the solution of sparse symmetric definite and indefinite systems ACM Transactions on Mathematical Software · Association for Computing Machinery · 2004 10.1145/992200.992202
  8. Torque-Assist Hybrid Electric Powertrain Sizing: From Optimal Control Towards a Sizing Law IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2009 10.1109/tcst.2009.2030173
  9. On the coupling between the plant and controller optimization problems 2001 10.1109/acc.2001.946008
  10. MEASURING CAR-DRIVER INTERACTION WITH THE g-g DIAGRAM SAE technical papers on CD-ROM/SAE technical paper series · 1973 10.4271/730018
  11. Review of Optimization Strategies for System-Level Design in Hybrid Electric Vehicles IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2016 10.1109/tvt.2016.2547897
  12. Integrated Optimization of Battery Sizing, Charging, and Power Management in Plug-In Hybrid Electric Vehicles IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2015 10.1109/tcst.2015.2476799
  13. 6 Convex optimization algorithms De Gruyter eBooks · De Gruyter · 2014 10.1515/9783110361629.117
  14. YALMIP : a toolbox for modeling and optimization in MATLAB 2005 10.1109/cacsd.2004.1393890
  15. Time-optimal race car driving using an online exact hessian based nonlinear MPC algorithm 2022 European Control Conference (ECC) · 2016 10.1109/ecc.2016.7810277
  16. Time-optimal Control Strategies for a Hybrid Electric Race Car IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcst.2017.2661824
  17. Minimum time optimal control simulation of a GP2 race car Proceedings of the Institution of Mechanical Engineers Part D Journal of Automobile Engineering · SAGE Publishing · 2017 10.1177/0954407017728158
  18. Optimal Design and Control of 4-IWD Electric Vehicles Based on a 14-DOF Vehicle Model IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2018 10.1109/tvt.2018.2870673
  19. CasADi: a software framework for nonlinear optimization and optimal control Mathematical Programming Computation · Springer Science+Business Media · 2018 10.1007/s12532-018-0139-4
  20. Equivalent Lap Time Minimization Strategies for a Hybrid Electric Race Car 2018 10.1109/cdc.2018.8618724
  21. Minimum Lap Time Control of Hybrid Electric Race Cars in Qualifying Scenarios IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2019 10.1109/tvt.2019.2920777
  22. Commercialization of Lithium Battery Technologies for Electric Vehicles Advanced Energy Materials · Wiley · 2019 10.1002/aenm.201900161
  23. Battery Energy Storage Models for Optimal Control IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2957698
  24. Joint Design and Control of Electric Vehicle Propulsion Systems 2022 European Control Conference (ECC) · 2020 10.23919/ecc51009.2020.9143869
  25. Minimum Race-Time Planning-Strategy for an Autonomous Electric Racecar 2020 10.1109/itsc45102.2020.9294681
  26. A Convex Optimization Framework for Minimum Lap Time Design and Control of Electric Race Cars IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2021 10.1109/tvt.2021.3093164
  27. Optimal Design and Control of 4-IWD Electric Vehicles Based on a 14-DOF Vehicle Model IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2018 10.1109/tvt.2018.2870673
  28. Time-optimal gearshift and energy management strategies for a hybrid electric race car Applied Energy · Elsevier BV · 2020 10.1016/j.apenergy.2020.115980
  29. A Review on Electric Vehicles: Technologies and Challenges Smart Cities · Multidisciplinary Digital Publishing Institute · 2021 10.3390/smartcities4010022
  30. Time-optimal Control of Electric Race Cars under Thermal Constraints 2022 European Control Conference (ECC) · 2021 10.23919/ecc54610.2021.9654968
  31. Minimum-lap-time optimisation and simulation Vehicle System Dynamics · Taylor & Francis · 2021 10.1080/00423114.2021.1910718
  32. Minimum-lap-time Control Strategies for All-wheel Drive Electric Race Cars via Convex Optimization 2022 European Control Conference (ECC) · 2022 10.23919/ecc55457.2022.9838115
  33. Maximum-distance race strategies for a fully electric endurance race car European Journal of Control · Elsevier BV · 2022 10.1016/j.ejcon.2022.100679
  34. Optimization-Based Real-Time-Capable Energy Strategy for Autonomous Electric Race Cars SAE International Journal of Connected and Automated Vehicles · 2022 10.4271/12-05-01-0005
  35. Overview of Battery Impedance Modeling Including Detailed State-of-the-Art Cylindrical 18650 Lithium-Ion Battery Cell Comparisons Energies · Multidisciplinary Digital Publishing Institute · 2022 10.3390/en15103822
  36. An Optimal Battery Sizing Co-Design Approach for Electric Racing Cars IEEE Control Systems Letters · Institute of Electrical and Electronics Engineers · 2022 10.1109/lcsys.2022.3181950
  37. Convex Performance Envelope for Minimum Lap Time Energy Management of Race Cars IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2022 10.1109/tvt.2022.3172473
  38. Minimum lap time trajectory optimisation of performance vehicles with four-wheel drive and active aerodynamic control Vehicle System Dynamics · Taylor & Francis · 2022 10.1080/00423114.2022.2101930
  39. Minimum-Race-Time Energy Allocation Strategies for the Hybrid-Electric Formula 1 Power Unit IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2023 10.1109/tvt.2023.3237388
  40. Optimal Sizing and Analysis of Hybrid Battery Packs for Electric Racing Cars IEEE Transactions on Transportation Electrification · Institute of Electrical and Electronics Engineers · 2023 10.1109/tte.2023.3237782