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 232 [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."] 233 [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."] 234 [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."] 235 [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"] 236 [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"] 237 [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."] 238 [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."] 239 [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"] 240 [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"] 241 [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."] 242 [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."] 243 [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."] 244 [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."] 245 [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."] 246 [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."] 247 [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."] 248 [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."] 249 [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"] 250 [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"] 251 [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"] 252 [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."] 253 [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."] 254 [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."] 255 [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."] 256 [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."] 257 [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"] 258 [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"] 259 [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"] 260 [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"] 261 [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."] 262 [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."] 263 [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."] 264 [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."] 265 [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."] 266 [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."] 267 [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."] 268 [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."] 256 -> 265 238 -> 234 255 -> 245 237 -> 233 254 -> 267 246 -> 265 247 -> 266 232 -> 256 244 -> 264 254 -> 245 234 -> 255 267 -> 243 266 -> 238 251 -> 262 250 -> 261 242 -> 268 245 -> 242 245 -> 240 252 -> 267 233 -> 254 235 -> 245 245 -> 236 255 -> 268 241 -> 267 240 -> 262 245 -> 239 261 -> 257 248 -> 232 263 -> 259 239 -> 261 249 -> 245 253 -> 268 268 -> 244 262 -> 258 245 -> 241 256 -> 266 264 -> 260 243 -> 263 265 -> 237 }

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