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
	187 [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."]
	188 [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."]
	189 [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."]
	190 [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"]
	191 [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"]
	192 [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."]
	193 [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."]
	194 [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"]
	195 [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"]
	196 [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."]
	197 [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."]
	198 [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."]
	199 [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."]
	200 [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."]
	201 [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."]
	202 [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."]
	203 [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."]
	204 [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"]
	205 [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"]
	206 [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"]
	207 [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."]
	208 [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."]
	209 [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."]
	210 [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."]
	211 [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."]
	212 [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"]
	213 [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"]
	214 [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"]
	215 [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"]
	216 [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."]
	217 [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."]
	218 [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."]
	219 [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."]
	220 [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."]
	221 [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."]
	222 [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."]
	223 [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."]
	206 -> 217
	200 -> 196
	211 -> 221
	194 -> 216
	201 -> 220
	223 -> 199
	189 -> 210
	204 -> 200
	200 -> 191
	209 -> 200
	200 -> 194
	216 -> 212
	217 -> 213
	218 -> 214
	209 -> 222
	222 -> 198
	221 -> 193
	210 -> 223
	202 -> 221
	192 -> 188
	196 -> 222
	190 -> 200
	199 -> 219
	211 -> 220
	210 -> 200
	203 -> 187
	200 -> 195
	193 -> 189
	197 -> 223
	187 -> 211
	208 -> 223
	219 -> 215
	207 -> 222
	198 -> 218
	205 -> 216
	188 -> 209
	220 -> 192
	200 -> 197
	195 -> 217
}
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