---
# System prepended metadata

title: 'Meeting Note 4/30 Param, argv Detail'
tags: [meeting note]

---

# Meeting Note 4/30 Param, argv Detail
###### tags: `meeting note`


parameter file

```
simulate_day 10
infect_start_day 1
gamma_E 2
gamma_I_pre 2
gamma_I_asym 3
gamma_I_sym 3
tau_I_pre 0.4
tau_I_asym 0.5
tau_I_sym 1
sigma_I_asym 0.3
prob_transmission 0.3 0.4 0.4 0.5 0.5 0.4 0.4 0.3 0.2 0.1
prob_death_sym 0.01 0.01 0.02 0.02 0.04 0.04 0.08 0.08 0.1 0.2
prob_immute_sym 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6
prob_immute_asym 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8
epsilon_V1 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1
epsilon_V2 1 0.95 0.9 0.85 0.8 0.75 0.7 0.65 0.6 0.55
```

- `simulation_day`
    - simulation day
- `infect_start_day`
    - range $[1,\mbox{simulation_day}]$
- `gamma`
    - duraiton of state(day)
- `tau`
    - relative infectiousness(0~1)
- `sigma_I_asym`
    - `I_pre` 完走到 `I_asys` 的比例
    - 否則走到 `I_sys`
- `epsilon_V`
    - 疫苗抵抗力
    - `epsilon_V[i]` 為第 `i` 天的
    - of length `simulation_day` (?)應該吧 待確認
- `prob_transmission`
    - prob of transmission
    - by age group
- `prob_death_sym`
    - 有症狀者的死亡率
    - by age group
- `prob_immute_sym`
    - 有症狀者的免疫率(走到 `R`)
    - by age group
    - 沒免疫也沒死的有症狀者，會走到 `F`
- `prob_immute_asym`
    - 無症狀者的免疫率(走到 `R`)
    - by age group
    - 沒免疫的無症狀者，會走到 `F`

## argv

`./main -g graph.txt -p param.txt -i init.txt -v vacc.txt -o result.csv -s DESSIR`

- `-g` `-p` `-i` `-v` `-o`
    - 同理，但 file name 不能有空格
- `-s`
    - output csv 的 setting
    - `DES`
        - daily, each age, town
        - 就各鄉鎮市區會幫你 sum 起來
            - 所以有 `simulate_day * N_ag` lines
        - time opt
            - `E` = end
                - 只要模擬完的狀態
            - `D` = Daily
            - `P`
                - 每周期
        - age opt
            - `S` = sum
            - `E` = each
        - town opt
            - `S` = sum
            - `E` = each
    - `SIR`
        - 要輸出人數的那些狀態
        - `ASVWEIJKFRD`
            - `A` = all，就各 state sum 起來
            - `S`, `E`, `R`, `D`, `F`
                - 原本那樣
            - `I`, `J`, `K`
                - infectious pre, asym, sym
            - `V`, `W`
                - first dose(w/o second dose), second dose
        - 至於想輸出變化量或還要不重複算，再說
        
        
## TODO:
- INPUT
    - [x] 改input file格式 (covid_conf)
    - [x] 把一些term跟simulation統一吧
        - conf $\rightarrow$ param 或 param $\rightarrow$ conf
        - ...
- INIT
    - [x] 改initialization (init_infectors格式有變)
    - [ ] ...
- SIM
    - [x] 改 sim.sh
    - [ ] vaccination
    - [ ] parallelization
    - [ ] 測試 ?