macrostat.models.IOPC.IOPC#
- class macrostat.models.IOPC.IOPC(parameters: ParametersIOPC | None = <macrostat.models.IOPC.parameters.ParametersIOPC object>, variables: VariablesIOPC | None = None, scenarios: ScenariosIOPC | None = None, *args, **kwargs)[source]#
Bases:
ModelIOPC model class for Marco Veronese Pasarella’s 3IO-PC model
- __init__(parameters: ParametersIOPC | None = <macrostat.models.IOPC.parameters.ParametersIOPC object>, variables: VariablesIOPC | None = None, scenarios: ScenariosIOPC | None = None, *args, **kwargs)[source]#
Initialize the IOPC model.
- Parameters:
parameters (ParametersIOPC | None) – The parameters of the model. If None, default parameters will be used.
variables (VariablesIOPC | None) – The variables of the model. If None, default variables will be used.
scenarios (ScenariosIOPC | None) – The scenarios of the model. If None, default scenarios will be used.
Methods
__init__(parameters, variables, scenarios, ...)Initialize the IOPC model.
compute_theoretical_steady_state([scenario])Compute the theoretical steady state of the model.
get_model_training_instance([scenario])Simulate the model.
load(path)Class method to load a model instance from a pickled file.
save(path)Save the model object as a pickled file
simulate([scenario])Simulate the model.
to_json(file_path, *args, **kwargs)Convert the model to a JSON file split into parameters, scenarios, and variables.
Attributes
- version = 'IOPC'#