6.1.3. model

model()[source]

Defines the CO2MPAS model.

Calibrates the models with WLTP data and predicts NEDC cycle.

digraph dmap { node [style=filled] label = <dmap> splines = ortho style = filled 211 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/CO2MPAS_physical_model.html">calculate_precondition_output</TD></TR></TABLE>> fillcolor=yellow shape=note style=filled tooltip="Wraps all functions needed to calculate the precondition outputs."] 212 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/CO2MPAS_physical_model-0.html">calibrate_with_wltp_h</TD></TR></TABLE>> fillcolor=yellow shape=note style=filled tooltip="Wraps all functions needed to calibrate the models to predict light-vehicles' CO2 emissions."] 213 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/CO2MPAS_physical_model-1.html">calibrate_with_wltp_l</TD></TR></TABLE>> fillcolor=yellow shape=note style=filled tooltip="Wraps all functions needed to calibrate the models to predict light-vehicles' CO2 emissions."] 214 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">config.selector.all</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">{}</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="config.selector.all"] 215 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data.calibration.model_scores</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="data.calibration.model_scores"] 216 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data.calibration.wltp_h</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Dictionary that has all inputs of the calibration cycle."] 217 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data.calibration.wltp_l</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Dictionary that has all inputs of the calibration cycle."] 218 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data.prediction.models_nedc_h</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="data.prediction.models_nedc_h"] 219 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data.prediction.models_nedc_l</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="data.prediction.models_nedc_l"] 220 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data.prediction.models_wltp_h</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="New data."] 221 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data.prediction.models_wltp_l</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="New data."] 222 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data.prediction.wltp_h</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Data required to predict the CO2 emissions with CO2MPAS model."] 223 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data.prediction.wltp_l</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Data required to predict the CO2 emissions with CO2MPAS model."] 224 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/models_selector.html">extract_calibrated_models</TD></TR></TABLE>> fillcolor=yellowgreen shape=note style=filled tooltip="Select the calibrated models."] 225 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input.calibration.wltp_h</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">{}</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Dictionary that has inputs of the calibration cycle."] 226 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input.calibration.wltp_l</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">{}</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Dictionary that has inputs of the calibration cycle."] 227 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input.precondition.wltp_p</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">{}</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Dictionary that has all inputs of the calibration cycle."] 228 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input.prediction.models</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">{}</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="input.prediction.models"] 229 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input.prediction.nedc_h</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="input.prediction.nedc_h"] 230 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input.prediction.nedc_l</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="input.prediction.nedc_l"] 231 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input.prediction.wltp_h</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">{}</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="New data."] 232 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input.prediction.wltp_l</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">{}</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="New data."] 233 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output.calibration.wltp_h</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="A sequence of data."] 234 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output.calibration.wltp_l</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="A sequence of data."] 235 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output.precondition.wltp_p</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Dictionary that has all outputs of the precondition cycle."] 236 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output.prediction.nedc_h</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="output.prediction.nedc_h"] 237 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output.prediction.nedc_l</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="output.prediction.nedc_l"] 238 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output.prediction.wltp_h</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="output.prediction.wltp_h"] 239 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output.prediction.wltp_l</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="output.prediction.wltp_l"] 240 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/CO2MPAS_physical_model-2.html">predict_nedc_h</TD></TR></TABLE>> fillcolor=yellow shape=note style=filled tooltip="Wraps all functions needed to calibrate and predict light-vehicles' CO2 emissions."] 241 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/CO2MPAS_physical_model-3.html">predict_nedc_l</TD></TR></TABLE>> fillcolor=yellow shape=note style=filled tooltip="Wraps all functions needed to calibrate and predict light-vehicles' CO2 emissions."] 242 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/CO2MPAS_physical_model-4.html">predict_wltp_h</TD></TR></TABLE>> fillcolor=yellow shape=note style=filled tooltip="Wraps all functions needed to predict CO2 emissions."] 243 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/CO2MPAS_physical_model-5.html">predict_wltp_l</TD></TR></TABLE>> fillcolor=yellow shape=note style=filled tooltip="Wraps all functions needed to predict CO2 emissions."] 244 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/select_calibration_data.html">select_calibration_data</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Updates cycle inputs with the precondition outputs."] 245 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/select_calibration_data-0.html">select_calibration_data&lt;0&gt;</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Updates cycle inputs with the precondition outputs."] 246 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/select_prediction_data.html">select_prediction_data</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Selects the data required to predict the CO2 emissions with CO2MPAS model."] 247 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-cafccd37f2eae6c5cbe668bd6e5c4b94f430daeb/select_prediction_data-0.html">select_prediction_data&lt;0&gt;</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Selects the data required to predict the CO2 emissions with CO2MPAS model."] 219 -> 241 247 -> 223 212 -> 233 224 -> 215 232 -> 247 235 -> 244 233 -> 246 224 -> 219 246 -> 222 218 -> 240 211 -> 235 241 -> 237 228 -> 224 225 -> 244 222 -> 242 240 -> 236 224 -> 221 245 -> 217 242 -> 238 234 -> 247 220 -> 246 223 -> 243 244 -> 216 243 -> 239 235 -> 245 231 -> 246 227 -> 211 226 -> 245 233 -> 224 224 -> 220 213 -> 234 234 -> 224 229 -> 240 214 -> 224 230 -> 241 216 -> 212 221 -> 247 217 -> 213 224 -> 218 }

