realtwin.func_lib.cali_sumo
- realtwin.func_lib.cali_sumo(*, sel_algo: dict = None, input_config: dict = None, verbose: bool = True, **kwargs) bool[source]
Run SUMO calibration based on the selected algorithm and input configuration.
- Parameters:
sel_algo (dict) – the dictionary of selected algorithm for turn_inflow and behavior. Defaults to None.
input_config (dict) – the dictionary contain configurations from input yaml file. Defaults to None.
verbose (bool) – print out processing message. Defaults to True.
- Raises:
ValueError – if algo_config is not a dict with two levels with keys of ‘ga’, ‘sa’, and ‘ts’
ValueError – if sel_algo is not a dict with keys of ‘turn_inflow’ and ‘behavior’
- Returns:
True if calibration is successful, False otherwise.
- Return type:
bool