Single score
An impact assessment answers with one score per impact category: so much climate change, so much land use, so much water. A single score combines them into one figure, by normalizing each impact category against a reference and weighting what is left.
A SimaPro method file brings its own: each of its normalization-weighting sets becomes a scoring set of the same name, whose Single score is the sum SimaPro computes, and it appears beside the impact categories with nothing to configure. Otherwise you describe the one you want in the method collection that carries the impact categories, and the engine computes it alongside them. That is what [[methods.scoring]] is for. A scoring set you declare is added to the ones the file brings, and must not take one of their names. [[methods.patches]], further down, is the other half of the same problem: correcting individual characterization factors when the published method collection and the one you are asked to reproduce differ.
Both live under a [[methods]] entry in your configuration file.
A worked example
Section titled “A worked example”This is the Environmental Cost single score (ECS), as it is actually configured, shortened to four impact categories so the shape is visible. The real one runs to fifteen.
[[methods]]name = "EF3.1"path = "/data/EF-v3.1.zip"
[[methods.scoring]] name = "ECS" unit = "Pts" displayMultiplier = 1e6
# A short name for each impact category this score uses. The value on the # right has to be the impact category's name in the method collection, spelled exactly. [methods.scoring.variables] cch = "Climate change" ldu = "Land use" etfo = "Ecotoxicity, freshwater_organics" etfi = "Ecotoxicity, freshwater_inorganics"
# Scores the method collection does not carry, built from the ones it does. [methods.scoring.computed] etf = "2 * etfo + etfi"
# What a computed score is called when it is shown. [methods.scoring.labels] etf = "Ecotoxicity, freshwater"
# Divide each score by a reference: one person's annual share. [methods.scoring.normalization] cch = 7553.08 ldu = 819498.0 etf = 98120.0
# Then weight what is left. These sum to 1 across the full score. [methods.scoring.weighting] cch = 0.2106 ldu = 0.0629 etf = 0.2106
# The score itself: normalized, weighted scores added up. [methods.scoring.scores] total = "cch + ldu + etf"Read the arithmetic in that order. Each variable names an impact category. computed builds scores the method collection does not publish on its own, here doubling organic freshwater ecotoxicity before adding the inorganic half. normalization divides by a reference so the impact categories become comparable, weighting decides how much each one counts, and scores says which of them go into the answer.
[[methods.scoring]]
Section titled “[[methods.scoring]]”| Field | Description |
|---|---|
name | What this score is called, in results and in the interface |
unit | The unit its number carries: "Pts", "µPts PEF" |
displayMultiplier | Every value this set returns is multiplied by it, in the API response as well as on screen. Normalized and weighted scores land around 10⁻⁶, so 1e6 puts them where a reader can compare them. A client reading total is reading a number already multiplied |
variables | Short name to impact category name. The right-hand side has to match the method collection exactly, and it is where a single score most often goes wrong: a method collection exported by a different tool spells the same impact category differently |
computed | Scores built from other scores, as formulas over the names above. Evaluated before normalization |
labels | What a computed score is called when shown. Every key must be a variable or a computed score, or the configuration is refused |
normalization | Divisor per impact category |
weighting | Weight per impact category, applied after normalization |
scores | The scores this set produces, each a formula over the normalized and weighted scores. total is the conventional name |
A method collection may carry several scoring sets. The EF 3.1 method collection carries three. ECS and PEF differ in how they treat freshwater ecotoxicity and in their weights. Carbon footprint keeps only the three climate change impact categories, each weighted 1 and not normalized, so its total is the climate change total in kg CO2-eq, split by where the carbon comes from. An impact category with no weight counts zero.
Formulas in computed and scores take +, -, *, /, ^, parentheses, numbers, the functions abs, sqrt, log, ln, exp, min and max, and the variable names you defined.
The scoring sets a SimaPro method file gives
Section titled “The scoring sets a SimaPro method file gives”A SimaPro method file gives one scoring set per normalization-weighting set, named after it. Its variables are the impact categories, and each damage category of the file becomes a computed score that sums the impact categories it groups, times their coefficients; a damage that groups no impact category reads as zero. The Single score adds up what has a weight (a damage, or an impact category no damage groups), normalized as well unless the set normalizes nothing (SimaPro’s normalization switched off).
A damage’s short name is made from its name: lowercase ASCII letters and digits, each run of anything else turned into one underscore. The set’s labels and units keep the damage names and units as the file wrote them. A file with damage categories and no normalization-weighting set gives one set named Damage assessment, with no score.
Correcting factors: [[methods.patches]]
Section titled “Correcting factors: [[methods.patches]]”Sometimes the method collection as published is not the one you are asked to reproduce. A patch changes matching characterization factors as the method collection loads, so what you compute against is the corrected table and nothing downstream has to know.
[[methods]]name = "EF3.1-adapted"path = "/data/EF-adapted.csv"
[[methods.patches]] description = "uraniumFRU: -40% on Uranium factors in Resource use, fossils" match = { category = "Resource use, fossils", flow-name-prefix = "Uranium" } scale = 0.6
[[methods.patches]] description = "Long-term emissions are excluded from this version" match = { subcompartment-contains = "long-term" } set-value = 0.0| Field | Description |
|---|---|
description | Why this patch exists. The engine names the patch by it when the patch matches no factor at all, so a selector that stops matching is reported in your words rather than as a rendered selector |
match | Which factors it applies to. At least one selector is required: a patch matching everything is refused |
scale | Multiply the matched factors by this |
set-value | Replace the matched factors with this |
Exactly one of scale and set-value must be given. Both, or neither, is refused at startup rather than resolved silently.
Selectors
Section titled “Selectors”Every selector given must match, so several narrow one patch down together.
| Selector | Matches on |
|---|---|
category | The impact category’s name, exactly |
flow-name | The flow’s name, exactly |
flow-name-prefix | The start of the flow’s name, which is how a family of substances is caught at once |
cas | The flow’s CAS registry number |
subcompartment-contains | Any part of the subcompartment, which is how “long-term” is caught wherever it appears |
When a score comes out wrong
Section titled “When a score comes out wrong”Four failures account for most of it, and only the first leaves a trace:
- An impact category name that does not match.
variablesmaps a short name to an impact category spelled exactly as the method collection spells it. One name that does not match does not cost you one contribution: its score is missing from the environment, thetotalformula then fails on an unknown variable, and the whole scoring set is dropped from the answer. The only trace is a warning in the server log. A method collection exported by another tool renames impact categories, so a set written against one export loses everything against another. Compare against whatvolca methodslists. - An impact category missing from
weighting. Onlylabelskeys are checked against the variables you declared. A typo innormalizationorweightingis accepted, and an impact category with no weight is weighted zero: the score still computes, still answers, and is quietly short by that impact category’s share. - No energy densities. A factor written per MJ or per m³ cannot meet a flow measured in kilograms without a density to bridge them, and those impact categories score zero. The built-in
Default energy densitiestable bridges the usual fuels; a configuration that switched it off, or replaced it with a file that lacks the fuel, loses the impact category. See Configuration. - No geography hierarchy. A regionalized factor is found by walking from a location up to its parents. The built-in hierarchy covers the usual codes; a
geographiesfile of your own that lacks a location leaves that walk nowhere to go, and regional factors are missed.