Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CovidAlertABM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Jentsch
CovidAlertABM
Commits
cde7d0f4
Commit
cde7d0f4
authored
3 years ago
by
Peter Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
woops missed a thing
parent
273a07bf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CovidAlertVaccinationModel/src/ABM/solve.jl
+4
-2
4 additions, 2 deletions
CovidAlertVaccinationModel/src/ABM/solve.jl
timeseries.pdf
+0
-0
0 additions, 0 deletions
timeseries.pdf
with
4 additions
and
2 deletions
CovidAlertVaccinationModel/src/ABM/solve.jl
+
4
−
2
View file @
cde7d0f4
...
...
@@ -144,7 +144,6 @@ function agents_step!(t,modelsol,vaccinate_today)
u_next_inf
.=
u_inf
u_next_vac
.=
u_vac
modelsol
.
output_data
.
recorded_status_totals
[
:
,
t
+
1
]
.=
modelsol
.
output_data
.
recorded_status_totals
[
:
,
t
]
total_infected
=
modelsol
.
output_data
.
recorded_status_totals
[
Int
(
Infected
),
t
]
β_vec
=
@SVector
[
β_y
,
β_m
,
β_o
]
α_vec
=
@SVector
[
α_y
,
α_m
,
α_o
]
...
...
@@ -154,7 +153,6 @@ function agents_step!(t,modelsol,vaccinate_today)
π_base_vec
=
@SVector
[
π_base_y
*
ζ
,
π_base_m
*
ζ
,
π_base_o
*
ζ
]
end
for
(
agent
,(
agent_inf_status
,
agent_is_vaccinator
,
agent_demo
))
in
enumerate
(
zip
(
u_inf
,
u_vac
,
demographics
))
if
agent_inf_status
==
Susceptible
...
...
@@ -180,9 +178,13 @@ function agents_step!(t,modelsol,vaccinate_today)
if
immunization_countdown
[
agent
]
==
0
output_data
.
daily_immunized_by_age
[
Int
(
agent_demo
),
t
]
+=
1
fit!
(
output_data
.
avg_weighted_degree_of_vaccinators
[
Int
(
agent_demo
)],
weighted_degree_of_i
)
agent_transition!
(
t
,
modelsol
,
agent
,
Susceptible
,
Immunized
)
elseif
immunization_countdown
[
agent
]
>
0
immunization_countdown
[
agent
]
-=
1
else
fit!
(
output_data
.
avg_weighted_degree
[
Int
(
agent_demo
)],
weighted_degree_of_i
)
end
total_infected
=
modelsol
.
output_data
.
recorded_status_totals
[
Int
(
Infected
),
t
]
update_vaccination_opinion_state!
(
t
,
agent
,
modelsol
,
vaccinate_today
,
total_infected
,
π_base_vec
)
end
...
...
This diff is collapsed.
Click to expand it.
timeseries.pdf
+
0
−
0
View file @
cde7d0f4
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment