message_ix_models.tools.bilateralize.load_and_solve.load_and_solve

message_ix_models.tools.bilateralize.load_and_solve.load_and_solve(trade_dict, solve=False, to_gdx=False, project_name: str | None = None, config_name: str | None = None, start_scen: str | None = None, start_model: str | None = None, target_scen: str | None = None, target_model: str | None = None, scenario: Scenario | None = None, extra_parameter_updates: dict | None = None, gdx_location: str | None = None, MESSAGEix_GLOBIOM: bool = True)[source]

Clone and update scenario.

Parameters:

trade_dict – Dictionary of parameter dataframes

Optional Args:

solve: If True, solve scenario to_gdx: If True, save scenario to a GDX file project_name: Name of project (message_ix_models/project/[THIS]) config_name: Name of config file.

If None, uses default config from data/bilateralize/config_default.yaml

start_scen: Name of scenario to start from start_model: Name of model to start from start_model_name: Name of model to start from target_scen: Name of scenario to target target_model: Name of model to target target_model_name: Name of model to target scenario: Scenario to update (if None, will clone from project yaml) additional_parameter_updates: Dictionary of additional parameter updates gdx_location: Location to save GDX file remove_pao_coal_constraint: Remove PAO coal and gas constraints