calibrate_service_battery_status_model¶
-
calibrate_service_battery_status_model
(is_hybrid, times, service_battery_charging_statuses, service_battery_state_of_charges, motive_powers)[source]¶ Calibrates the service battery charging status model.
Parameters: - is_hybrid (bool) – Is the vehicle hybrid?
- times (numpy.array) – Time vector [s].
- service_battery_charging_statuses (numpy.array) – Service battery charging statuses (0: Discharge, 1: Charging, 2: BERS, 3: Initialization) [-].
- service_battery_state_of_charges (numpy.array) – State of charge of the service battery [%].
- motive_powers (numpy.array) – Motive power [kW].
Returns: A function that predicts the service battery charging status.
Return type: callable