electrics_model

Functions and constants to define the electrics_model selector.

Dispatchers

dsp Models the vehicle electrics.
name = 'electrics_model'

Model name.

models = ['alternator_current_model', 'dcdc_current_model', 'has_energy_recuperation', 'service_battery_status_model', 'engine_moment_inertia', 'drive_battery_r0', 'delta_time_engine_starter', 'drive_battery_capacity', 'drive_battery_load', 'alternator_efficiency', 'service_battery_capacity', 'service_battery_load', 'drive_battery_n_parallel_cells', 'drive_battery_ocv', 'starter_efficiency', 'service_battery_initialization_time', 'service_battery_nominal_voltage', 'drive_battery_nominal_voltage', 'drive_battery_n_series_cells', 'dcdc_converter_efficiency', 'starter_nominal_voltage', 'initial_drive_battery_state_of_charge']

Parameters that constitute the model.

inputs = ['drive_battery_electric_powers', 'times', 'motive_powers', 'accelerations', 'on_engine', 'starter_currents', 'initial_service_battery_state_of_charge']

Inputs required to run the model.

outputs = ['alternator_currents', 'service_battery_currents', 'drive_battery_currents', 'dcdc_converter_currents', 'service_battery_state_of_charges', 'drive_battery_state_of_charges']

Relevant outputs of the model.

targets = ['alternator_currents', 'service_battery_currents', 'drive_battery_currents', 'dcdc_converter_currents', 'service_battery_state_of_charges', 'drive_battery_state_of_charges']

Targets to compare the outputs of the model.

weights = {'alternator_currents': 1, 'dcdc_converter_currents': 1, 'drive_battery_currents': 1, 'drive_battery_state_of_charges': 0, 'service_battery_currents': 1, 'service_battery_state_of_charges': 0}

Weights coefficients to compute the model score.

metrics = {'alternator_currents': <function mae>, 'dcdc_converter_currents': <function mae>, 'drive_battery_currents': <function mae>, 'drive_battery_state_of_charges': <function mae>, 'service_battery_currents': <function mae>, 'service_battery_state_of_charges': <function mae>}

Metrics to compare outputs with targets.

up_limit = {'alternator_currents': 60, 'dcdc_converter_currents': 60, 'drive_battery_currents': 60, 'service_battery_currents': 60}

Upper score limits to raise the warnings.