Repository navigation
Update references and documentation of dampings - #1597
Open
charlie0614 wants to merge 2 commits into
Open
charlie0614 wants to merge 2 commits into
charlie0614 wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1597 +/- ##
==========================================
- Coverage 97.48% 97.47% -0.02%
==========================================
Files 190 190
Lines 16033 16033
==========================================
- Hits 15630 15628 -2
- Misses 403 405 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jubicker
self-requested a review
October 29, 2026 12:02
jubicker
reviewed
Oct 29, 2026
| group-specific reductions are possible through setting particular rows or columns differently. With a constant | ||
| reduction factor :math:`r`, the reduced contact rate is :math:`(1-r) * c_{i,j}`. | ||
|
|
||
| Each ``Damping`` also has a *level* and a *type*, given as ``DampingLevel`` and ``DampingType``. You set them with ``mio::DampingLevel(level)`` and |
Member
There was a problem hiding this comment.
Suggested change
| Each ``Damping`` also has a *level* and a *type*, given as ``DampingLevel`` and ``DampingType``. You set them with ``mio::DampingLevel(level)`` and | |
| Each ``Damping`` also has a ``DampingLevel`` and ``DampingType``. They can be set via ``mio::DampingLevel(level)`` and |
| ``mio::DampingType(type)``, where ``level`` and ``type`` are integers. They control how dampings that are | ||
| active at the same time are combined: | ||
|
|
||
| - **Same level, different type:** the dampings are *added*. Use this for measures that act on separate parts of |
Member
There was a problem hiding this comment.
Suggested change
| - **Same level, different type:** the dampings are *added*. Use this for measures that act on separate parts of | |
| - **Same level, different type:** the dampings are *added*. Use this for measures that act on separate contact locations |
| active at the same time are combined: | ||
|
|
||
| - **Same level, different type:** the dampings are *added*. Use this for measures that act on separate parts of | ||
| the contacts, e.g., a school closure and an office closure. |
Member
There was a problem hiding this comment.
Suggested change
| the contacts, e.g., a school closure and an office closure. | |
| , e.g., a school closure and an office closure. |
| - **Same level, different type:** the dampings are *added*. Use this for measures that act on separate parts of | ||
| the contacts, e.g., a school closure and an office closure. | ||
| - **Different levels:** the dampings are combined *multiplicatively*. Use this for measures that act on the same | ||
| contacts, e.g., a mask mandate on top of closures. The total reduction of two levels with sums :math:`a` and |
Member
There was a problem hiding this comment.
Suggested change
| contacts, e.g., a mask mandate on top of closures. The total reduction of two levels with sums :math:`a` and | |
| contact locations, e.g., a mask mandate on top of closures. The total reduction of two levels with sums :math:`a` and |
Member
There was a problem hiding this comment.
Why "with sum"? Do you mean "with factors"?
| - **Different levels:** the dampings are combined *multiplicatively*. Use this for measures that act on the same | ||
| contacts, e.g., a mask mandate on top of closures. The total reduction of two levels with sums :math:`a` and | ||
| :math:`b` is :math:`1 - (1-a)(1-b)`. | ||
| - **Same level and same type:** the newer damping *replaces* the older one from its start time on. Use this to |
Member
There was a problem hiding this comment.
Suggested change
| - **Same level and same type:** the newer damping *replaces* the older one from its start time on. Use this to | |
| - **Same level and same type:** the newer damping *replaces* the older one from its start time point onward. Use this to |
| Then, dampings can be added as a relative factor to (partially) reduce the contacts defined by the ``ContactPatterns`` beginning at a time step ``t=30``. | ||
| Besides the coefficients and the start time, every damping has a ``level`` and a ``type``. They decide how dampings that are active at the same time are combined: | ||
|
|
||
| - **Same level, different type:** the reductions are added (e.g., measures that act on separate parts of the contacts). |
Member
There was a problem hiding this comment.
Suggested change
| - **Same level, different type:** the reductions are added (e.g., measures that act on separate parts of the contacts). | |
| - **Same level, different type:** the reductions are added (e.g., measures that act on separate contact locations). |
| - **Same level, different type:** the reductions are added (e.g., measures that act on separate parts of the contacts). | ||
| - **Different levels:** the reductions are combined multiplicatively, :math:`1 - (1-a)(1-b)` (e.g., measures that act | ||
| on top of an already existing measure). | ||
| - **Same level and type:** the newer damping replaces the older one from its start time on (e.g., to tighten or relax a measure). |
Member
There was a problem hiding this comment.
Suggested change
| - **Same level and type:** the newer damping replaces the older one from its start time on (e.g., to tighten or relax a measure). | |
| - **Same level and type:** the newer damping replaces the older one from its start time point onward (e.g., to tighten or relax a measure). |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes and Information
Please briefly list the changes (main added features, changed items, or corrected bugs) made:
If need be, add additional information and what the reviewer should look out for in particular:
Merge Request - Guideline Checklist
Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.
Checks by code author
Checks by code reviewer(s)