CO2MPAS model’s data
config.selector.all  
data.calibration.model_scores  
data.calibration.wltp_h Dictionary that has all inputs of the calibration cycle.
data.calibration.wltp_l Dictionary that has all inputs of the calibration cycle.
data.prediction.models_nedc_h  
data.prediction.models_nedc_l  
data.prediction.models_wltp_h New data.
data.prediction.models_wltp_l New data.
data.prediction.wltp_h Data required to predict the CO2 emissions with CO2MPAS model.
data.prediction.wltp_l Data required to predict the CO2 emissions with CO2MPAS model.
input.calibration.wltp_h Dictionary that has inputs of the calibration cycle.
input.calibration.wltp_l Dictionary that has inputs of the calibration cycle.
input.precondition.wltp_p Dictionary that has all inputs of the calibration cycle.
input.prediction.models  
input.prediction.nedc_h  
input.prediction.nedc_l  
input.prediction.wltp_h New data.
input.prediction.wltp_l New data.
output.calibration.wltp_h A sequence of data.
output.calibration.wltp_l A sequence of data.
output.precondition.wltp_p Dictionary that has all outputs of the precondition cycle.
output.prediction.nedc_h  
output.prediction.nedc_l  
output.prediction.wltp_h  
output.prediction.wltp_l  
CO2MPAS model’s functions
select_calibration_data Updates cycle inputs with the precondition outputs.
select_calibration_data Updates cycle inputs with the precondition outputs.
select_prediction_data Selects the data required to predict the CO2 emissions with CO2MPAS model.
select_prediction_data Selects the data required to predict the CO2 emissions with CO2MPAS model.
CO2MPAS model’s dispatchers
calculate_precondition_output Wraps all functions needed to calculate the precondition outputs.
calibrate_with_wltp_h Wraps all functions needed to calibrate the models to predict light-vehicles’ CO2 emissions.
calibrate_with_wltp_l Wraps all functions needed to calibrate the models to predict light-vehicles’ CO2 emissions.
extract_calibrated_models Select the calibrated models.
predict_nedc_h Wraps all functions needed to calibrate and predict light-vehicles’ CO2 emissions.
predict_nedc_l Wraps all functions needed to calibrate and predict light-vehicles’ CO2 emissions.
predict_wltp_h Wraps all functions needed to predict CO2 emissions.
predict_wltp_l Wraps all functions needed to predict CO2 emissions.
Returns:The CO2MPAS model.
Return type:schedula.Dispatcher