resolve returns one block and stores it in the selected scenario. It uses existing blocks and computes missing dependencies as needed; an already stored target is reused unless force_rewrite=True.

import mario

db = mario.load_test("SUT", tech_assumption="industry-based")
fc = db.resolve("fc")

This computes commodity-side environmental multipliers:

\[f_c=(e_as+e_c)(I-us)^{-1}.\]

The result has satellite accounts on rows and commodity production nodes on columns. See the block formulas for the SUT quadrants and the equivalent linear-system form.

CoreModel.resolve(
matrix: str,
*,
scenario: str = 'baseline',
force_rewrite: bool = False,
compute_options=None,
)#

Resolve and materialize one matrix through the compute resolver.

Parameters:
  • matrix – Matrix or block name to compute.

  • scenario – Scenario used as the resolution context.

  • force_rewrite – When True, drop and recompute an already materialized block.

  • compute_options – Optional advanced compute options payload used to steer runtime planning and backend selection.

Returns:

The resolved block as stored in self.matrices[scenario].

Return type:

object