Margins

For every Vali, there is the option of adding a positive and a negative margin. These are always defined relative to the value of the Vali, as a percentage.

For a Vali that is not using any other Valis in its formula, the values including margin are called 'worst case' and are calculated as follows:

  • worstcase_plus = value * (1 + margin_plus / 100)

  • worstcase_minus = value * (1 - margin_minus / 100)

For Valis that do use other Valis in their formulas, the margins of these used Valis are taken into account for the worst-case calculation. Two methods of margin propagation are currently supported, as explained below.

The 'total margin' represents the resulting ratio of the worst case over the actual value. For a Vali which does not use any other Valis, the total margin is the same as the positive and negative margin defined. The calculation is as follows:

  • totalmargin_plus = (worstcase_plus / value - 1) * 100

  • totalmargin_minus = (worstcase_minus / value + 1) * 100

The margin calculation is fully compatible with the unit conversion, connected copies, modes and other Requirement Portal features.

Margin Propagation

Margin propagation between Valis that are using other Valis is done using the absolute worst-case propagation approach.

Absolute Worst-case Propagation

The absolute worst-case propagation evaluates the formula with the worst-case values of all the Valis it uses and adds the margin of the Vali itself. For negative operations in the formula, such as subtraction and division, the worst negative value is used to achieve the absolute worst case. If the same Vali is used multiple times in the same formula, the different cases are evaluated and compared to avoid overly extreme calculations (e.g., using worst-case plus in the numerator and worst-case minus in the denominator).

As an example, consider a simple substraction between two Valis.

Vali Name Formula Value Margin Plus Margin Minus Total Margin Plus Total Margin Minus Worst Case Plus Worst Case Minus
a 10 10 10% 10% 10% -10% 11 9
b 5 5 20% 0% 20% 0% 6 5
c a - b 5 10% 10% 32% -46% (11 - 5) * 1.1 = 6.6 (9 - 6) * 0.9 = 2.7

Note that the only margins you have control over are the Margin Plus and Margin Minus. The rest is calculated by Requirements Portal. Margins can be inserted either in the table view or on the info panel of a selected Vali.

Margins for Valis – margins and their propagation to Total Margin and Worstcase (plus and minus, respectively).
Margins for Valis – margins and their propagation to Total Margin and Worstcase (plus and minus, respectively).

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
Feature Availability

The features available to you depend on which Altium solution you have – Altium Develop, an edition of Altium Agile (Agile Teams or Agile Enterprise), or Altium Designer (on active term).

If you don’t see a discussed feature in your software, contact Altium Sales to find out more.

Content