commonpower.modeling.util.model_root

model_root(model: ConcreteModel) ConcreteModel[source]

Returns the root model of the given model by recursively calling model.parent_block().

Parameters:

model (ConcreteModel) – Model.

Returns:

ConcreteModel – Root model.