Ippolito_2024_pacmilimab_qsp <- function() {
  description <- paste(
    "QSP. Quantitative systems pharmacology model of immuno-oncology (QSP-IO)",
    "describing the antitumour immune response to pacmilimab, a conditionally",
    "activated (Probody) anti-PD-L1 antibody, in triple-negative breast cancer.",
    "Four physiological compartments (central, peripheral, tumour, tumour-draining",
    "lymph node) plus APC endosomal and surface compartments, three",
    "immunological-synapse compartments (T cell-cancer cell, T cell-APC,",
    "macrophage-cancer cell) and four out-of-synapse compartments introduced by",
    "this paper (cancer cell, T cell, macrophage, APC). Covers Gompertzian",
    "tumour growth with explicit tumour vasculature, naive and activated",
    "CD4+/CD8+ T cell trafficking and proliferation, self- and neo-antigen",
    "release, uptake, endosomal processing and MHC-I presentation, TCR-mediated",
    "activation, PD-1/PD-L1/PD-L2 and CTLA-4/CD28/CD80/CD86 checkpoint binding,",
    "MDSC recruitment with arginase-I and nitric-oxide suppression, M1/M2",
    "tumour-associated macrophages with CD47/SIRP-alpha phagocytosis control, and",
    "IL-2 / IL-10 / IL-12 / IFN-gamma / TGF-beta / CCL2 dynamics. The Probody",
    "module carries six free states per compartment (masked, open and cleaved",
    "combinations of the two active sites) with reversible unmasking and",
    "irreversible protease cleavage, plus nine mono- and bivalently bound states",
    "at each of nine PD-L1 bearing sites. Dosing the fully masked state P_mm",
    "gives pacmilimab; dosing the fully cleaved state P_cc gives the unmasked",
    "anti-PD-L1 antibody (equivalent to atezolizumab monotherapy), which is how",
    "the paper simulates its reference arm. Deterministic mechanism model: the",
    "authors generated virtual patients by Latin hypercube sampling of the",
    "distributions in Supplementary Table S1 rather than by fitting IIV or",
    "residual error, so no etas and no error model are encoded.",
    sep = " "
  )
  reference <- paste(
    "Ippolito A, Wang H, Zhang Yu, Vakil V, Bazzazi H, Popel AS. Eliciting the",
    "antitumor immune response with a conditionally activated PD-L1 targeting",
    "antibody analyzed with a quantitative systems pharmacology model. CPT",
    "Pharmacometrics Syst Pharmacol. 2024;13(1):93-105. doi:10.1002/psp4.13060.",
    "Structure of the inherited QSP-IO platform from the SimBiology export in",
    "Wang H, Zhao C, Santa-Maria CA, Emens LA, Popel AS. Dynamics of",
    "tumor-associated macrophages in a quantitative systems pharmacology model of",
    "immunotherapy in triple-negative breast cancer. iScience.",
    "2022;25(8):104702. doi:10.1016/j.isci.2022.104702.",
    sep = " "
  )
  vignette <- "Ippolito_2024_pacmilimab_qsp"

  units <- list(
    time          = "day",
    dosing        = "nmol",
    concentration = "nmol/L"
  )

  covariateData <- list()

  population <- list(
    species       = "human (in silico virtual cohort)",
    n_subjects    = 10000L,
    disease_state = "triple-negative breast cancer",
    dose_range    = paste(
      "Pacmilimab 10 mg/kg every 2 weeks for 400 days is the reference regimen",
      "(the schedule selected in the phase I trial); the paper additionally",
      "explores 1, 3, 10 and 15 mg/kg at q1w, q2w, q3w and q4w, and single doses",
      "of 0.1, 0.3, 1, 3 and 10 mg/kg for the PK calibration.",
      sep = " "
    ),
    notes = paste(
      "Virtual cohort of 10,000 patients generated by Latin hypercube sampling of",
      "the 29 parameter distributions in Supplementary Table S1, then pruned to",
      "plausible patients. Each patient is grown from a small cancer-cell",
      "population to the pre-treatment tumour size before dosing starts. The",
      "clinical anchors are the pacmilimab phase I trial (16 patients with TNBC,",
      "objective response rate 7%) and the single-dose PK of Stroh 2021.",
      sep = " "
    )
  )
  ini({
    # ---- compartment capacities (Wang 2022 Table S6) ----
    vol_V_C <- fixed(5); label("Capacity of compartment V_C [liter]")  # Wang 2022 Table S6 (V_C = 5 liter)
    vol_V_P <- fixed(60); label("Capacity of compartment V_P [liter]")  # Wang 2022 Table S6 (V_P = 60 liter)
    vol_V_LN <- fixed(0.00111264739815); label("Capacity of compartment V_LN [millimeter^3]")  # Wang 2022 Table S6 (V_LN = 1112.64739814639 millimeter^3)
    vol_V_e <- fixed(4e-16); label("Capacity of compartment V_e [litre]")  # Wang 2022 Table S6 (V_e = 4e-16 litre)
    vol_A_e <- fixed(1.5e-09); label("Capacity of compartment A_e [micrometer^2]")  # Wang 2022 Table S6 (A_e = 15 micrometer^2)
    vol_A_s <- fixed(9e-08); label("Capacity of compartment A_s [micrometer^2]")  # Wang 2022 Table S6 (A_s = 900 micrometer^2)
    vol_syn_T_C1 <- fixed(3.78e-09); label("Capacity of compartment syn_T_C1 [micrometer^2]")  # Wang 2022 Table S6 (syn_T_C1 = 37.8 micrometer^2)
    vol_syn_T_APC <- fixed(3.78e-09); label("Capacity of compartment syn_T_APC [micrometer^2]")  # Wang 2022 Table S6 (syn_T_APC = 37.8 micrometer^2)
    vol_syn_M_C <- fixed(3.78e-09); label("Capacity of compartment syn_M_C [micrometer^2]")  # Wang 2022 Table S6 (syn_M_C = 37.8 micrometer^2)

    NAVG_nmol <- fixed(6.0221409e+14); label("Avogadro constant (molecule/nmol)")  # physical constant; bridges the nanomole-denominated rate constants to the molecule-denominated surface densities

    k_cell_clear <- fixed(0.1); label("Rate of dead cell clearance from tumour compartment (estimated) [1/day]")  # Ippolito Table S2 (k_cell_clear = 0.1 1/day)
    cell <- fixed(1); label("unit parameter for calculation [cell]")  # Ippolito Table S2 (cell = 1 cell)
    day <- fixed(1); label("unit parameter for calculation [day]")  # Ippolito Table S2 (day = 1 day)
    vol_cell <- fixed(2.57244078451e-12); label("Average volume of cancer cell Volume of a cancer cell calculated based on cancer cell... [micrometer^3/cell]")  # Ippolito Table S2 (vol_cell = 2572.44078451444 micrometer^3/cell)
    vol_Tcell <- fixed(1.750157098e-13); label("Average volume of T cells Volume of a T cell calculated based on the average T cell d... [micrometer^3/cell]")  # Ippolito Table S2 (vol_Tcell = 175.015709799539 micrometer^3/cell)
    Ve_T <- fixed(0.37); label("Void fraction of the tumor (Finley 2012, PMID: 22547351) [dimensionless]")  # Ippolito Table S2 (Ve_T = 0.37 dimensionless)
    k_C1_growth <- fixed(0.0075); label("Cancer cell growth rate (Ryu 2014, PMID: 24895040; Desai 2006, PMID: 16489089) [1/day]")  # Ippolito Table S2 (k_C1_growth = 0.0075 1/day)
    k_K_g <- fixed(3.9); label("Tumour vasculature growth rate (Desai 2006, PMID: 16489089) [1/day]")  # Ippolito Table S2 (k_K_g = 3.9 1/day)
    k_K_d <- fixed(0.0023); label("Tumour vasculature inhibition rate (Desai 2006, PMID: 16489089; Hahnfeldt 1999, PMID:... [1/day]")  # Ippolito Table S2 (k_K_d = 0.0023 1/day)
    k_vas_Csec <- fixed(0.00011); label("Secretion rate of angiogenic factors by cancer cells (Volk 2008, PMID: 18516298) [picogram/cell/day]")  # Ippolito Table S2 (k_vas_Csec = 0.00011 picogram/cell/day)
    k_vas_deg <- fixed(16.6); label("Degradation rate of angiogenic factors (Finley 2011, PMID: 22104283) [1/day]")  # Ippolito Table S2 (k_vas_deg = 16.6 1/day)
    c_vas_50 <- fixed(839000); label("Half-maximal conc. of angiogenic factor on tumor capacity growth (Desai 2006, PMID: 1... [picogram/milliliter]")  # Ippolito Table S2 (c_vas_50 = 839 picogram/milliliter)
    k_C1_death <- fixed(1e-04); label("Cancer cell death rate from innate immune cells (Palsson 2013, PMID: 24074340) [1/day]")  # Ippolito Table S2 (k_C1_death = 1e-04 1/day)
    k_C1_therapy <- fixed(0); label("Rate of C1 killing by therapy [1/day]")  # Ippolito Table S2 (k_C1_therapy = 0 1/day)
    initial_tumour_diameter <- fixed(2.5); label("Pre-treatment tumor diameter [centimeter]")  # Ippolito Table S2 (initial_tumour_diameter = 2.5 centimeter)
    k_C2_therapy <- fixed(0); label("Rate of C2 killing by therapy [1/day]")  # Ippolito Table S2 (k_C2_therapy = 0 1/day)
    div_T0 <- fixed(1160000); label("T Cell Diversity (Robins 2009, PMID: 19706884) [dimensionless]")  # Ippolito Table S2 (div_T0 = 1160000 dimensionless)
    n_T0_clones <- fixed(80); label("Number of T cell clones (estimated) [dimensionless]")  # Ippolito Table S2 (n_T0_clones = 80 dimensionless)
    q_nT0_LN_in <- fixed(0.1); label("Rate of naive T cell transport into the LN  calculated based on the steady-state naiv... [1/day]")  # Ippolito Table S2 (q_nT0_LN_in = 0.1 1/day)
    q_T0_LN_out <- fixed(24); label("Rate of activated T cell transport out of the LN (De Boer and Perelson 1995, PMID: 74... [1/day]")  # Ippolito Table S2 (q_T0_LN_out = 24 1/day)
    q_nT0_LN_out <- fixed(2.88); label("Rate of naive T cell transport out of the LN (Mandl 2012, PMID: 23071319) [1/day]")  # Ippolito Table S2 (q_nT0_LN_out = 2.88 1/day)
    k_T0_act <- fixed(5); label("T0 activation rate (De Boer and Perelson 1995, PMID: 7475092; Robertson-Tessi 2012, P... [1/day]")  # Ippolito Table S2 (k_T0_act = 5 1/day)
    k_T0_pro <- fixed(1); label("T0 proliferation rate (Marchingo 2014, PMID: 25430770) [1/day]")  # Ippolito Table S2 (k_T0_pro = 1 1/day)
    k_T0_death <- fixed(0.01); label("T0 death rate (De Boer and Perelson 1995, PMID: 7475092) [1/day]")  # Ippolito Table S2 (k_T0_death = 0.01 1/day)
    q_T0_P_in <- fixed(3507.84); label("rate of T0 transport into the peripheral compartment calculated based on T cell trans... [1/minute]")  # Ippolito Table S2 (q_T0_P_in = 2.436 1/minute)
    q_T0_P_out <- fixed(24); label("rate of T0 transport out of the peripheral compartment (De Boer and Perelson 1995, PM... [1/day]")  # Ippolito Table S2 (q_T0_P_out = 24 1/day)
    q_T0_T_in <- fixed(83.52); label("rate of T0 transport into the tumor compartment calculated based on T cell transmigra... [1/(centimeter^3*minute)]")  # Ippolito Table S2 (q_T0_T_in = 5.8e-05 1/(centimeter^3*minute))
    q_nT0_P_in <- fixed(254.016); label("rate of nT0 transport into the peripheral compartment calculated based on T cell tran... [1/minute]")  # Ippolito Table S2 (q_nT0_P_in = 0.1764 1/minute)
    q_nT0_P_out <- fixed(5.1); label("rate of nT0 transport out of the peripheral compartment  calculated based on steady-s... [1/day]")  # Ippolito Table S2 (q_nT0_P_out = 5.1 1/day)
    Q_nT0_thym <- fixed(7e+07); label("Thymic output of nT0 (Bains 2009, PMID: 19179300; Yeh 2017, PMID: 28912973) [cell/day]")  # Ippolito Table S2 (Q_nT0_thym = 7e+07 cell/day)
    k_nT0_pro <- fixed(3.2e+08); label("rate of nT0 proliferation (Braber 2012, PMID: 22365666) [cell/day]")  # Ippolito Table S2 (k_nT0_pro = 3.2e+08 cell/day)
    K_nT0_pro <- fixed(1e+09); label("half-maximal peripheral proliferation of of nT0 (Braber 2012, PMID: 22365666) [cell]")  # Ippolito Table S2 (K_nT0_pro = 1e+09 cell)
    k_nT0_death <- fixed(0.002); label("rate of nT0 death (Braber 2012, PMID: 22365666) [1/day]")  # Ippolito Table S2 (k_nT0_death = 0.002 1/day)
    k_IL2_deg <- fixed(288); label("rate of IL2 degradation (Lotze 1985, PMID: 3871099) [1/minute]")  # Ippolito Table S2 (k_IL2_deg = 0.2 1/minute)
    k_IL2_cons <- fixed(0.000144); label("rate of IL2 consumption by T cells (Lotze 1985, PMID: 3871099) [nanomole/cell/h]")  # Ippolito Table S2 (k_IL2_cons = 6e-06 nanomole/cell/h)
    k_IL2_sec <- fixed(0.00072); label("rate of IL2 secretion from T cells (Han 2012, PMID: 22160692; Thurley 2015, PMID: 259... [nanomole/cell/h]")  # Ippolito Table S2 (k_IL2_sec = 3e-05 nanomole/cell/h)
    IL2_50 <- fixed(0.32); label("T cell activation half-maximal IL2 concentration (Marchingo 2014, PMID: 25430770) [nanomolarity]")  # Ippolito Table S2 (IL2_50 = 0.32 nanomolarity)
    IL2_50_Treg <- fixed(0.32); label("Treg activation half-maximal IL2 concentration (Wang and Smith 1987, PMID: 3116143) [nanomolarity]")  # Ippolito Table S2 (IL2_50_Treg = 0.32 nanomolarity)
    N0 <- fixed(2); label("numer of activated T cell generation by TCR signaling only(Marchingo 2014, PMID: 2543... [dimensionless]")  # Ippolito Table S2 (N0 = 2 dimensionless)
    N_costim <- fixed(3); label("numer of activated T cell generation by co-stimulatory signaling only (Marchingo 2014... [dimensionless]")  # Ippolito Table S2 (N_costim = 3 dimensionless)
    N_IL2_CD8 <- fixed(11); label("maximum number of activated T cell generations due to IL2 (Marchingo 2014, PMID: 2543... [dimensionless]")  # Ippolito Table S2 (N_IL2_CD8 = 11 dimensionless)
    N_IL2_CD4 <- fixed(8.5); label("maximum number of activated T cell generations due to IL2 (Marchingo 2014, PMID: 2543... [dimensionless]")  # Ippolito Table S2 (N_IL2_CD4 = 8.5 dimensionless)
    k_Treg <- fixed(0.1); label("Rate of T cell death by Tregs (estimated) [1/day]")  # Ippolito Table S2 (k_Treg = 0.1 1/day)
    div_T1 <- fixed(1110000); label("T Cell Diversity (Robins 2009, PMID: 19706884) [dimensionless]")  # Ippolito Table S2 (div_T1 = 1110000 dimensionless)
    n_T1_clones <- fixed(63); label("Number of T cell clones (Li 2016, PMID: 27240091; Narang 2019, PMID: 30832597) [dimensionless]")  # Ippolito Table S2 (n_T1_clones = 63 dimensionless)
    q_nT1_LN_in <- fixed(0.076); label("Rate of naive T cell transport into the LN  calculated based on the steady-state naiv... [1/day]")  # Ippolito Table S2 (q_nT1_LN_in = 0.076 1/day)
    q_T1_LN_out <- fixed(24); label("Rate of activated T cell transport out of the LN (De Boer and Perelson 1995, PMID: 74... [1/day]")  # Ippolito Table S2 (q_T1_LN_out = 24 1/day)
    q_nT1_LN_out <- fixed(1.8); label("Rate of naive T cell transport out of the LN (Mandl 2012, PMID: 23071319) [1/day]")  # Ippolito Table S2 (q_nT1_LN_out = 1.8 1/day)
    k_T1_act <- fixed(23); label("T1 activation rate (De Boer and Perelson 1995, PMID: 7475092; Robertson-Tessi 2012, P... [1/day]")  # Ippolito Table S2 (k_T1_act = 23 1/day)
    k_T1_pro <- fixed(1); label("T1 proliferation rate (Marchingo 2014, PMID: 25430770) [1/day]")  # Ippolito Table S2 (k_T1_pro = 1 1/day)
    k_T1_death <- fixed(0.01); label("T1 death rate (De Boer and Perelson 1995, PMID: 7475092) [1/day]")  # Ippolito Table S2 (k_T1_death = 0.01 1/day)
    q_T1_P_in <- fixed(3507.84); label("rate of T1 transport into the peripheral compartment calculated based on T cell trans... [1/minute]")  # Ippolito Table S2 (q_T1_P_in = 2.436 1/minute)
    q_T1_P_out <- fixed(24); label("rate of T1 transport out of the peripheral compartment (De Boer and Perelson 1995, PM... [1/day]")  # Ippolito Table S2 (q_T1_P_out = 24 1/day)
    q_T1_T_in <- fixed(83.52); label("rate of T1 transport into the tumor compartment calculated based on T cell transmigra... [1/(centimeter^3*minute)]")  # Ippolito Table S2 (q_T1_T_in = 5.8e-05 1/(centimeter^3*minute))
    q_nT1_P_in <- fixed(254.016); label("rate of nT1 transport into the peripheral compartment calculated based on T cell tran... [1/minute]")  # Ippolito Table S2 (q_nT1_P_in = 0.1764 1/minute)
    q_nT1_P_out <- fixed(5.1); label("rate of nT1 transport out of the peripheral compartment  calculated based on steady-s... [1/day]")  # Ippolito Table S2 (q_nT1_P_out = 5.1 1/day)
    Q_nT1_thym <- fixed(3.5e+07); label("Thymic output of nT1 (Bains 2009, PMID: 19179300; Ye 2002, PMID: 11994448) [cell/day]")  # Ippolito Table S2 (Q_nT1_thym = 3.5e+07 cell/day)
    k_nT1_pro <- fixed(3.2e+08); label("rate of nT1 proliferation (Braber 2012, PMID: 22365666) [cell/day]")  # Ippolito Table S2 (k_nT1_pro = 3.2e+08 cell/day)
    K_nT1_pro <- fixed(1e+09); label("half-maximal peripheral proliferation of of nT1 (Braber 2012, PMID: 22365666) [cell]")  # Ippolito Table S2 (K_nT1_pro = 1e+09 cell)
    k_nT1_death <- fixed(0.002); label("rate of nT1 death (Braber 2012, PMID: 22365666) [1/day]")  # Ippolito Table S2 (k_nT1_death = 0.002 1/day)
    k_T1 <- fixed(0.1); label("Rate of T cell exhaustion by cancer cells (estimated) [1/day]")  # Ippolito Table S2 (k_T1 = 0.1 1/day)
    k_C_T1 <- fixed(0.9); label("Rate of cancer cell death by T cells (Robertson-Tessi 2012, PMID: 22051568) [1/day]")  # Ippolito Table S2 (k_C_T1 = 0.9 1/day)
    K_T_C <- fixed(1.2); label("Dependence of Teff killing rate on Teff/C ratio (Robertson-Tessi 2012, PMID: 22051568) [dimensionless]")  # Ippolito Table S2 (K_T_C = 1.2 dimensionless)
    K_T_Treg <- fixed(11); label("Dependence of Teff killing rate on Teff/Treg ratio (Robertson-Tessi 2012, PMID: 22051... [dimensionless]")  # Ippolito Table S2 (K_T_Treg = 11 dimensionless)
    k_APC_mat <- fixed(1.5); label("Maximum rate of APC maturation (Chen 2014, PMID: 25184733) [1/day]")  # Ippolito Table S2 (k_APC_mat = 1.5 1/day)
    k_APC_mig <- fixed(4); label("Rate of APC migration (Russo Halin 2016, PMID: 26876174) [1/day]")  # Ippolito Table S2 (k_APC_mig = 4 1/day)
    k_APC_death <- fixed(0.01); label("Rate of APC death (Marino and Kirschner 2004, PMID: 15038983) [1/day]")  # Ippolito Table S2 (k_APC_death = 0.01 1/day)
    k_mAPC_death <- fixed(0.02); label("Rate of mAPC death(Marino and Kirschner 2004, PMID: 15038983) [1/day]")  # Ippolito Table S2 (k_mAPC_death = 0.02 1/day)
    APC0_T <- fixed(4e+08); label("Steady state density of CD103+ APCs in the tumor, calculated to fit basal APC equal t... [cell/milliliter]")  # Ippolito Table S2 (APC0_T = 4e+05 cell/milliliter)
    APC0_LN <- fixed(1.2e+09); label("Steady state density of all APC subtypes in the LN (Catron 2004, PMID: 15357945)- div... [cell/milliliter]")  # Ippolito Table S2 (APC0_LN = 1200000 cell/milliliter)
    k_c <- fixed(2); label("Cytokine rate constant (Chen 2014, PMID: 25184733) [1/day]")  # Ippolito Table S2 (k_c = 2 1/day)
    c0 <- fixed(1); label("Baseline cytokine concentration (Chen 2014, PMID: 25184733) [molarity]")  # Ippolito Table S2 (c0 = 1e-09 molarity)
    c50 <- fixed(1); label("Cytokine concentration for half-maximal APC maturation (Chen 2014, PMID: 25184733) [molarity]")  # Ippolito Table S2 (c50 = 1e-09 molarity)
    DAMPs <- fixed(1.34e-05); label("Concentration of cytokines released per dying cancer cell (Milo 2013, PMID: 24114984,... [mole/cell]")  # Ippolito Table S2 (DAMPs = 1.34e-14 mole/cell)
    n_sites_APC <- fixed(10); label("Maxium number of T Cells an APC can interact with (De Boer and Perelson 1995, PMID: 7... [dimensionless]")  # Ippolito Table S2 (n_sites_APC = 10 dimensionless)
    kin <- fixed(14.4); label("Rate of MHC internalization (Chen 2014, PMID: 25184733) [1/day]")  # Ippolito Table S2 (kin = 14.4 1/day)
    kout <- fixed(28.8); label("Rate of MHC externalization (Chen 2014, PMID: 25184733) [1/day]")  # Ippolito Table S2 (kout = 28.8 1/day)
    k_P0_up <- fixed(14.4); label("Rate of antigen uptake by APCs (Chen 2014, PMID: 25184733) [1/day/cell]")  # Ippolito Table S2 (k_P0_up = 14.4 1/day/cell)
    k_xP0_deg <- fixed(2); label("Rate of extracellular antigen degradation (Palsson 2013, PMID: 24074340) [1/day]")  # Ippolito Table S2 (k_xP0_deg = 2 1/day)
    k_P0_deg <- fixed(17.28); label("Rate of endosomal antigen degradation (Chen 2014, PMID: 25184733) [1/day]")  # Ippolito Table S2 (k_P0_deg = 17.28 1/day)
    k_p0_deg <- fixed(144); label("Rate of endosomal epitope degradation (Chen 2014, PMID: 25184733) [1/day]")  # Ippolito Table S2 (k_p0_deg = 144 1/day)
    k_P0_on <- fixed(0.000144); label("Rate of antigen-MHC binding (Agrawal and Linderman 1996, PMID: 8944895) [1/day/molarity]")  # Ippolito Table S2 (k_P0_on = 144000 1/day/molarity)
    k_P0_d1 <- fixed(100); label("Antigen-MHC kd (Stone 2015, PMID: 25618219) [molarity]")  # Ippolito Table S2 (k_P0_d1 = 1e-07 molarity)
    p0_50 <- fixed(264550.26455); label("calculated based on the number of molecules for half-maximal T cell activation (Kimac... [molecule/micrometer^2]")  # Ippolito Table S2 (p0_50 = 2.64550264550265e-05 molecule/micrometer^2)
    P0_C1 <- fixed(0.00054); label("Concentration of P0 in C1 (estimated by 2.7e6 proteins/um^3 in a cancer cell (Milo 20... [mole/cell]")  # Ippolito Table S2 (P0_C1 = 5.4e-13 mole/cell)
    P0_C2 <- fixed(0.00054); label("Concentration of P0 in C2 (estimated by 2.7e6 proteins/um^3 in a cancer cell (Milo 20... [mole/cell]")  # Ippolito Table S2 (P0_C2 = 5.4e-13 mole/cell)
    A_syn <- fixed(3.78e-09); label("Surface area of the synapse (Jansson 2005, PMID: 16034096) [micrometer^2]")  # Ippolito Table S2 (A_syn = 37.8 micrometer^2)
    A_Tcell <- fixed(1.5131041193e-08); label("Surface area of the T cell calculated based on the average T cell diameter (Chapman 1... [micrometer^2]")  # Ippolito Table S2 (A_Tcell = 151.310411930437 micrometer^2)
    A_cell <- fixed(9.07920276887e-08); label("Surface area of the Cancer cell calculated based on the average cancer cell diameter ... [micrometer^2]")  # Ippolito Table S2 (A_cell = 907.92027688745 micrometer^2)
    A_APC <- fixed(9e-08); label("Surface area of the APC (Agrawal and Linderman 1996, PMID: 8944895) [micrometer^2]")  # Ippolito Table S2 (A_APC = 900 micrometer^2)
    k_M1p0_TCR_on <- fixed(8.64e-06); label("Rate of TCR binding to MHC-peptide complex (Lever 2014, PMID: 25145757) [1/(second*molecule/micrometer^2)]")  # Ippolito Table S2 (k_M1p0_TCR_on = 1 1/(second*molecule/micrometer^2))
    k_M1p0_TCR_off <- fixed(86400); label("Rate of TCR unbinding from MHC-peptide complex (Lever 2014, PMID: 25145757) [1/second]")  # Ippolito Table S2 (k_M1p0_TCR_off = 1 1/second)
    k_M1p0_TCR_p <- fixed(86400); label("Rate of MHC-peptide-TCR complex modification (Lever 2014, PMID: 25145757) [1/second]")  # Ippolito Table S2 (k_M1p0_TCR_p = 1 1/second)
    phi_M1p0_TCR <- fixed(7776); label("Rate of MHC-peptide-TCR complex with maximal modification that leads to non-signaling... [1/second]")  # Ippolito Table S2 (phi_M1p0_TCR = 0.09 1/second)
    N_M1p0_TCR <- fixed(10); label("Number of modifcation steps for MHC-peptide-TCR complex (Lever 2014, PMID: 25145757) [dimensionless]")  # Ippolito Table S2 (N_M1p0_TCR = 10 dimensionless)
    TCR_p0_tot <- fixed(1038130806704); label("Total number of TCR molecules per naive T cell calculated based on the number of mole... [molecule/micrometer^2]")  # Ippolito Table S2 (TCR_p0_tot = 103.813080670361 molecule/micrometer^2)
    k_P1_up <- fixed(14.4); label("Rate of antigen uptake by APCs (Chen 2014, PMID: 25184733) [1/day/cell]")  # Ippolito Table S2 (k_P1_up = 14.4 1/day/cell)
    k_xP1_deg <- fixed(2); label("Rate of extracellular antigen degradation (Palsson 2013, PMID: 24074340) [1/day]")  # Ippolito Table S2 (k_xP1_deg = 2 1/day)
    k_P1_deg <- fixed(17.28); label("Rate of endosomal antigen degradation (Chen 2014, PMID: 25184733) [1/day]")  # Ippolito Table S2 (k_P1_deg = 17.28 1/day)
    k_p1_deg <- fixed(144); label("Rate of endosomal epitope degradation (Chen 2014, PMID: 25184733) [1/day]")  # Ippolito Table S2 (k_p1_deg = 144 1/day)
    k_P1_on <- fixed(0.000144); label("Rate of antigen-MHC binding (Agrawal and Linderman 1996, PMID: 8944895) [1/day/molarity]")  # Ippolito Table S2 (k_P1_on = 144000 1/day/molarity)
    k_P1_d1 <- fixed(10); label("Antigen-MHC kd (Stone 2015, PMID: 25618219) [molarity]")  # Ippolito Table S2 (k_P1_d1 = 1e-08 molarity)
    p1_50 <- fixed(264550.26455); label("calculated based on the number of molecules for half-maximal T cell activation (Kimac... [molecule/micrometer^2]")  # Ippolito Table S2 (p1_50 = 2.64550264550265e-05 molecule/micrometer^2)
    P1_C1 <- fixed(0.00054); label("Concentration of P1 in C1 (estimated by 2.7e6 proteins/um^3 in a cancer cell (Milo 20... [mole/cell]")  # Ippolito Table S2 (P1_C1 = 5.4e-13 mole/cell)
    P1_C2 <- fixed(0.00054); label("Concentration of P1 in C2 (estimated by 2.7e6 proteins/um^3 in a cancer cell (Milo 20... [mole/cell]")  # Ippolito Table S2 (P1_C2 = 5.4e-13 mole/cell)
    k_M1p1_TCR_on <- fixed(8.64e-06); label("Rate of TCR binding to MHC-peptide complex (Lever 2014, PMID: 25145757) [1/(second*molecule/micrometer^2)]")  # Ippolito Table S2 (k_M1p1_TCR_on = 1 1/(second*molecule/micrometer^2))
    k_M1p1_TCR_off <- fixed(86400); label("Rate of TCR unbinding from MHC-peptide complex (Lever 2014, PMID: 25145757) [1/second]")  # Ippolito Table S2 (k_M1p1_TCR_off = 1 1/second)
    k_M1p1_TCR_p <- fixed(86400); label("Rate of MHC-peptide-TCR complex modification (Lever 2014, PMID: 25145757) [1/second]")  # Ippolito Table S2 (k_M1p1_TCR_p = 1 1/second)
    phi_M1p1_TCR <- fixed(7776); label("Rate of MHC-peptide-TCR complex with maximal modification that leads to non-signaling... [1/second]")  # Ippolito Table S2 (phi_M1p1_TCR = 0.09 1/second)
    N_M1p1_TCR <- fixed(10); label("Number of modifcation steps for MHC-peptide-TCR complex (Lever 2014, PMID: 25145757) [dimensionless]")  # Ippolito Table S2 (N_M1p1_TCR = 10 dimensionless)
    TCR_p1_tot <- fixed(1038130806704); label("Total number of TCR molecules per naive T cell calculated based on the number of mole... [molecule/micrometer^2]")  # Ippolito Table S2 (TCR_p1_tot = 103.813080670361 molecule/micrometer^2)
    kon_PD1_PDL1 <- fixed(5.04e+08); label("kon of PD1-PDL1 binding kon for PD1-PDL1 (Cheng 2013, PMID: 23417675) [1/(micromolarity*nanometer*second)]")  # Ippolito Table S2 (kon_PD1_PDL1 = 0.0583333333333333 1/(micromolarity*nanometer*second))
    q_P_aPD1 <- fixed(0.791424); label("Volumetric flow rate of aPD1 between central and peripheral compartment(Ahamadi 2016,... [liter/second]")  # Ippolito Table S2 (q_P_aPD1 = 9.16e-06 liter/second)
    q_T_aPD1 <- fixed(0.00736128); label("Volumetric flow rate of aPD1 between central and tumor compartment(Wang 2019, PMID: 3... [milliliter/second]")  # Ippolito Table S2 (q_T_aPD1 = 8.52e-05 milliliter/second)
    q_LN_aPD1 <- fixed(0.0002808); label("Volumetric flow rate of aPD1 between central and TDLN compartment(Meijer 2017, PMID: ... [milliliter/second]")  # Ippolito Table S2 (q_LN_aPD1 = 3.25e-06 milliliter/second)
    q_LD_aPD1 <- fixed(2.16); label("Rate of lymphatic drainage of aPD1 from TDLN to central compartment(Zhu 1996, PMID: 8... [1/minute]")  # Ippolito Table S2 (q_LD_aPD1 = 0.0015 1/minute)
    k_cl_aPD1 <- fixed(0.315); label("Clearance rate of aPD1 from central compartment(Ahamadi 2016, PMID: 27863186) [liter/day]")  # Ippolito Table S2 (k_cl_aPD1 = 0.315 liter/day)
    gamma_C_aPD1 <- fixed(0.698); label("Volume fraction of interstitial space available to aPD1 in central compartment(Ahamad... [dimensionless]")  # Ippolito Table S2 (gamma_C_aPD1 = 0.698 dimensionless)
    gamma_P_aPD1 <- fixed(0.0789); label("Volume fraction of interstitial space available to aPD1 in peripheral compartment(Aha... [dimensionless]")  # Ippolito Table S2 (gamma_P_aPD1 = 0.0789 dimensionless)
    gamma_T_aPD1 <- fixed(0.522); label("Volume fraction of interstitial space available to aPD1 in tumor compartment(Coughlin... [dimensionless]")  # Ippolito Table S2 (gamma_T_aPD1 = 0.522 dimensionless)
    gamma_LN_aPD1 <- fixed(0.2); label("Volume fraction of interstitial space available to aPD1 in TDLN compartment(Wang 2019... [dimensionless]")  # Ippolito Table S2 (gamma_LN_aPD1 = 0.2 dimensionless)
    q_P_aPDL1 <- fixed(0.75168); label("Volumetric flow rate of aPDL1 between central and peripheral compartment(Stroh 2017, ... [liter/second]")  # Ippolito Table S2 (q_P_aPDL1 = 8.7e-06 liter/second)
    q_T_aPDL1 <- fixed(0.00736128); label("Volumetric flow rate of aPDL1 between central and tumor compartment(Wang 2019, PMID: ... [milliliter/second]")  # Ippolito Table S2 (q_T_aPDL1 = 8.52e-05 milliliter/second)
    q_LN_aPDL1 <- fixed(0.0002808); label("Volumetric flow rate of aPDL1 between central and TDLN compartment(Meijer 2017, PMID:... [milliliter/second]")  # Ippolito Table S2 (q_LN_aPDL1 = 3.25e-06 milliliter/second)
    q_LD_aPDL1 <- fixed(2.16); label("Rate of lymphatic drainage of aPDL1 from TDLN to central compartment(Zhu 1996, PMID: ... [1/minute]")  # Ippolito Table S2 (q_LD_aPDL1 = 0.0015 1/minute)
    k_cl_aPDL1 <- fixed(0.324); label("Clearance rate of aPDL1 from central compartment(Stroh 2017, PMID: 27981577) [liter/day]")  # Ippolito Table S2 (k_cl_aPDL1 = 0.324 liter/day)
    gamma_C_aPDL1 <- fixed(0.61); label("Volume fraction of interstitial space available to aPDL1 in central compartment(Stroh... [dimensionless]")  # Ippolito Table S2 (gamma_C_aPDL1 = 0.61 dimensionless)
    gamma_P_aPDL1 <- fixed(0.068); label("Volume fraction of interstitial space available to aPDL1 in peripheral compartment(St... [dimensionless]")  # Ippolito Table S2 (gamma_P_aPDL1 = 0.068 dimensionless)
    gamma_T_aPDL1 <- fixed(0.522); label("Volume fraction of interstitial space available to aPDL1 in tumor compartment(Coughli... [dimensionless]")  # Ippolito Table S2 (gamma_T_aPDL1 = 0.522 dimensionless)
    gamma_LN_aPDL1 <- fixed(0.2); label("Volume fraction of interstitial space available to aPDL1 in TDLN compartment(Wang 201... [dimensionless]")  # Ippolito Table S2 (gamma_LN_aPDL1 = 0.2 dimensionless)
    q_P_aCTLA4 <- fixed(0.4605984); label("Volumetric flow rate of aCTLA4 between central and peripheral compartment(Wang 2014, ... [liter/second]")  # Ippolito Table S2 (q_P_aCTLA4 = 5.331e-06 liter/second)
    q_T_aCTLA4 <- fixed(0.00736128); label("Volumetric flow rate of aCTLA4 between central and tumor compartment(Wang 2019, PMID:... [milliliter/second]")  # Ippolito Table S2 (q_T_aCTLA4 = 8.52e-05 milliliter/second)
    q_LN_aCTLA4 <- fixed(0.0002808); label("Volumetric flow rate of aCTLA4 between central and TDLN compartment(Meijer 2017, PMID... [milliliter/second]")  # Ippolito Table S2 (q_LN_aCTLA4 = 3.25e-06 milliliter/second)
    q_LD_aCTLA4 <- fixed(2.16); label("Rate of lymphatic drainage of aCTLA4 from TDLN to central compartment(Zhu 1996, PMID:... [1/minute]")  # Ippolito Table S2 (q_LD_aCTLA4 = 0.0015 1/minute)
    k_cl_aCTLA4 <- fixed(0.3276); label("Clearance rate of aCTLA4 from central compartment(Wang 2014, PMID: 24737343) [liter/day]")  # Ippolito Table S2 (k_cl_aCTLA4 = 0.3276 liter/day)
    gamma_C_aCTLA4 <- fixed(0.794); label("Volume fraction of interstitial space available to aCTLA4 in central compartment(Wang... [dimensionless]")  # Ippolito Table S2 (gamma_C_aCTLA4 = 0.794 dimensionless)
    gamma_P_aCTLA4 <- fixed(0.062); label("Volume fraction of interstitial space available to aCTLA4 in peripheral compartment(W... [dimensionless]")  # Ippolito Table S2 (gamma_P_aCTLA4 = 0.062 dimensionless)
    gamma_T_aCTLA4 <- fixed(0.522); label("Volume fraction of interstitial space available to aCTLA4 in tumor compartment(Coughl... [dimensionless]")  # Ippolito Table S2 (gamma_T_aCTLA4 = 0.522 dimensionless)
    gamma_LN_aCTLA4 <- fixed(0.2); label("Volume fraction of interstitial space available to aCTLA4 in TDLN compartment(Wang 20... [dimensionless]")  # Ippolito Table S2 (gamma_LN_aCTLA4 = 0.2 dimensionless)
    k_out_PDL1 <- fixed(50000); label("Expression rate of PDL1 on tumor cells (Mimura 2018, PMID: 29034543) [molecule/day]")  # Ippolito Table S2 (k_out_PDL1 = 50000 molecule/day)
    k_in_PDL1 <- fixed(1); label("Degradation rate of PDL1 on tumor cells (Hsu 2018, PMID: 30442814) [1/day]")  # Ippolito Table S2 (k_in_PDL1 = 1 1/day)
    r_PDL1_IFNg <- fixed(6); label("Number of folds increase of PDL1 expression by IFNg (Shin 2017, PMID: 27903500) [dimensionless]")  # Ippolito Table S2 (r_PDL1_IFNg = 6 dimensionless)
    kon_PD1_PDL2 <- fixed(662400000); label("kon of PD1-PDL2 binding (Cheng 2013, PMID: 23417675) [1/(micromolarity*nanometer*second)]")  # Ippolito Table S2 (kon_PD1_PDL2 = 0.0766666666666667 1/(micromolarity*nanometer*second))
    kon_PD1_aPD1 <- fixed(57.888); label("kon of PD1-aPD1 binding (Wang 2014, PMID: 24872026; Brown 2020, PMID: 32134960) [1/(molarity*second)]")  # Ippolito Table S2 (kon_PD1_aPD1 = 670000 1/(molarity*second))
    kon_PDL1_aPDL1 <- fixed(37.152); label("kon of PDL1-aPDL1 binding (Wang 2014, PMID: 24872026) [1/(molarity*second)]")  # Ippolito Table S2 (kon_PDL1_aPDL1 = 430000 1/(molarity*second))
    kon_CD28_CD80 <- fixed(1.152e+09); label("kon of CD28-CD80 binding (Jansson 2005, PMID: 16034096) [1/(micromolarity*nanometer*second)]")  # Ippolito Table S2 (kon_CD28_CD80 = 0.133333333333333 1/(micromolarity*nanometer*second))
    kon_CD28_CD86 <- fixed(4.032e+09); label("kon of CD28-CD86 binding (Jansson 2005, PMID: 16034096) [1/(micromolarity*nanometer*second)]")  # Ippolito Table S2 (kon_CD28_CD86 = 0.466666666666667 1/(micromolarity*nanometer*second))
    kon_CTLA4_CD80 <- fixed(6.336e+09); label("kon of CTLA4-CD80 binding (Jansson 2005, PMID: 16034096) [1/(micromolarity*nanometer*second)]")  # Ippolito Table S2 (kon_CTLA4_CD80 = 0.733333333333333 1/(micromolarity*nanometer*second))
    kon_CTLA4_CD86 <- fixed(5.76e+09); label("kon of CTLA4-CD86 binding (Jansson 2005, PMID: 16034096) [1/(micromolarity*nanometer*second)]")  # Ippolito Table S2 (kon_CTLA4_CD86 = 0.666666666666667 1/(micromolarity*nanometer*second))
    kon_CD80_PDL1 <- fixed(9100800000); label("kon of CD80-PDL1 binding (Jansson 2005, PMID: 16034096) [1/(micromolarity*nanometer*second)]")  # Ippolito Table S2 (kon_CD80_PDL1 = 1.05333333333333 1/(micromolarity*nanometer*second))
    kon_CTLA4_aCTLA4 <- fixed(33.0912); label("kon of CTLA4-aCTLA4 binding (Wang 2014, PMID: 24872026) [1/(molarity*second)]")  # Ippolito Table S2 (kon_CTLA4_aCTLA4 = 383000 1/(molarity*second))
    koff_PD1_PDL1 <- fixed(123984); label("koff of PD1-PDL1 binding calculated based on the measured kd and kon (Cheng 2013, PMI... [1/second]")  # Ippolito Table S2 (koff_PD1_PDL1 = 1.435 1/second)
    koff_PD1_PDL2 <- fixed(45705.6); label("koff of PD1-PDL2 binding calculated based on the measured kd and kon (Cheng 2013, PMI... [1/second]")  # Ippolito Table S2 (koff_PD1_PDL2 = 0.529 1/second)
    koff_PD1_aPD1 <- fixed(231.552); label("koff of PD1-aPD1 binding calculated based on the measured kd and kon (Wang 2014, PMID... [1/second]")  # Ippolito Table S2 (koff_PD1_aPD1 = 0.00268 1/second)
    koff_PDL1_aPDL1 <- fixed(14.8608); label("koff of PDL1-aPDL1 binding calculated based on the measured kd and kon (Wang 2014, PM... [1/second]")  # Ippolito Table S2 (koff_PDL1_aPDL1 = 0.000172 1/second)
    koff_CD28_CD80 <- fixed(138240); label("koff of CD28-CD80 binding calculated based on the measured kd and kon (Jansson 2005, ... [1/second]")  # Ippolito Table S2 (koff_CD28_CD80 = 1.6 1/second)
    koff_CD28_CD86 <- fixed(2419200); label("koff of CD28-CD86 binding calculated based on the measured kd and kon (Jansson 2005, ... [1/second]")  # Ippolito Table S2 (koff_CD28_CD86 = 28 1/second)
    koff_CTLA4_CD80 <- fixed(38016); label("koff of CTLA4-CD80 binding calculated based on the measured kd and kon (Jansson 2005,... [1/second]")  # Ippolito Table S2 (koff_CTLA4_CD80 = 0.44 1/second)
    koff_CTLA4_CD86 <- fixed(449280); label("koff of CTLA4-CD86 binding calculated based on the measured kd and kon (Jansson 2005,... [1/second]")  # Ippolito Table S2 (koff_CTLA4_CD86 = 5.2 1/second)
    koff_CD80_PDL1 <- fixed(518745.6); label("koff of CD80-PDL1 binding calculated based on the measured kd and kon (Jansson 2005, ... [1/second]")  # Ippolito Table S2 (koff_CD80_PDL1 = 6.004 1/second)
    koff_CTLA4_aCTLA4 <- fixed(602.25984); label("koff of CTLA4-aCTLA4 binding calculated based on the measured kd and kon (Wang 2014, ... [1/second]")  # Ippolito Table S2 (koff_CTLA4_aCTLA4 = 0.0069706 1/second)
    Chi_PD1_aPD1 <- fixed(3333333309.53); label("Antibody cross-arm binding efficiency that also includes the conversion of kon from 3... [1/nanometer]")  # Ippolito Table S2 (Chi_PD1_aPD1 = 33.3333330953227 1/nanometer)
    Chi_PDL1_aPDL1 <- fixed(3333333309.53); label("Antibody cross-arm binding efficiency that also includes the conversion of kon from 3... [1/nanometer]")  # Ippolito Table S2 (Chi_PDL1_aPDL1 = 33.3333330953227 1/nanometer)
    Chi_CTLA4_aCTLA4 <- fixed(3333333309.53); label("Antibody cross-arm binding efficiency that also includes the conversion of kon from 3... [1/nanometer]")  # Ippolito Table S2 (Chi_CTLA4_aCTLA4 = 33.3333330953227 1/nanometer)
    PD1_50 <- fixed(6e+10); label("PD1/PDL1 concentration for half-maximal T cell inactivation (estimated) [molecule/micrometer^2]")  # Ippolito Table S2 (PD1_50 = 6 molecule/micrometer^2)
    n_PD1 <- fixed(2); label("Hill coefficient for PD1/PDL1 half-maximal T cell inactivation (estimated) [dimensionless]")  # Ippolito Table S2 (n_PD1 = 2 dimensionless)
    CD28_CD8X_50 <- fixed(2e+12); label("CD28-CD80/CD28-CD86 concentration for half-maximal T cell co-estimulation (estimated) [molecule/micrometer^2]")  # Ippolito Table S2 (CD28_CD8X_50 = 200 molecule/micrometer^2)
    n_CD28_CD8X <- fixed(2); label("Hill coefficient for CD28-CD80/CD28-CD86 half-maximal T cell co-estimulation (estimated) [dimensionless]")  # Ippolito Table S2 (n_CD28_CD8X = 2 dimensionless)
    T_PD1_total <- fixed(27900); label("concentration of PD1 on T cells (Cheng 2014, PMID: 23417675; Mkrtichyan 2012, PMID: 2... [molecule]")  # Ippolito Table S2 (T_PD1_total = 27900 molecule)
    T_CD28_total <- fixed(184000); label("concentration of CD28 on T cells (Jansson 2005, PMID: 16034096) [molecule]")  # Ippolito Table S2 (T_CD28_total = 184000 molecule)
    T_CTLA4_syn <- fixed(8000); label("concentration of CTLA4 on T cells (Jansson 2005, PMID: 16034096) [molecule]")  # Ippolito Table S2 (T_CTLA4_syn = 8000 molecule)
    T_PDL1_total <- fixed(186000); label("concentration of PDL1 on T cells (Cheng 2014, PMID: 23417675; Mkrtichyan 2012, PMID: ... [molecule]")  # Ippolito Table S2 (T_PDL1_total = 186000 molecule)
    C1_PDL1_base <- fixed(115000); label("baseline number of PDL1 molecules per C1 cell (Cheng 2014, PMID: 23417675; Mkrtichyan... [molecule]")  # Ippolito Table S2 (C1_PDL1_base = 115000 molecule)
    r_PDL2C1 <- fixed(0.01); label("PDL2/PDL1 molecule ratio on C1cell (Cheng 2014, PMID: 23417675) [dimensionless]")  # Ippolito Table S2 (r_PDL2C1 = 0.01 dimensionless)
    C1_CD80_total <- fixed(40000); label("number of CD80 molecules per C1 cell (Jansson 2005, PMID: 16034096) [molecule]")  # Ippolito Table S2 (C1_CD80_total = 40000 molecule)
    C1_CD86_total <- fixed(860000); label("number of CD86 molecules per C1 cell (Jansson 2005, PMID: 16034096) [molecule]")  # Ippolito Table S2 (C1_CD86_total = 860000 molecule)
    APC_PDL1_base <- fixed(266666.666667); label("baseline number of PDL1 molecules per APC cell (Cheng 2014, PMID: 23417675; Mkrtichya... [molecule]")  # Ippolito Table S2 (APC_PDL1_base = 266666.666666667 molecule)
    r_PDL2APC <- fixed(0.01); label("PDL2/PDL1 molecule ratio on APCcell (Cheng 2014, PMID: 23417675) [dimensionless]")  # Ippolito Table S2 (r_PDL2APC = 0.01 dimensionless)
    APC_CD80_total <- fixed(40000); label("number of CD80 molecules per APC cell (Jansson 2005, PMID: 16034096) [molecule]")  # Ippolito Table S2 (APC_CD80_total = 40000 molecule)
    APC_CD86_total <- fixed(860000); label("number of CD86 molecules per APC cell (Jansson 2005, PMID: 16034096) [molecule]")  # Ippolito Table S2 (APC_CD86_total = 860000 molecule)
    k_Th_act <- fixed(10); label("Rate of T helper cell activation (Robertson-Tessi 2012, PMID: 22051568) [1/day]")  # Ippolito Table S2 (k_Th_act = 10 1/day)
    k_Th_Treg <- fixed(0.022); label("Th differentiation rate to Treg (Robertson-Tessi 2012, PMID: 22051568) [1/day]")  # Ippolito Table S2 (k_Th_Treg = 0.022 1/day)
    k_TGFb_Tsec <- fixed(1.2e-10); label("TGF secretion rate by Treg (Liyanage 2002, PMID: 12193750) [nanomole/cell/day]")  # Ippolito Table S2 (k_TGFb_Tsec = 1.2e-10 nanomole/cell/day)
    k_TGFb_deg <- fixed(14.3); label("TGF degradtion rate (Robertson-Tessi 2012, PMID: 22051568) [1/day]")  # Ippolito Table S2 (k_TGFb_deg = 14.3 1/day)
    TGFb_50 <- fixed(0.14); label("Half-Maximal TGFb level for Th-to-Treg differentiation / chemoresistance development ... [nanomolarity]")  # Ippolito Table S2 (TGFb_50 = 0.14 nanomolarity)
    TGFb_50_Teff <- fixed(0.28); label("Half-Maximal TGFb level for CD8 T cell inhibition (Robertson-Tessi 2012, PMID: 22051568) [nanomolarity]")  # Ippolito Table S2 (TGFb_50_Teff = 0.28 nanomolarity)
    Kc_rec <- fixed(20200000); label("Half-Maximal cancer cell number for T cell recruitment (Phillis 2006, PMID: 16153659) [cell^2]")  # Ippolito Table S2 (Kc_rec = 20200000 cell^2)
    TGFbase <- fixed(0.016); label("Baseline TGFb level in breast tumor (Ivanovic 2003, PMID: 12751375; Manuyakorn 2008, ... [nanomolarity]")  # Ippolito Table S2 (TGFbase = 0.016 nanomolarity)
    k_IFNg_sec <- fixed(5e-13); label("IFNg secretion rate by T helper cell (Autenshlyus 2021, PMID: 34059727; Borj 2017, do... [nanomole/cell/day]")  # Ippolito Table S2 (k_IFNg_sec = 5e-13 nanomole/cell/day)
    k_IFNg_deg <- fixed(7.68); label("IFNg degradation rate (Hofstra 1998, PMID: 9806748) [1/day]")  # Ippolito Table S2 (k_IFNg_deg = 7.68 1/day)
    IFNg_50_ind <- fixed(0.00296); label("Half-Maximal IFNg level for PD-L1 induction (Shin 2017, PMID: 27903500) [picomolarity]")  # Ippolito Table S2 (IFNg_50_ind = 2.96 picomolarity)
    k_CCL2_sec <- fixed(1.7e-12); label("rate of CCL2 secretion (Huang 2007, PMID: 17257744; Dutta 2018, PMID: 29594759) [nanomole/cell/day]")  # Ippolito Table S2 (k_CCL2_sec = 1.7e-12 nanomole/cell/day)
    k_CCL2_deg <- fixed(1.44); label("rate of CCL2 degradation (Tanimoto 2007, PMID: 18089573) [1/h]")  # Ippolito Table S2 (k_CCL2_deg = 0.06 1/h)
    CCL2_50 <- fixed(0.23); label("Half-maximal CCL2 level of MDSC recruitment (Opalek 2007, PMID: 17888174; Ernst 1994,... [nanomolarity]")  # Ippolito Table S2 (CCL2_50 = 0.23 nanomolarity)
    k_MDSC_mig <- fixed(1.1e+07); label("Rate of MDSC recruitment into the tumor (Diaz-Montero 2009, PMID: 18446337; Huang 200... [cell/(milliliter*day)]")  # Ippolito Table S2 (k_MDSC_mig = 11000 cell/(milliliter*day))
    k_MDSC_death <- fixed(0.015); label("Rate of MDSC death (Lai 2018, PMID: 29735668) [1/day]")  # Ippolito Table S2 (k_MDSC_death = 0.015 1/day)
    k_NO_deg <- fixed(135); label("rate of NO degradation (Hakim 1996, PMID: 8953625) [1/day]")  # Ippolito Table S2 (k_NO_deg = 135 1/day)
    k_ArgI_deg <- fixed(0.173); label("rate of ArgI degradation (Schimke 1964, PMID: 14257612) [1/day]")  # Ippolito Table S2 (k_ArgI_deg = 0.173 1/day)
    k_NO_sec <- fixed(4.8e-07); label("rate of NO secretion from MDSCs (Serafini 2008, PMID: 18593947) [nanomole/cell/day]")  # Ippolito Table S2 (k_NO_sec = 4.8e-07 nanomole/cell/day)
    k_ArgI_sec <- fixed(1.4e-08); label("rate of ArgI secretion (Serafini 2008, PMID: 18593947) [(mU*microliter)/cell/day]")  # Ippolito Table S2 (k_ArgI_sec = 0.014 (mU*microliter)/cell/day)
    ArgI_50_Teff <- fixed(61.7); label("rate of ArgI-induced T cell death (Serafini 2008, PMID: 18593947) [mU]")  # Ippolito Table S2 (ArgI_50_Teff = 61.7 mU)
    NO_50_Teff <- fixed(0.75); label("rate of NO-induced T cell death (Serafini 2008, PMID: 18593947) [nanomolarity]")  # Ippolito Table S2 (NO_50_Teff = 0.75 nanomolarity)
    ArgI_50_Treg <- fixed(22.1); label("Half-maximal ArgI level of Treg expansion (estimated based on Serafini 2008, PMID: 18... [mU]")  # Ippolito Table S2 (ArgI_50_Treg = 22.1 mU)
    Q2 <- fixed(998.4); label("Intercompartmental clearance between the central compartment V1 and the second periph... [liter/h]")  # Ippolito Table S2 (Q2 = 41.6 liter/h)
    Vmt <- fixed(7800000); label("Maximum intercompartmental distribution rate between the central compartment V1 and t... [microgram/h]")  # Ippolito Table S2 (Vmt = 325000 microgram/h)
    BSA <- fixed(1.9); label("Body surface area [meter^2]")  # Ippolito Table S2 (BSA = 1.9 meter^2)
    Kc_nabp <- fixed(4e+07); label("Half-Maximal cancer cell number for cytotoxic drug diffusion (estimated based on Kyle... [cell]")  # Ippolito Table S2 (Kc_nabp = 4e+07 cell)
    k_Mac_mig <- fixed(1.7e+08); label("Recruitment rate of macrophage into tumor compartment (Yang 2018, PMID: 30026826) [cell/(milliliter*day)]")  # Ippolito Table S2 (k_Mac_mig = 170000 cell/(milliliter*day))
    k_Mac_death <- fixed(0.02); label("Death rate of macrophages into tumor compartment (Ginhoux 2016, PMID: 26982352) [1/day]")  # Ippolito Table S2 (k_Mac_death = 0.02 1/day)
    k_TGFb_Msec <- fixed(2e-11); label("Secretion rate of TGFb by macrophage in tumor compartment (Matsuo 2000, PMID: 10652049) [nanomole/cell/day]")  # Ippolito Table S2 (k_TGFb_Msec = 2e-11 nanomole/cell/day)
    k_vas_Msec <- fixed(1.7e-05); label("Secretion rate of angiogenic factor by macrophage in tumor compartment (Wu 2010, PMID... [picogram/cell/day]")  # Ippolito Table S2 (k_vas_Msec = 1.7e-05 picogram/cell/day)
    k_IL12_sec <- fixed(8.5e-12); label("Secretion rate of IL-12 by mAPC in tumor compartment (Heufler 1996, PMID: 8605935) [nanomole/cell/day]")  # Ippolito Table S2 (k_IL12_sec = 8.5e-12 nanomole/cell/day)
    k_IL12_Msec <- fixed(5e-13); label("Secretion rate of IL-12 by macrophage in tumor compartment (Clough 2007, PMID: 17597818) [nanomole/cell/day]")  # Ippolito Table S2 (k_IL12_Msec = 5e-13 nanomole/cell/day)
    k_IL12_deg <- fixed(0.5544); label("Degradation rate of IL-12 in tumor compartment (Carreno 2000, PMID: 10707873) [1/h]")  # Ippolito Table S2 (k_IL12_deg = 0.0231 1/h)
    k_IL10_sec <- fixed(3e-12); label("Secretion rate of IL-10 by macrophage in tumor compartment (Autenshlyus 2021, PMID: 3... [nanomole/cell/day]")  # Ippolito Table S2 (k_IL10_sec = 3e-12 nanomole/cell/day)
    k_IL10_deg <- fixed(4); label("Degradation rate of IL-10 in tumor compartment (Saxena 2015, PMID: 25481648) [1/day]")  # Ippolito Table S2 (k_IL10_deg = 4 1/day)
    k_M2_pol <- fixed(0.25); label("Rate of M1 to M2 macrophage polarization (estimated based on the M1/M2 ratio in TNBC ... [1/day]")  # Ippolito Table S2 (k_M2_pol = 0.25 1/day)
    k_M1_pol <- fixed(0.02); label("Rate of M2 to M1 macrophage polarization (estimated based on the M1/M2 ratio in TNBC ... [1/day]")  # Ippolito Table S2 (k_M1_pol = 0.02 1/day)
    IL10_50 <- fixed(0.008); label("Half-maximal IL10 level for M1 to M2 polarization / maintaining Treg function / mAPC ... [picomolarity]")  # Ippolito Table S2 (IL10_50 = 8 picomolarity)
    IL12_50 <- fixed(0.00014); label("Half-maximal IL-12 level for M2 to M1 macrophage polarization (Altan-Bonnet 2019, PMI... [picomolarity]")  # Ippolito Table S2 (IL12_50 = 0.14 picomolarity)
    IFNg_50 <- fixed(0.0029); label("Half-maximal IFNg level for M2 to M1 macrophage polarization (Altan-Bonnet 2019, PMID... [picomolarity]")  # Ippolito Table S2 (IFNg_50 = 2.9 picomolarity)
    k_M1_phago <- fixed(0.5); label("Rate of M1 macrophage-mediated killing of cancer cell (Pan 2020, PMID: 33365025) [1/day]")  # Ippolito Table S2 (k_M1_phago = 0.5 1/day)
    vol_Mcell <- fixed(4.84904826082e-12); label("Volume of a single macrophage cell Volume of a macrophage calculated based on the ave... [micrometer^3/cell]")  # Ippolito Table S2 (vol_Mcell = 4849.04826081585 micrometer^3/cell)
    kon_CD47_SIRPa <- fixed(9e+06); label("kon of CD47-SIRPa binding (Hayes 2020, PMID: 31964705) [1/(micromolarity*minute*nanometer)]")  # Ippolito Table S2 (kon_CD47_SIRPa = 0.0625 1/(micromolarity*minute*nanometer))
    koff_CD47_SIRPa <- fixed(432); label("koff of CD47-SIRPa binding (Hayes 2020, PMID: 31964705) [1/minute]")  # Ippolito Table S2 (koff_CD47_SIRPa = 0.3 1/minute)
    SIRPa_50 <- fixed(3.7e+11); label("SIRPa occupancy for half-maximal CD47/SIRPa inhibition on phagocytosis of cancer cell... [molecule/micrometer^2]")  # Ippolito Table S2 (SIRPa_50 = 37 molecule/micrometer^2)
    n_SIRPa <- fixed(2); label("Hill coefficient for CD47/SIRPa inhibition on phagocytosis of cancer cells by macroph... [dimensionless]")  # Ippolito Table S2 (n_SIRPa = 2 dimensionless)
    C_CD47 <- fixed(4e+12); label("CD47 expression on cancer cells (Morrissey 2020, PMID: 32768386) [molecule/micrometer^2]")  # Ippolito Table S2 (C_CD47 = 400 molecule/micrometer^2)
    M_PD1_total <- fixed(9640); label("PD-1 expression on macrophages estimated based on PD-1 expression on T cell (Cheng 20... [molecule]")  # Ippolito Table S2 (M_PD1_total = 9640 molecule)
    M_SIRPa <- fixed(1e+12); label("SIRPa expression on macrophages (Subramanian 2006, PMID: 16291597) [molecule/micrometer^2]")  # Ippolito Table S2 (M_SIRPa = 100 molecule/micrometer^2)
    A_Mcell <- fixed(1.38544236023e-07); label("Surface area of the macrophage calculated based on the average macrophage diameter (K... [micrometer^2]")  # Ippolito Table S2 (A_Mcell = 1385.4423602331 micrometer^2)
    IL10_50_phago <- fixed(0.27); label("Half-maximal IL-10 level for phagocytosis by macrophage (Bian 2016, PMID: 27578867) [picomolarity]")  # Ippolito Table S2 (IL10_50_phago = 270 picomolarity)
    K_Mac_C <- fixed(1); label("Association coefficient for macrophage and cancer cell (Gardner 2020, PMID: 33209523) [dimensionless]")  # Ippolito Table S2 (K_Mac_C = 1 dimensionless)
    K_M <- fixed(0.00571428571429); label("Probody unmasking equilibrium constant (Stroh 2019, PMID: 31250966) [dimensionless]")  # Ippolito Table S2 (K_M = 0.00571428571428571 dimensionless)
    k_o <- fixed(1002.24); label("Probody unmasking rate (Stroh 2019, PMID: 31250966) [1/second]")  # Ippolito Table S2 (k_o = 0.0116 1/second)
    kon_CD80_CD80 <- fixed(1699200); label("kon of CD80 self-association (Ikemizu 2000, PMID: 10661405) [1/(micromolarity*nanometer*second)]")  # Wang 2022 Table S2 (absent from Ippolito Table S2) (kon_CD80_CD80 = 0.000196666666666667 1/(micromolarity*nanometer*second))
    koff_CD80_CD80 <- fixed(866.592); label("koff of CD80 self-association calculated based on the measured kd and kon (Ikemizu 20... [1/second]")  # Wang 2022 Table S2 (absent from Ippolito Table S2) (koff_CD80_CD80 = 0.01003 1/second)

    # ---- Probody (pacmilimab) module: Appendix S1 Eqs S51-S65 ----
    k_cvg <- fixed(0.00864); label("Probody substrate cleavage rate by tumour-associated proteases [1/day]")  # Ippolito Table S1 (mean of the loguniform VP distribution 7e-08 to 1.3e-07 1/second = 1e-07 1/second, the value published by Stroh 2021)
    f_cvg_out <- fixed(0.01); label("Cleavage rate outside the tumour as a fraction of the tumour rate [dimensionless]")  # Appendix S1 Model implementation ('the cleavage rate outside of the tumor is only 1% that inside the tumor compartment')
  })

  model({
    m_V_C <- vol_V_C
    m_V_P <- vol_V_P
    m_V_LN <- vol_V_LN
    m_V_e <- vol_V_e
    m_A_e <- vol_A_e
    m_A_s <- vol_A_s
    m_syn_T_C1 <- vol_syn_T_C1
    m_syn_T_APC <- vol_syn_T_APC
    m_syn_M_C <- vol_syn_M_C
    p_k_cell_clear <- k_cell_clear
    p_cell <- cell
    p_day <- day
    p_vol_cell <- vol_cell
    p_vol_Tcell <- vol_Tcell
    p_Ve_T <- Ve_T
    p_k_C1_growth <- k_C1_growth
    p_k_K_g <- k_K_g
    p_k_K_d <- k_K_d
    p_k_vas_Csec <- k_vas_Csec
    p_k_vas_deg <- k_vas_deg
    p_c_vas_50 <- c_vas_50
    p_k_C1_death <- k_C1_death
    p_k_C1_therapy <- k_C1_therapy
    p_initial_tumour_diameter <- initial_tumour_diameter
    p_k_C2_therapy <- k_C2_therapy
    p_div_T0 <- div_T0
    p_n_T0_clones <- n_T0_clones
    p_q_nT0_LN_in <- q_nT0_LN_in
    p_q_T0_LN_out <- q_T0_LN_out
    p_q_nT0_LN_out <- q_nT0_LN_out
    p_k_T0_act <- k_T0_act
    p_k_T0_pro <- k_T0_pro
    p_k_T0_death <- k_T0_death
    p_q_T0_P_in <- q_T0_P_in
    p_q_T0_P_out <- q_T0_P_out
    p_q_T0_T_in <- q_T0_T_in
    p_q_nT0_P_in <- q_nT0_P_in
    p_q_nT0_P_out <- q_nT0_P_out
    p_Q_nT0_thym <- Q_nT0_thym
    p_k_nT0_pro <- k_nT0_pro
    p_K_nT0_pro <- K_nT0_pro
    p_k_nT0_death <- k_nT0_death
    p_k_IL2_deg <- k_IL2_deg
    p_k_IL2_cons <- k_IL2_cons
    p_k_IL2_sec <- k_IL2_sec
    p_IL2_50 <- IL2_50
    p_IL2_50_Treg <- IL2_50_Treg
    p_N0 <- N0
    p_N_costim <- N_costim
    p_N_IL2_CD8 <- N_IL2_CD8
    p_N_IL2_CD4 <- N_IL2_CD4
    p_k_Treg <- k_Treg
    p_div_T1 <- div_T1
    p_n_T1_clones <- n_T1_clones
    p_q_nT1_LN_in <- q_nT1_LN_in
    p_q_T1_LN_out <- q_T1_LN_out
    p_q_nT1_LN_out <- q_nT1_LN_out
    p_k_T1_act <- k_T1_act
    p_k_T1_pro <- k_T1_pro
    p_k_T1_death <- k_T1_death
    p_q_T1_P_in <- q_T1_P_in
    p_q_T1_P_out <- q_T1_P_out
    p_q_T1_T_in <- q_T1_T_in
    p_q_nT1_P_in <- q_nT1_P_in
    p_q_nT1_P_out <- q_nT1_P_out
    p_Q_nT1_thym <- Q_nT1_thym
    p_k_nT1_pro <- k_nT1_pro
    p_K_nT1_pro <- K_nT1_pro
    p_k_nT1_death <- k_nT1_death
    p_k_T1 <- k_T1
    p_k_C_T1 <- k_C_T1
    p_K_T_C <- K_T_C
    p_K_T_Treg <- K_T_Treg
    p_k_APC_mat <- k_APC_mat
    p_k_APC_mig <- k_APC_mig
    p_k_APC_death <- k_APC_death
    p_k_mAPC_death <- k_mAPC_death
    p_APC0_T <- APC0_T
    p_APC0_LN <- APC0_LN
    p_k_c <- k_c
    p_c0 <- c0
    p_c50 <- c50
    p_DAMPs <- DAMPs
    p_n_sites_APC <- n_sites_APC
    p_kin <- kin
    p_kout <- kout
    p_k_P0_up <- k_P0_up
    p_k_xP0_deg <- k_xP0_deg
    p_k_P0_deg <- k_P0_deg
    p_k_p0_deg <- k_p0_deg
    p_k_P0_on <- k_P0_on
    p_k_P0_d1 <- k_P0_d1
    p_p0_50 <- p0_50
    p_P0_C1 <- P0_C1
    p_P0_C2 <- P0_C2
    p_A_syn <- A_syn
    p_A_Tcell <- A_Tcell
    p_A_cell <- A_cell
    p_A_APC <- A_APC
    p_k_M1p0_TCR_on <- k_M1p0_TCR_on
    p_k_M1p0_TCR_off <- k_M1p0_TCR_off
    p_k_M1p0_TCR_p <- k_M1p0_TCR_p
    p_phi_M1p0_TCR <- phi_M1p0_TCR
    p_N_M1p0_TCR <- N_M1p0_TCR
    p_TCR_p0_tot <- TCR_p0_tot
    p_k_P1_up <- k_P1_up
    p_k_xP1_deg <- k_xP1_deg
    p_k_P1_deg <- k_P1_deg
    p_k_p1_deg <- k_p1_deg
    p_k_P1_on <- k_P1_on
    p_k_P1_d1 <- k_P1_d1
    p_p1_50 <- p1_50
    p_P1_C1 <- P1_C1
    p_P1_C2 <- P1_C2
    p_k_M1p1_TCR_on <- k_M1p1_TCR_on
    p_k_M1p1_TCR_off <- k_M1p1_TCR_off
    p_k_M1p1_TCR_p <- k_M1p1_TCR_p
    p_phi_M1p1_TCR <- phi_M1p1_TCR
    p_N_M1p1_TCR <- N_M1p1_TCR
    p_TCR_p1_tot <- TCR_p1_tot
    p_kon_PD1_PDL1 <- kon_PD1_PDL1
    p_q_P_aPD1 <- q_P_aPD1
    p_q_T_aPD1 <- q_T_aPD1
    p_q_LN_aPD1 <- q_LN_aPD1
    p_q_LD_aPD1 <- q_LD_aPD1
    p_k_cl_aPD1 <- k_cl_aPD1
    p_gamma_C_aPD1 <- gamma_C_aPD1
    p_gamma_P_aPD1 <- gamma_P_aPD1
    p_gamma_T_aPD1 <- gamma_T_aPD1
    p_gamma_LN_aPD1 <- gamma_LN_aPD1
    p_q_P_aPDL1 <- q_P_aPDL1
    p_q_T_aPDL1 <- q_T_aPDL1
    p_q_LN_aPDL1 <- q_LN_aPDL1
    p_q_LD_aPDL1 <- q_LD_aPDL1
    p_k_cl_aPDL1 <- k_cl_aPDL1
    p_gamma_C_aPDL1 <- gamma_C_aPDL1
    p_gamma_P_aPDL1 <- gamma_P_aPDL1
    p_gamma_T_aPDL1 <- gamma_T_aPDL1
    p_gamma_LN_aPDL1 <- gamma_LN_aPDL1
    p_q_P_aCTLA4 <- q_P_aCTLA4
    p_q_T_aCTLA4 <- q_T_aCTLA4
    p_q_LN_aCTLA4 <- q_LN_aCTLA4
    p_q_LD_aCTLA4 <- q_LD_aCTLA4
    p_k_cl_aCTLA4 <- k_cl_aCTLA4
    p_gamma_C_aCTLA4 <- gamma_C_aCTLA4
    p_gamma_P_aCTLA4 <- gamma_P_aCTLA4
    p_gamma_T_aCTLA4 <- gamma_T_aCTLA4
    p_gamma_LN_aCTLA4 <- gamma_LN_aCTLA4
    p_k_out_PDL1 <- k_out_PDL1
    p_k_in_PDL1 <- k_in_PDL1
    p_r_PDL1_IFNg <- r_PDL1_IFNg
    p_kon_PD1_PDL2 <- kon_PD1_PDL2
    p_kon_PD1_aPD1 <- kon_PD1_aPD1
    p_kon_PDL1_aPDL1 <- kon_PDL1_aPDL1
    p_kon_CD28_CD80 <- kon_CD28_CD80
    p_kon_CD28_CD86 <- kon_CD28_CD86
    p_kon_CTLA4_CD80 <- kon_CTLA4_CD80
    p_kon_CTLA4_CD86 <- kon_CTLA4_CD86
    p_kon_CD80_PDL1 <- kon_CD80_PDL1
    p_kon_CTLA4_aCTLA4 <- kon_CTLA4_aCTLA4
    p_koff_PD1_PDL1 <- koff_PD1_PDL1
    p_koff_PD1_PDL2 <- koff_PD1_PDL2
    p_koff_PD1_aPD1 <- koff_PD1_aPD1
    p_koff_PDL1_aPDL1 <- koff_PDL1_aPDL1
    p_koff_CD28_CD80 <- koff_CD28_CD80
    p_koff_CD28_CD86 <- koff_CD28_CD86
    p_koff_CTLA4_CD80 <- koff_CTLA4_CD80
    p_koff_CTLA4_CD86 <- koff_CTLA4_CD86
    p_koff_CD80_PDL1 <- koff_CD80_PDL1
    p_koff_CTLA4_aCTLA4 <- koff_CTLA4_aCTLA4
    p_Chi_PD1_aPD1 <- Chi_PD1_aPD1
    p_Chi_PDL1_aPDL1 <- Chi_PDL1_aPDL1
    p_Chi_CTLA4_aCTLA4 <- Chi_CTLA4_aCTLA4
    p_PD1_50 <- PD1_50
    p_n_PD1 <- n_PD1
    p_CD28_CD8X_50 <- CD28_CD8X_50
    p_n_CD28_CD8X <- n_CD28_CD8X
    p_T_PD1_total <- T_PD1_total
    p_T_CD28_total <- T_CD28_total
    p_T_CTLA4_syn <- T_CTLA4_syn
    p_T_PDL1_total <- T_PDL1_total
    p_C1_PDL1_base <- C1_PDL1_base
    p_r_PDL2C1 <- r_PDL2C1
    p_C1_CD80_total <- C1_CD80_total
    p_C1_CD86_total <- C1_CD86_total
    p_APC_PDL1_base <- APC_PDL1_base
    p_r_PDL2APC <- r_PDL2APC
    p_APC_CD80_total <- APC_CD80_total
    p_APC_CD86_total <- APC_CD86_total
    p_k_Th_act <- k_Th_act
    p_k_Th_Treg <- k_Th_Treg
    p_k_TGFb_Tsec <- k_TGFb_Tsec
    p_k_TGFb_deg <- k_TGFb_deg
    p_TGFb_50 <- TGFb_50
    p_TGFb_50_Teff <- TGFb_50_Teff
    p_Kc_rec <- Kc_rec
    p_TGFbase <- TGFbase
    p_k_IFNg_sec <- k_IFNg_sec
    p_k_IFNg_deg <- k_IFNg_deg
    p_IFNg_50_ind <- IFNg_50_ind
    p_k_CCL2_sec <- k_CCL2_sec
    p_k_CCL2_deg <- k_CCL2_deg
    p_CCL2_50 <- CCL2_50
    p_k_MDSC_mig <- k_MDSC_mig
    p_k_MDSC_death <- k_MDSC_death
    p_k_NO_deg <- k_NO_deg
    p_k_ArgI_deg <- k_ArgI_deg
    p_k_NO_sec <- k_NO_sec
    p_k_ArgI_sec <- k_ArgI_sec
    p_ArgI_50_Teff <- ArgI_50_Teff
    p_NO_50_Teff <- NO_50_Teff
    p_ArgI_50_Treg <- ArgI_50_Treg
    p_Q2 <- Q2
    p_Vmt <- Vmt
    p_BSA <- BSA
    p_Kc_nabp <- Kc_nabp
    p_k_Mac_mig <- k_Mac_mig
    p_k_Mac_death <- k_Mac_death
    p_k_TGFb_Msec <- k_TGFb_Msec
    p_k_vas_Msec <- k_vas_Msec
    p_k_IL12_sec <- k_IL12_sec
    p_k_IL12_Msec <- k_IL12_Msec
    p_k_IL12_deg <- k_IL12_deg
    p_k_IL10_sec <- k_IL10_sec
    p_k_IL10_deg <- k_IL10_deg
    p_k_M2_pol <- k_M2_pol
    p_k_M1_pol <- k_M1_pol
    p_IL10_50 <- IL10_50
    p_IL12_50 <- IL12_50
    p_IFNg_50 <- IFNg_50
    p_k_M1_phago <- k_M1_phago
    p_vol_Mcell <- vol_Mcell
    p_kon_CD47_SIRPa <- kon_CD47_SIRPa
    p_koff_CD47_SIRPa <- koff_CD47_SIRPa
    p_SIRPa_50 <- SIRPa_50
    p_n_SIRPa <- n_SIRPa
    p_C_CD47 <- C_CD47
    p_M_PD1_total <- M_PD1_total
    p_M_SIRPa <- M_SIRPa
    p_A_Mcell <- A_Mcell
    p_IL10_50_phago <- IL10_50_phago
    p_K_Mac_C <- K_Mac_C
    p_K_M <- K_M
    p_k_o <- k_o
    p_kon_CD80_CD80 <- kon_CD80_CD80
    p_koff_CD80_CD80 <- koff_CD80_CD80
    p_k_cvg <- k_cvg
    p_f_cvg_out <- f_cvg_out
    x_V_C_nT0 <- q_V_C_nT0
    x_V_C_T0 <- q_V_C_T0
    x_V_C_nT1 <- q_V_C_nT1
    x_V_C_T1 <- q_V_C_T1
    x_V_C_Th <- q_V_C_Th
    x_V_P_nT0 <- q_V_P_nT0
    x_V_P_T0 <- q_V_P_T0
    x_V_P_nT1 <- q_V_P_nT1
    x_V_P_T1 <- q_V_P_T1
    x_V_P_Th <- q_V_P_Th
    x_V_T_C_x <- q_V_T_C_x
    x_V_T_T1_exh <- q_V_T_T1_exh
    x_V_T_Th_exh <- q_V_T_Th_exh
    x_V_T_C1 <- q_V_T_C1
    x_V_T_K <- q_V_T_K
    x_V_T_C2 <- q_V_T_C2
    x_V_T_T0 <- q_V_T_T0
    x_V_T_T1 <- q_V_T_T1
    x_V_T_APC <- q_V_T_APC
    x_V_T_mAPC <- q_V_T_mAPC
    x_V_T_Th <- q_V_T_Th
    x_V_T_MDSC <- q_V_T_MDSC
    x_V_T_ArgI <- q_V_T_ArgI
    x_V_T_Mac_M1 <- q_V_T_Mac_M1
    x_V_T_Mac_M2 <- q_V_T_Mac_M2
    x_V_LN_nT0 <- q_V_LN_nT0
    x_V_LN_aT0 <- q_V_LN_aT0
    x_V_LN_T0 <- q_V_LN_T0
    x_V_LN_nT1 <- q_V_LN_nT1
    x_V_LN_aT1 <- q_V_LN_aT1
    x_V_LN_T1 <- q_V_LN_T1
    x_V_LN_APC <- q_V_LN_APC
    x_V_LN_mAPC <- q_V_LN_mAPC
    x_V_LN_aTh <- q_V_LN_aTh
    x_V_LN_Th <- q_V_LN_Th
    m_oos_C1 <- (p_A_cell-p_A_syn)   # out-of-synapse area for the cancer cell: A_cell - A_syn (Appendix S1 Out of synapse module)
    m_oos_T <- (p_A_Tcell-p_A_syn)   # out-of-synapse area for the T cell (Treg): A_cell - A_syn (Appendix S1 Out of synapse module)
    m_oos_M <- (p_A_Mcell-p_A_syn)   # out-of-synapse area for the macrophage: A_cell - A_syn (Appendix S1 Out of synapse module)
    m_oos_APC <- (p_A_APC-p_A_syn)   # out-of-synapse area for the APC: A_cell - A_syn (Appendix S1 Out of synapse module)
    x_V_C_aPD1 <- q_V_C_aPD1/m_V_C
    x_V_C_aCTLA4 <- q_V_C_aCTLA4/m_V_C
    x_V_P_aPD1 <- q_V_P_aPD1/m_V_P
    x_V_P_aCTLA4 <- q_V_P_aCTLA4/m_V_P
    x_V_LN_IL2 <- q_V_LN_IL2/m_V_LN
    x_V_LN_aPD1 <- q_V_LN_aPD1/m_V_LN
    x_V_LN_aCTLA4 <- q_V_LN_aCTLA4/m_V_LN
    x_V_e_P0 <- q_V_e_P0/m_V_e
    x_V_e_p0 <- q_V_e_p0/m_V_e
    x_V_e_P1 <- q_V_e_P1/m_V_e
    x_V_e_p1 <- q_V_e_p1/m_V_e
    x_A_e_M1 <- q_A_e_M1/m_A_e
    x_A_e_M1p0 <- q_A_e_M1p0/m_A_e
    x_A_e_M1p1 <- q_A_e_M1p1/m_A_e
    x_A_s_M1 <- q_A_s_M1/m_A_s
    x_A_s_M1p0 <- q_A_s_M1p0/m_A_s
    x_A_s_M1p1 <- q_A_s_M1p1/m_A_s
    x_syn_T_C1_PD1_PDL1 <- q_syn_T_C1_PD1_PDL1/m_syn_T_C1
    x_syn_T_C1_PD1_PDL2 <- q_syn_T_C1_PD1_PDL2/m_syn_T_C1
    x_syn_T_C1_PD1 <- q_syn_T_C1_PD1/m_syn_T_C1
    x_syn_T_C1_PDL1 <- q_syn_T_C1_PDL1/m_syn_T_C1
    x_syn_T_C1_PDL2 <- q_syn_T_C1_PDL2/m_syn_T_C1
    x_syn_T_C1_PD1_aPD1 <- q_syn_T_C1_PD1_aPD1/m_syn_T_C1
    x_syn_T_C1_PD1_aPD1_PD1 <- q_syn_T_C1_PD1_aPD1_PD1/m_syn_T_C1
    x_syn_T_C1_TPDL1 <- q_syn_T_C1_TPDL1/m_syn_T_C1
    x_syn_T_C1_CD28_CD80 <- q_syn_T_C1_CD28_CD80/m_syn_T_C1
    x_syn_T_C1_CD28_CD80_CD28 <- q_syn_T_C1_CD28_CD80_CD28/m_syn_T_C1
    x_syn_T_C1_CD28_CD86 <- q_syn_T_C1_CD28_CD86/m_syn_T_C1
    x_syn_T_C1_CD80_CTLA4 <- q_syn_T_C1_CD80_CTLA4/m_syn_T_C1
    x_syn_T_C1_CD80_CTLA4_CD80 <- q_syn_T_C1_CD80_CTLA4_CD80/m_syn_T_C1
    x_syn_T_C1_CTLA4_CD80_CTLA4 <- q_syn_T_C1_CTLA4_CD80_CTLA4/m_syn_T_C1
    x_syn_T_C1_CD80_CTLA4_CD80_CTLA4 <- q_syn_T_C1_CD80_CTLA4_CD80_CTLA4/m_syn_T_C1
    x_syn_T_C1_CD86_CTLA4 <- q_syn_T_C1_CD86_CTLA4/m_syn_T_C1
    x_syn_T_C1_CD86_CTLA4_CD86 <- q_syn_T_C1_CD86_CTLA4_CD86/m_syn_T_C1
    x_syn_T_C1_PDL1_CD80 <- q_syn_T_C1_PDL1_CD80/m_syn_T_C1
    x_syn_T_C1_PDL1_CD80_CD28 <- q_syn_T_C1_PDL1_CD80_CD28/m_syn_T_C1
    x_syn_T_C1_PDL1_CD80_CTLA4 <- q_syn_T_C1_PDL1_CD80_CTLA4/m_syn_T_C1
    x_syn_T_C1_CD28 <- q_syn_T_C1_CD28/m_syn_T_C1
    x_syn_T_C1_CTLA4 <- q_syn_T_C1_CTLA4/m_syn_T_C1
    x_syn_T_C1_CD80 <- q_syn_T_C1_CD80/m_syn_T_C1
    x_syn_T_C1_CD80m <- q_syn_T_C1_CD80m/m_syn_T_C1
    x_syn_T_C1_CD86 <- q_syn_T_C1_CD86/m_syn_T_C1
    x_syn_T_C1_CTLA4_aCTLA4 <- q_syn_T_C1_CTLA4_aCTLA4/m_syn_T_C1
    x_syn_T_C1_CTLA4_aCTLA4_CTLA4 <- q_syn_T_C1_CTLA4_aCTLA4_CTLA4/m_syn_T_C1
    x_syn_T_APC_PD1_PDL1 <- q_syn_T_APC_PD1_PDL1/m_syn_T_APC
    x_syn_T_APC_PD1_PDL2 <- q_syn_T_APC_PD1_PDL2/m_syn_T_APC
    x_syn_T_APC_PD1 <- q_syn_T_APC_PD1/m_syn_T_APC
    x_syn_T_APC_PDL1 <- q_syn_T_APC_PDL1/m_syn_T_APC
    x_syn_T_APC_PDL2 <- q_syn_T_APC_PDL2/m_syn_T_APC
    x_syn_T_APC_PD1_aPD1 <- q_syn_T_APC_PD1_aPD1/m_syn_T_APC
    x_syn_T_APC_PD1_aPD1_PD1 <- q_syn_T_APC_PD1_aPD1_PD1/m_syn_T_APC
    x_syn_T_APC_TPDL1 <- q_syn_T_APC_TPDL1/m_syn_T_APC
    x_syn_T_APC_CD28_CD80 <- q_syn_T_APC_CD28_CD80/m_syn_T_APC
    x_syn_T_APC_CD28_CD80_CD28 <- q_syn_T_APC_CD28_CD80_CD28/m_syn_T_APC
    x_syn_T_APC_CD28_CD86 <- q_syn_T_APC_CD28_CD86/m_syn_T_APC
    x_syn_T_APC_CD80_CTLA4 <- q_syn_T_APC_CD80_CTLA4/m_syn_T_APC
    x_syn_T_APC_CD80_CTLA4_CD80 <- q_syn_T_APC_CD80_CTLA4_CD80/m_syn_T_APC
    x_syn_T_APC_CTLA4_CD80_CTLA4 <- q_syn_T_APC_CTLA4_CD80_CTLA4/m_syn_T_APC
    x_syn_T_APC_CD80_CTLA4_CD80_CTLA4 <- q_syn_T_APC_CD80_CTLA4_CD80_CTLA4/m_syn_T_APC
    x_syn_T_APC_CD86_CTLA4 <- q_syn_T_APC_CD86_CTLA4/m_syn_T_APC
    x_syn_T_APC_CD86_CTLA4_CD86 <- q_syn_T_APC_CD86_CTLA4_CD86/m_syn_T_APC
    x_syn_T_APC_PDL1_CD80 <- q_syn_T_APC_PDL1_CD80/m_syn_T_APC
    x_syn_T_APC_PDL1_CD80_CD28 <- q_syn_T_APC_PDL1_CD80_CD28/m_syn_T_APC
    x_syn_T_APC_PDL1_CD80_CTLA4 <- q_syn_T_APC_PDL1_CD80_CTLA4/m_syn_T_APC
    x_syn_T_APC_CD28 <- q_syn_T_APC_CD28/m_syn_T_APC
    x_syn_T_APC_CTLA4 <- q_syn_T_APC_CTLA4/m_syn_T_APC
    x_syn_T_APC_CD80 <- q_syn_T_APC_CD80/m_syn_T_APC
    x_syn_T_APC_CD80m <- q_syn_T_APC_CD80m/m_syn_T_APC
    x_syn_T_APC_CD86 <- q_syn_T_APC_CD86/m_syn_T_APC
    x_syn_T_APC_CTLA4_aCTLA4 <- q_syn_T_APC_CTLA4_aCTLA4/m_syn_T_APC
    x_syn_T_APC_CTLA4_aCTLA4_CTLA4 <- q_syn_T_APC_CTLA4_aCTLA4_CTLA4/m_syn_T_APC
    x_syn_M_C_CD47 <- q_syn_M_C_CD47/m_syn_M_C
    x_syn_M_C_SIRPa <- q_syn_M_C_SIRPa/m_syn_M_C
    x_syn_M_C_CD47_SIRPa <- q_syn_M_C_CD47_SIRPa/m_syn_M_C
    x_syn_M_C_PD1_PDL1 <- q_syn_M_C_PD1_PDL1/m_syn_M_C
    x_syn_M_C_PD1_PDL2 <- q_syn_M_C_PD1_PDL2/m_syn_M_C
    x_syn_M_C_PD1 <- q_syn_M_C_PD1/m_syn_M_C
    x_syn_M_C_PDL1 <- q_syn_M_C_PDL1/m_syn_M_C
    x_syn_M_C_PDL2 <- q_syn_M_C_PDL2/m_syn_M_C
    x_syn_M_C_PD1_aPD1 <- q_syn_M_C_PD1_aPD1/m_syn_M_C
    x_syn_M_C_PD1_aPD1_PD1 <- q_syn_M_C_PD1_aPD1_PD1/m_syn_M_C
    x_syn_M_C_PDL1_CD80 <- q_syn_M_C_PDL1_CD80/m_syn_M_C
    x_syn_M_C_CD80 <- q_syn_M_C_CD80/m_syn_M_C
    x_syn_M_C_CD80m <- q_syn_M_C_CD80m/m_syn_M_C
    C_total <- 0 * p_cell + x_V_T_C1 + x_V_T_C2   # Wang 2022 Table S5 rule 2
    T_total <- 0 * p_cell + x_V_T_T0 + x_V_T_T1 + x_V_T_Th   # Wang 2022 Table S5 rule 3
    T_total_LN <- 0 * p_cell + x_V_LN_T0 + x_V_LN_T1 + x_V_LN_Th   # Wang 2022 Table S5 rule 4
    C_max <- x_V_T_K   # Wang 2022 Table S5 rule 6
    Tregs_ <- x_V_T_T0   # Wang 2022 Table S5 rule 7
    H_APC <- p_n_sites_APC * x_V_LN_mAPC/(p_n_sites_APC * x_V_LN_mAPC + x_V_LN_nT0 * p_n_T0_clones + p_cell)   # Wang 2022 Table S5 rule 10
    H_mAPC <- p_n_sites_APC * x_V_LN_mAPC/(p_n_sites_APC * x_V_LN_mAPC + x_V_LN_nT1 * p_n_T1_clones + p_cell)   # Wang 2022 Table S5 rule 11
    H_APCh <- p_n_sites_APC * x_V_LN_mAPC/(p_n_sites_APC * x_V_LN_mAPC + x_V_LN_nT0 * p_n_T1_clones + p_cell)   # Wang 2022 Table S5 rule 12
    H_ArgI_Teff <- x_V_T_ArgI/(p_ArgI_50_Teff + x_V_T_ArgI)   # Wang 2022 Table S5 rule 45
    H_ArgI_Treg <- x_V_T_ArgI/(p_ArgI_50_Treg + x_V_T_ArgI)   # Wang 2022 Table S5 rule 46
    k_C2_growth <- p_k_C1_growth   # Wang 2022 Table S5 rule 51
    k_C2_death <- p_k_C1_death   # Wang 2022 Table S5 rule 52
    M_total <- x_V_T_Mac_M1 + x_V_T_Mac_M2   # Wang 2022 Table S5 rule 64
    x_V_C_P_mm <- q_V_C_P_mm/m_V_C
    x_V_C_P_mo <- q_V_C_P_mo/m_V_C
    x_V_C_P_oo <- q_V_C_P_oo/m_V_C
    x_V_C_P_cm <- q_V_C_P_cm/m_V_C
    x_V_C_P_co <- q_V_C_P_co/m_V_C
    x_V_C_P_cc <- q_V_C_P_cc/m_V_C
    x_V_P_P_mm <- q_V_P_P_mm/m_V_P
    x_V_P_P_mo <- q_V_P_P_mo/m_V_P
    x_V_P_P_oo <- q_V_P_P_oo/m_V_P
    x_V_P_P_cm <- q_V_P_P_cm/m_V_P
    x_V_P_P_co <- q_V_P_P_co/m_V_P
    x_V_P_P_cc <- q_V_P_P_cc/m_V_P
    x_V_LN_P_mm <- q_V_LN_P_mm/m_V_LN
    x_V_LN_P_mo <- q_V_LN_P_mo/m_V_LN
    x_V_LN_P_oo <- q_V_LN_P_oo/m_V_LN
    x_V_LN_P_cm <- q_V_LN_P_cm/m_V_LN
    x_V_LN_P_co <- q_V_LN_P_co/m_V_LN
    x_V_LN_P_cc <- q_V_LN_P_cc/m_V_LN
    x_syn_T_C1_PDL1_P_mo_fb <- q_syn_T_C1_PDL1_P_mo_fb/m_syn_T_C1
    x_syn_T_C1_PDL1_P_oo_fb <- q_syn_T_C1_PDL1_P_oo_fb/m_syn_T_C1
    x_syn_T_C1_PDL1_P_cm_bf <- q_syn_T_C1_PDL1_P_cm_bf/m_syn_T_C1
    x_syn_T_C1_PDL1_P_co_bf <- q_syn_T_C1_PDL1_P_co_bf/m_syn_T_C1
    x_syn_T_C1_PDL1_P_co_fb <- q_syn_T_C1_PDL1_P_co_fb/m_syn_T_C1
    x_syn_T_C1_PDL1_P_cc_fb <- q_syn_T_C1_PDL1_P_cc_fb/m_syn_T_C1
    x_syn_T_C1_PDL1_P_oo_bb <- q_syn_T_C1_PDL1_P_oo_bb/m_syn_T_C1
    x_syn_T_C1_PDL1_P_co_bb <- q_syn_T_C1_PDL1_P_co_bb/m_syn_T_C1
    x_syn_T_C1_PDL1_P_cc_bb <- q_syn_T_C1_PDL1_P_cc_bb/m_syn_T_C1
    x_syn_T_C1_TPDL1_P_mo_fb <- q_syn_T_C1_TPDL1_P_mo_fb/m_syn_T_C1
    x_syn_T_C1_TPDL1_P_oo_fb <- q_syn_T_C1_TPDL1_P_oo_fb/m_syn_T_C1
    x_syn_T_C1_TPDL1_P_cm_bf <- q_syn_T_C1_TPDL1_P_cm_bf/m_syn_T_C1
    x_syn_T_C1_TPDL1_P_co_bf <- q_syn_T_C1_TPDL1_P_co_bf/m_syn_T_C1
    x_syn_T_C1_TPDL1_P_co_fb <- q_syn_T_C1_TPDL1_P_co_fb/m_syn_T_C1
    x_syn_T_C1_TPDL1_P_cc_fb <- q_syn_T_C1_TPDL1_P_cc_fb/m_syn_T_C1
    x_syn_T_C1_TPDL1_P_oo_bb <- q_syn_T_C1_TPDL1_P_oo_bb/m_syn_T_C1
    x_syn_T_C1_TPDL1_P_co_bb <- q_syn_T_C1_TPDL1_P_co_bb/m_syn_T_C1
    x_syn_T_C1_TPDL1_P_cc_bb <- q_syn_T_C1_TPDL1_P_cc_bb/m_syn_T_C1
    x_syn_T_APC_PDL1_P_mo_fb <- q_syn_T_APC_PDL1_P_mo_fb/m_syn_T_APC
    x_syn_T_APC_PDL1_P_oo_fb <- q_syn_T_APC_PDL1_P_oo_fb/m_syn_T_APC
    x_syn_T_APC_PDL1_P_cm_bf <- q_syn_T_APC_PDL1_P_cm_bf/m_syn_T_APC
    x_syn_T_APC_PDL1_P_co_bf <- q_syn_T_APC_PDL1_P_co_bf/m_syn_T_APC
    x_syn_T_APC_PDL1_P_co_fb <- q_syn_T_APC_PDL1_P_co_fb/m_syn_T_APC
    x_syn_T_APC_PDL1_P_cc_fb <- q_syn_T_APC_PDL1_P_cc_fb/m_syn_T_APC
    x_syn_T_APC_PDL1_P_oo_bb <- q_syn_T_APC_PDL1_P_oo_bb/m_syn_T_APC
    x_syn_T_APC_PDL1_P_co_bb <- q_syn_T_APC_PDL1_P_co_bb/m_syn_T_APC
    x_syn_T_APC_PDL1_P_cc_bb <- q_syn_T_APC_PDL1_P_cc_bb/m_syn_T_APC
    x_syn_T_APC_TPDL1_P_mo_fb <- q_syn_T_APC_TPDL1_P_mo_fb/m_syn_T_APC
    x_syn_T_APC_TPDL1_P_oo_fb <- q_syn_T_APC_TPDL1_P_oo_fb/m_syn_T_APC
    x_syn_T_APC_TPDL1_P_cm_bf <- q_syn_T_APC_TPDL1_P_cm_bf/m_syn_T_APC
    x_syn_T_APC_TPDL1_P_co_bf <- q_syn_T_APC_TPDL1_P_co_bf/m_syn_T_APC
    x_syn_T_APC_TPDL1_P_co_fb <- q_syn_T_APC_TPDL1_P_co_fb/m_syn_T_APC
    x_syn_T_APC_TPDL1_P_cc_fb <- q_syn_T_APC_TPDL1_P_cc_fb/m_syn_T_APC
    x_syn_T_APC_TPDL1_P_oo_bb <- q_syn_T_APC_TPDL1_P_oo_bb/m_syn_T_APC
    x_syn_T_APC_TPDL1_P_co_bb <- q_syn_T_APC_TPDL1_P_co_bb/m_syn_T_APC
    x_syn_T_APC_TPDL1_P_cc_bb <- q_syn_T_APC_TPDL1_P_cc_bb/m_syn_T_APC
    x_syn_M_C_PDL1_P_mo_fb <- q_syn_M_C_PDL1_P_mo_fb/m_syn_M_C
    x_syn_M_C_PDL1_P_oo_fb <- q_syn_M_C_PDL1_P_oo_fb/m_syn_M_C
    x_syn_M_C_PDL1_P_cm_bf <- q_syn_M_C_PDL1_P_cm_bf/m_syn_M_C
    x_syn_M_C_PDL1_P_co_bf <- q_syn_M_C_PDL1_P_co_bf/m_syn_M_C
    x_syn_M_C_PDL1_P_co_fb <- q_syn_M_C_PDL1_P_co_fb/m_syn_M_C
    x_syn_M_C_PDL1_P_cc_fb <- q_syn_M_C_PDL1_P_cc_fb/m_syn_M_C
    x_syn_M_C_PDL1_P_oo_bb <- q_syn_M_C_PDL1_P_oo_bb/m_syn_M_C
    x_syn_M_C_PDL1_P_co_bb <- q_syn_M_C_PDL1_P_co_bb/m_syn_M_C
    x_syn_M_C_PDL1_P_cc_bb <- q_syn_M_C_PDL1_P_cc_bb/m_syn_M_C
    x_oos_C1_PDL1_P_mo_fb <- q_oos_C1_PDL1_P_mo_fb/m_oos_C1
    x_oos_C1_PDL1_P_oo_fb <- q_oos_C1_PDL1_P_oo_fb/m_oos_C1
    x_oos_C1_PDL1_P_cm_bf <- q_oos_C1_PDL1_P_cm_bf/m_oos_C1
    x_oos_C1_PDL1_P_co_bf <- q_oos_C1_PDL1_P_co_bf/m_oos_C1
    x_oos_C1_PDL1_P_co_fb <- q_oos_C1_PDL1_P_co_fb/m_oos_C1
    x_oos_C1_PDL1_P_cc_fb <- q_oos_C1_PDL1_P_cc_fb/m_oos_C1
    x_oos_C1_PDL1_P_oo_bb <- q_oos_C1_PDL1_P_oo_bb/m_oos_C1
    x_oos_C1_PDL1_P_co_bb <- q_oos_C1_PDL1_P_co_bb/m_oos_C1
    x_oos_C1_PDL1_P_cc_bb <- q_oos_C1_PDL1_P_cc_bb/m_oos_C1
    x_oos_T_PDL1_P_mo_fb <- q_oos_T_PDL1_P_mo_fb/m_oos_T
    x_oos_T_PDL1_P_oo_fb <- q_oos_T_PDL1_P_oo_fb/m_oos_T
    x_oos_T_PDL1_P_cm_bf <- q_oos_T_PDL1_P_cm_bf/m_oos_T
    x_oos_T_PDL1_P_co_bf <- q_oos_T_PDL1_P_co_bf/m_oos_T
    x_oos_T_PDL1_P_co_fb <- q_oos_T_PDL1_P_co_fb/m_oos_T
    x_oos_T_PDL1_P_cc_fb <- q_oos_T_PDL1_P_cc_fb/m_oos_T
    x_oos_T_PDL1_P_oo_bb <- q_oos_T_PDL1_P_oo_bb/m_oos_T
    x_oos_T_PDL1_P_co_bb <- q_oos_T_PDL1_P_co_bb/m_oos_T
    x_oos_T_PDL1_P_cc_bb <- q_oos_T_PDL1_P_cc_bb/m_oos_T
    x_oos_M_PDL1_P_mo_fb <- q_oos_M_PDL1_P_mo_fb/m_oos_M
    x_oos_M_PDL1_P_oo_fb <- q_oos_M_PDL1_P_oo_fb/m_oos_M
    x_oos_M_PDL1_P_cm_bf <- q_oos_M_PDL1_P_cm_bf/m_oos_M
    x_oos_M_PDL1_P_co_bf <- q_oos_M_PDL1_P_co_bf/m_oos_M
    x_oos_M_PDL1_P_co_fb <- q_oos_M_PDL1_P_co_fb/m_oos_M
    x_oos_M_PDL1_P_cc_fb <- q_oos_M_PDL1_P_cc_fb/m_oos_M
    x_oos_M_PDL1_P_oo_bb <- q_oos_M_PDL1_P_oo_bb/m_oos_M
    x_oos_M_PDL1_P_co_bb <- q_oos_M_PDL1_P_co_bb/m_oos_M
    x_oos_M_PDL1_P_cc_bb <- q_oos_M_PDL1_P_cc_bb/m_oos_M
    x_oos_APC_PDL1_P_mo_fb <- q_oos_APC_PDL1_P_mo_fb/m_oos_APC
    x_oos_APC_PDL1_P_oo_fb <- q_oos_APC_PDL1_P_oo_fb/m_oos_APC
    x_oos_APC_PDL1_P_cm_bf <- q_oos_APC_PDL1_P_cm_bf/m_oos_APC
    x_oos_APC_PDL1_P_co_bf <- q_oos_APC_PDL1_P_co_bf/m_oos_APC
    x_oos_APC_PDL1_P_co_fb <- q_oos_APC_PDL1_P_co_fb/m_oos_APC
    x_oos_APC_PDL1_P_cc_fb <- q_oos_APC_PDL1_P_cc_fb/m_oos_APC
    x_oos_APC_PDL1_P_oo_bb <- q_oos_APC_PDL1_P_oo_bb/m_oos_APC
    x_oos_APC_PDL1_P_co_bb <- q_oos_APC_PDL1_P_co_bb/m_oos_APC
    x_oos_APC_PDL1_P_cc_bb <- q_oos_APC_PDL1_P_cc_bb/m_oos_APC
    x_oos_C1_PDL1 <- q_oos_C1_PDL1/m_oos_C1
    x_oos_T_PDL1 <- q_oos_T_PDL1/m_oos_T
    x_oos_M_PDL1 <- q_oos_M_PDL1/m_oos_M
    x_oos_APC_PDL1 <- q_oos_APC_PDL1/m_oos_APC
    v1 <- p_k_cell_clear * x_V_T_C_x   # R1 Clearance of dead cancer cells from tumor
    v2 <- p_k_cell_clear * x_V_T_T1_exh   # R2 Clearance of exhausted CD8 T cells from tumor
    v3 <- p_k_cell_clear * x_V_T_Th_exh   # R3 Clearance of exhausted CD4 T cells from tumor
    v5 <- p_k_C1_death * x_V_T_C1   # R5 Cancer cell death
    v12 <- p_Q_nT0_thym/p_div_T0   # R12 Thymic output of naive T cell to blood
    v13 <- p_k_nT0_pro/p_div_T0 * x_V_P_nT0/(p_K_nT0_pro/p_div_T0 + x_V_P_nT0)   # R13 Naive T cell proliferation in the peripheral compartment
    v14 <- p_k_nT0_pro/p_div_T0 * x_V_LN_nT0/(p_K_nT0_pro/p_div_T0 + x_V_LN_nT0)   # R14 Naive T cell proliferation in the TDLN compartment
    v15 <- p_k_nT0_death * x_V_P_nT0   # R15 Naive T cell death in the peripheral compartment
    v16 <- p_k_nT0_death * x_V_C_nT0   # R16 Naive T cell death in the central compartment
    v17 <- p_k_nT0_death * x_V_LN_nT0   # R17 Naive T cell death in the TDLN compartment
    v18 <- p_q_nT0_P_in * x_V_C_nT0   # R18 Naive T cell entry into the peripheral compartment
    v19 <- p_q_nT0_P_out * x_V_P_nT0   # R19 Naive T cell exit from the peripheral compartment
    v20 <- p_q_nT0_LN_in * x_V_C_nT0   # R20 Naive T cell entry into the lymph node
    v21 <- p_q_nT0_LN_out * x_V_LN_nT0   # R21 Naive T cell exit from the lymph node
    v26 <- p_k_T0_death * x_V_C_T0   # R26 T cell death in the central compartment
    v27 <- p_k_T0_death * x_V_P_T0   # R27 T cell death in the peripheral compartment
    v28 <- p_k_T0_death * x_V_LN_T0   # R28 T cell death in the lymph node compartment
    v29 <- p_k_T0_death * x_V_T_T0   # R29 T cell death in the tumor compartment
    v31 <- p_q_T0_P_in * x_V_C_T0   # R31 T cell transport into the peripheral compartment
    v32 <- p_q_T0_P_out * x_V_P_T0   # R32 T cell transport out of the peripheral compartment
    v34 <- p_q_T0_LN_out * x_V_LN_T0   # R34 T cell transport out of the lymph node compartment
    v38 <- p_Q_nT1_thym/p_div_T1   # R38 Thymic output of naive T cell to blood
    v39 <- p_k_nT1_pro/p_div_T1 * x_V_P_nT1/(p_K_nT1_pro/p_div_T1 + x_V_P_nT1)   # R39 Naive T cell proliferation in the peripheral compartment
    v40 <- p_k_nT1_pro/p_div_T1 * x_V_LN_nT1/(p_K_nT1_pro/p_div_T1 + x_V_LN_nT1)   # R40 Naive T cell proliferation in the TDLN compartment
    v41 <- p_k_nT1_death * x_V_P_nT1   # R41 Naive T cell death in the peripheral compartment
    v42 <- p_k_nT1_death * x_V_C_nT1   # R42 Naive T cell death in the central compartment
    v43 <- p_k_nT1_death * x_V_LN_nT1   # R43 Naive T cell death in the TDLN compartment
    v44 <- p_q_nT1_P_in * x_V_C_nT1   # R44 Naive T cell entry into the peripheral compartment
    v45 <- p_q_nT1_P_out * x_V_P_nT1   # R45 Naive T cell exit from the peripheral compartment
    v46 <- p_q_nT1_LN_in * x_V_C_nT1   # R46 Naive T cell entry into the lymph node
    v47 <- p_q_nT1_LN_out * x_V_LN_nT1   # R47 Naive T cell exit from the lymph node
    v52 <- p_k_T1_death * x_V_C_T1   # R52 T cell death in the central compartment
    v53 <- p_k_T1_death * x_V_P_T1   # R53 T cell death in the peripheral compartment
    v54 <- p_k_T1_death * x_V_LN_T1   # R54 T cell death in the lymph node compartment
    v55 <- p_k_T1_death * x_V_T_T1   # R55 T cell death in the tumor compartment
    v59 <- p_q_T1_P_in * x_V_C_T1   # R59 T cell transport into the peripheral compartment
    v60 <- p_q_T1_P_out * x_V_P_T1   # R60 T cell transport out of the peripheral compartment
    v62 <- p_q_T1_LN_out * x_V_LN_T1   # R62 T cell transport out of the lymph node compartment
    v63 <- p_k_IL2_sec * x_V_LN_aT1   # R63 IL2 secretion from activated T cells
    v67 <- p_k_APC_death * (p_APC0_LN * m_V_LN - x_V_LN_APC)   # R67 APC recruitment/death in LN
    v69 <- p_k_APC_mig * x_V_T_mAPC   # R69 APC migration to the lymph node
    v70 <- p_k_mAPC_death * x_V_T_mAPC   # R70 mAPC death in the tumour
    v71 <- p_k_mAPC_death * x_V_LN_mAPC   # R71 mAPC death in the lymph node
    v174 <- p_k_T0_death * x_V_C_Th   # R174 T cell death in the central compartment
    v175 <- p_k_T0_death * x_V_P_Th   # R175 T cell death in the peripheral compartment
    v176 <- p_k_T0_death * x_V_LN_Th   # R176 T cell death in the lymph node compartment
    v177 <- p_k_T0_death * x_V_T_Th   # R177 T cell death in the tumor compartment
    v179 <- p_q_T0_P_in * x_V_C_Th   # R179 T cell transport into the peripheral compartment
    v180 <- p_q_T0_P_out * x_V_P_Th   # R180 T cell transport out of the peripheral compartment
    v182 <- p_q_T0_LN_out * x_V_LN_Th   # R182 T cell transport out of the lymph node compartment
    v183 <- p_k_IL2_sec * x_V_LN_aTh   # R183 IL2 secretion from activated T cells
    v185 <- p_k_TGFb_Tsec * x_V_T_T0   # R185 TGFb secretion from activated T cells in tumor
    v186 <- p_k_IFNg_sec * x_V_T_Th   # R186 IFNg secretion from T helper cells in tumor
    v191 <- p_k_MDSC_death * x_V_T_MDSC   # R191 MDSC death in the tumor compartment
    v194 <- p_k_ArgI_deg * x_V_T_ArgI   # R194 ArgI degradation
    v195 <- p_k_NO_sec * x_V_T_MDSC   # R195 NO secretion from MDSC
    v196 <- p_k_ArgI_sec * x_V_T_MDSC   # R196 ArgI secretion from MDSC
    v208 <- p_k_Mac_death * x_V_T_Mac_M1   # R208 Death of macrophage in tumor
    v209 <- p_k_Mac_death * x_V_T_Mac_M2   # R209 Death of macrophage in tumor
    v210 <- p_k_IL12_sec * x_V_T_mAPC   # R210 Secretion of IL-12 by APC in the tumor
    v211 <- p_k_IL12_Msec * x_V_T_Mac_M1   # R211 Secretion of IL-12 by macrophage in tumor
    v213 <- p_k_TGFb_Msec * x_V_T_Mac_M2   # R213 Secretion of TGFb by macrophage in tumor
    v214 <- p_k_vas_Msec * x_V_T_Mac_M2   # R214 Secretion of angiogenic factor by macrophage in tumor
    v215 <- p_k_IL10_sec * x_V_T_Mac_M2   # R215 Secretion of IL-10 by macrophage in tumor
    pTCR_p0_MHC_tot <- p_k_M1p0_TCR_off/(p_k_M1p0_TCR_off + p_phi_M1p0_TCR) * (p_k_M1p0_TCR_p/(p_k_M1p0_TCR_off + p_k_M1p0_TCR_p))^p_N_M1p0_TCR * (0.5 * (x_A_s_M1p0/p_n_T0_clones + p_TCR_p0_tot + p_k_M1p0_TCR_off/p_k_M1p0_TCR_on - p_TCR_p0_tot * sqrt(((x_A_s_M1p0/p_n_T0_clones + p_TCR_p0_tot + p_k_M1p0_TCR_off/p_k_M1p0_TCR_on)/p_TCR_p0_tot)^2 - 4 * x_A_s_M1p0/p_n_T0_clones/p_TCR_p0_tot)))   # Wang 2022 Table S5 rule 13
    pTCR_p1_MHC_tot <- p_k_M1p1_TCR_off/(p_k_M1p1_TCR_off + p_phi_M1p1_TCR) * (p_k_M1p1_TCR_p/(p_k_M1p1_TCR_off + p_k_M1p1_TCR_p))^p_N_M1p1_TCR * (0.5 * (x_A_s_M1p1/p_n_T1_clones + p_TCR_p1_tot + p_k_M1p1_TCR_off/p_k_M1p1_TCR_on - p_TCR_p1_tot * sqrt(((x_A_s_M1p1/p_n_T1_clones + p_TCR_p1_tot + p_k_M1p1_TCR_off/p_k_M1p1_TCR_on)/p_TCR_p1_tot)^2 - 4 * x_A_s_M1p1/p_n_T1_clones/p_TCR_p1_tot)))   # Wang 2022 Table S5 rule 15
    H_PD1_C1 <- ((x_syn_T_C1_PD1_PDL1 + x_syn_T_C1_PD1_PDL2)/p_PD1_50)^p_n_PD1/(((x_syn_T_C1_PD1_PDL1 + x_syn_T_C1_PD1_PDL2)/p_PD1_50)^p_n_PD1 + 1)   # Wang 2022 Table S5 rule 27
    H_CD28_C1 <- ((x_syn_T_C1_CD28_CD80 + x_syn_T_C1_CD28_CD86 + 2 * x_syn_T_C1_CD28_CD80_CD28 + x_syn_T_C1_PDL1_CD80_CD28)/p_CD28_CD8X_50)^p_n_CD28_CD8X/(((x_syn_T_C1_CD28_CD80 + x_syn_T_C1_CD28_CD86 + 2 * x_syn_T_C1_CD28_CD80_CD28 + x_syn_T_C1_PDL1_CD80_CD28)/p_CD28_CD8X_50)^p_n_CD28_CD8X + 1)   # Wang 2022 Table S5 rule 28
    H_PD1_APC <- ((x_syn_T_APC_PD1_PDL1 + x_syn_T_APC_PD1_PDL2)/p_PD1_50)^p_n_PD1/(((x_syn_T_APC_PD1_PDL1 + x_syn_T_APC_PD1_PDL2)/p_PD1_50)^p_n_PD1 + 1)   # Wang 2022 Table S5 rule 39
    H_CD28_APC <- ((x_syn_T_APC_CD28_CD80 + x_syn_T_APC_CD28_CD86 + 2 * x_syn_T_APC_CD28_CD80_CD28 + x_syn_T_APC_PDL1_CD80_CD28)/p_CD28_CD8X_50)^p_n_CD28_CD8X/(((x_syn_T_APC_CD28_CD80 + x_syn_T_APC_CD28_CD86 + 2 * x_syn_T_APC_CD28_CD80_CD28 + x_syn_T_APC_PDL1_CD80_CD28)/p_CD28_CD8X_50)^p_n_CD28_CD8X + 1)   # Wang 2022 Table S5 rule 40
    H_SIRPa <- (x_syn_M_C_CD47_SIRPa/p_SIRPa_50)^p_n_SIRPa/((x_syn_M_C_CD47_SIRPa/p_SIRPa_50)^p_n_SIRPa + 1)   # Wang 2022 Table S5 rule 61
    H_PD1_M <- ((x_syn_M_C_PD1_PDL1 + x_syn_M_C_PD1_PDL2)/p_PD1_50)^p_n_PD1/(((x_syn_M_C_PD1_PDL1 + x_syn_M_C_PD1_PDL2)/p_PD1_50)^p_n_PD1 + 1)   # Wang 2022 Table S5 rule 62
    vol_V_T <- ((x_V_T_C_x + C_total) * p_vol_cell + (x_V_T_T1_exh + x_V_T_Th_exh + T_total) * p_vol_Tcell)/p_Ve_T + M_total * p_vol_Mcell/p_Ve_T   # Wang 2022 Table S5 rule 1
    vpb_diffP_P_mm <- p_q_P_aPDL1*(x_V_C_P_mm/p_gamma_C_aPDL1-x_V_P_P_mm/p_gamma_P_aPDL1)   # PbTx P_mm diffusive central<->peripheral (Appendix S1 Eq S30/S31)
    vpb_diffLN_P_mm <- p_q_LN_aPDL1*(x_V_C_P_mm/p_gamma_C_aPDL1-x_V_LN_P_mm/p_gamma_LN_aPDL1)   # PbTx P_mm diffusive central<->TDLN (Appendix S1 Eq S30/S33)
    vpb_cl_P_mm <- p_k_cl_aPDL1*x_V_C_P_mm/p_gamma_C_aPDL1   # PbTx P_mm clearance from central (Appendix S1 Eq S30)
    vpb_diffP_P_mo <- p_q_P_aPDL1*(x_V_C_P_mo/p_gamma_C_aPDL1-x_V_P_P_mo/p_gamma_P_aPDL1)   # PbTx P_mo diffusive central<->peripheral (Appendix S1 Eq S30/S31)
    vpb_diffLN_P_mo <- p_q_LN_aPDL1*(x_V_C_P_mo/p_gamma_C_aPDL1-x_V_LN_P_mo/p_gamma_LN_aPDL1)   # PbTx P_mo diffusive central<->TDLN (Appendix S1 Eq S30/S33)
    vpb_cl_P_mo <- p_k_cl_aPDL1*x_V_C_P_mo/p_gamma_C_aPDL1   # PbTx P_mo clearance from central (Appendix S1 Eq S30)
    vpb_diffP_P_oo <- p_q_P_aPDL1*(x_V_C_P_oo/p_gamma_C_aPDL1-x_V_P_P_oo/p_gamma_P_aPDL1)   # PbTx P_oo diffusive central<->peripheral (Appendix S1 Eq S30/S31)
    vpb_diffLN_P_oo <- p_q_LN_aPDL1*(x_V_C_P_oo/p_gamma_C_aPDL1-x_V_LN_P_oo/p_gamma_LN_aPDL1)   # PbTx P_oo diffusive central<->TDLN (Appendix S1 Eq S30/S33)
    vpb_cl_P_oo <- p_k_cl_aPDL1*x_V_C_P_oo/p_gamma_C_aPDL1   # PbTx P_oo clearance from central (Appendix S1 Eq S30)
    vpb_diffP_P_cm <- p_q_P_aPDL1*(x_V_C_P_cm/p_gamma_C_aPDL1-x_V_P_P_cm/p_gamma_P_aPDL1)   # PbTx P_cm diffusive central<->peripheral (Appendix S1 Eq S30/S31)
    vpb_diffLN_P_cm <- p_q_LN_aPDL1*(x_V_C_P_cm/p_gamma_C_aPDL1-x_V_LN_P_cm/p_gamma_LN_aPDL1)   # PbTx P_cm diffusive central<->TDLN (Appendix S1 Eq S30/S33)
    vpb_cl_P_cm <- p_k_cl_aPDL1*x_V_C_P_cm/p_gamma_C_aPDL1   # PbTx P_cm clearance from central (Appendix S1 Eq S30)
    vpb_diffP_P_co <- p_q_P_aPDL1*(x_V_C_P_co/p_gamma_C_aPDL1-x_V_P_P_co/p_gamma_P_aPDL1)   # PbTx P_co diffusive central<->peripheral (Appendix S1 Eq S30/S31)
    vpb_diffLN_P_co <- p_q_LN_aPDL1*(x_V_C_P_co/p_gamma_C_aPDL1-x_V_LN_P_co/p_gamma_LN_aPDL1)   # PbTx P_co diffusive central<->TDLN (Appendix S1 Eq S30/S33)
    vpb_cl_P_co <- p_k_cl_aPDL1*x_V_C_P_co/p_gamma_C_aPDL1   # PbTx P_co clearance from central (Appendix S1 Eq S30)
    vpb_diffP_P_cc <- p_q_P_aPDL1*(x_V_C_P_cc/p_gamma_C_aPDL1-x_V_P_P_cc/p_gamma_P_aPDL1)   # PbTx P_cc diffusive central<->peripheral (Appendix S1 Eq S30/S31)
    vpb_diffLN_P_cc <- p_q_LN_aPDL1*(x_V_C_P_cc/p_gamma_C_aPDL1-x_V_LN_P_cc/p_gamma_LN_aPDL1)   # PbTx P_cc diffusive central<->TDLN (Appendix S1 Eq S30/S33)
    vpb_cl_P_cc <- p_k_cl_aPDL1*x_V_C_P_cc/p_gamma_C_aPDL1   # PbTx P_cc clearance from central (Appendix S1 Eq S30)
    pdl1PbTx_syn_T_C1_PDL1 <- x_syn_T_C1_PDL1_P_mo_fb+x_syn_T_C1_PDL1_P_oo_fb+x_syn_T_C1_PDL1_P_cm_bf+x_syn_T_C1_PDL1_P_co_bf+x_syn_T_C1_PDL1_P_co_fb+x_syn_T_C1_PDL1_P_cc_fb+2*(x_syn_T_C1_PDL1_P_oo_bb+x_syn_T_C1_PDL1_P_co_bb+x_syn_T_C1_PDL1_P_cc_bb)   # PD-L1 bound by PbTx at this site (Appendix S1 Eqs S57-S65)
    pdl1PbTx_syn_T_C1_TPDL1 <- x_syn_T_C1_TPDL1_P_mo_fb+x_syn_T_C1_TPDL1_P_oo_fb+x_syn_T_C1_TPDL1_P_cm_bf+x_syn_T_C1_TPDL1_P_co_bf+x_syn_T_C1_TPDL1_P_co_fb+x_syn_T_C1_TPDL1_P_cc_fb+2*(x_syn_T_C1_TPDL1_P_oo_bb+x_syn_T_C1_TPDL1_P_co_bb+x_syn_T_C1_TPDL1_P_cc_bb)   # PD-L1 bound by PbTx at this site (Appendix S1 Eqs S57-S65)
    pdl1PbTx_syn_T_APC_PDL1 <- x_syn_T_APC_PDL1_P_mo_fb+x_syn_T_APC_PDL1_P_oo_fb+x_syn_T_APC_PDL1_P_cm_bf+x_syn_T_APC_PDL1_P_co_bf+x_syn_T_APC_PDL1_P_co_fb+x_syn_T_APC_PDL1_P_cc_fb+2*(x_syn_T_APC_PDL1_P_oo_bb+x_syn_T_APC_PDL1_P_co_bb+x_syn_T_APC_PDL1_P_cc_bb)   # PD-L1 bound by PbTx at this site (Appendix S1 Eqs S57-S65)
    pdl1PbTx_syn_T_APC_TPDL1 <- x_syn_T_APC_TPDL1_P_mo_fb+x_syn_T_APC_TPDL1_P_oo_fb+x_syn_T_APC_TPDL1_P_cm_bf+x_syn_T_APC_TPDL1_P_co_bf+x_syn_T_APC_TPDL1_P_co_fb+x_syn_T_APC_TPDL1_P_cc_fb+2*(x_syn_T_APC_TPDL1_P_oo_bb+x_syn_T_APC_TPDL1_P_co_bb+x_syn_T_APC_TPDL1_P_cc_bb)   # PD-L1 bound by PbTx at this site (Appendix S1 Eqs S57-S65)
    pdl1PbTx_syn_M_C_PDL1 <- x_syn_M_C_PDL1_P_mo_fb+x_syn_M_C_PDL1_P_oo_fb+x_syn_M_C_PDL1_P_cm_bf+x_syn_M_C_PDL1_P_co_bf+x_syn_M_C_PDL1_P_co_fb+x_syn_M_C_PDL1_P_cc_fb+2*(x_syn_M_C_PDL1_P_oo_bb+x_syn_M_C_PDL1_P_co_bb+x_syn_M_C_PDL1_P_cc_bb)   # PD-L1 bound by PbTx at this site (Appendix S1 Eqs S57-S65)
    pdl1PbTx_oos_C1_PDL1 <- x_oos_C1_PDL1_P_mo_fb+x_oos_C1_PDL1_P_oo_fb+x_oos_C1_PDL1_P_cm_bf+x_oos_C1_PDL1_P_co_bf+x_oos_C1_PDL1_P_co_fb+x_oos_C1_PDL1_P_cc_fb+2*(x_oos_C1_PDL1_P_oo_bb+x_oos_C1_PDL1_P_co_bb+x_oos_C1_PDL1_P_cc_bb)   # PD-L1 bound by PbTx at this site (Appendix S1 Eqs S57-S65)
    pdl1PbTx_oos_T_PDL1 <- x_oos_T_PDL1_P_mo_fb+x_oos_T_PDL1_P_oo_fb+x_oos_T_PDL1_P_cm_bf+x_oos_T_PDL1_P_co_bf+x_oos_T_PDL1_P_co_fb+x_oos_T_PDL1_P_cc_fb+2*(x_oos_T_PDL1_P_oo_bb+x_oos_T_PDL1_P_co_bb+x_oos_T_PDL1_P_cc_bb)   # PD-L1 bound by PbTx at this site (Appendix S1 Eqs S57-S65)
    pdl1PbTx_oos_M_PDL1 <- x_oos_M_PDL1_P_mo_fb+x_oos_M_PDL1_P_oo_fb+x_oos_M_PDL1_P_cm_bf+x_oos_M_PDL1_P_co_bf+x_oos_M_PDL1_P_co_fb+x_oos_M_PDL1_P_cc_fb+2*(x_oos_M_PDL1_P_oo_bb+x_oos_M_PDL1_P_co_bb+x_oos_M_PDL1_P_cc_bb)   # PD-L1 bound by PbTx at this site (Appendix S1 Eqs S57-S65)
    pdl1PbTx_oos_APC_PDL1 <- x_oos_APC_PDL1_P_mo_fb+x_oos_APC_PDL1_P_oo_fb+x_oos_APC_PDL1_P_cm_bf+x_oos_APC_PDL1_P_co_bf+x_oos_APC_PDL1_P_co_fb+x_oos_APC_PDL1_P_cc_fb+2*(x_oos_APC_PDL1_P_oo_bb+x_oos_APC_PDL1_P_co_bb+x_oos_APC_PDL1_P_cc_bb)   # PD-L1 bound by PbTx at this site (Appendix S1 Eqs S57-S65)
    x_syn_T_C1_PDL2_total <- x_syn_T_C1_PD1_PDL2+x_syn_T_C1_PDL2   # Wang 2022 Table S5 rule 24
    x_syn_T_APC_PDL2_total <- x_syn_T_APC_PD1_PDL2+x_syn_T_APC_PDL2   # Wang 2022 Table S5 rule 36
    x_syn_M_C_PDL2_total <- x_syn_M_C_PD1_PDL2+x_syn_M_C_PDL2   # Wang 2022 Table S5 rule 59
    v4 <- p_k_C1_growth * x_V_T_C1 * log(max(C_max/(C_total + p_cell), 1))   # R4 Cancer cell growth
    v6 <- p_k_vas_Csec * C_total   # R6 Secretion of angiogenic factors by cancer cells
    v9 <- p_k_K_d * x_V_T_K * ((C_total/p_cell * 2.57e-06)^(1/3))^2   # R9 Endogenous inhibition of previously generated vasculature
    v10 <- k_C2_growth * x_V_T_C2 * log(max(C_max/(C_total + p_cell), 1))   # R10 Cancer cell growth
    v11 <- k_C2_death * x_V_T_C2   # R11 Cancer cell death
    v30 <- p_k_cell_clear * x_V_T_T0 * (p_Kc_rec/(C_total^2 + p_Kc_rec))   # R30 T cell clearance upon antigen clearance
    v35 <- p_k_IL2_deg * x_V_LN_IL2 * m_V_LN   # R35 IL2 degradation
    v36 <- p_k_IL2_cons * x_V_LN_T1 * x_V_LN_IL2/(p_IL2_50 + x_V_LN_IL2)   # R36 IL2 consumption by T cells
    v37 <- p_k_IL2_cons * x_V_LN_T0 * x_V_LN_IL2/(p_IL2_50_Treg + x_V_LN_IL2)   # R37 IL2 consumption by Tregs
    v56 <- p_k_cell_clear * x_V_T_T1 * (p_Kc_rec/(C_total^2 + p_Kc_rec))   # R56 T cell clearance upon antigen clearance
    v74 <- p_kout * x_A_e_M1 * m_A_e - p_kin * x_A_s_M1 * m_A_s   # R74 MHC translocation
    v79 <- p_k_P0_deg * x_V_e_P0 * m_V_e   # R79 Antigen degradation in APC endosomes
    v80 <- p_k_p0_deg * x_V_e_p0 * m_V_e   # R80 Epitope degradation in APC endosomes
    v81 <- p_k_P0_on * x_V_e_p0 * x_A_e_M1 * m_A_e   # R81 Antigen-MHC binding in endosome
    v82 <- p_k_P0_d1 * p_k_P0_on * x_A_e_M1p0 * m_A_e   # R82 Antigen-MHC unbinding in endosome
    v83 <- p_k_P0_d1 * p_k_P0_on * x_A_s_M1p0 * m_A_s   # R83 Antigen-MHC unbinding on APC surface
    v84 <- p_kout * x_A_e_M1p0 * m_A_e   # R84 Antigen-MHC translocation
    v89 <- p_k_P1_deg * x_V_e_P1 * m_V_e   # R89 Antigen degradation in APC endosomes
    v90 <- p_k_p1_deg * x_V_e_p1 * m_V_e   # R90 Epitope degradation in APC endosomes
    v91 <- p_k_P1_on * x_V_e_p1 * x_A_e_M1 * m_A_e   # R91 Antigen-MHC binding in endosome
    v92 <- p_k_P1_d1 * p_k_P1_on * x_A_e_M1p1 * m_A_e   # R92 Antigen-MHC unbinding in endosome
    v93 <- p_k_P1_d1 * p_k_P1_on * x_A_s_M1p1 * m_A_s   # R93 Antigen-MHC unbinding on APC surface
    v94 <- p_kout * x_A_e_M1p1 * m_A_e   # R94 Antigen-MHC translocation
    v95 <- p_q_P_aPD1 * (x_V_C_aPD1/p_gamma_C_aPD1 - x_V_P_aPD1/p_gamma_P_aPD1)   # R95 aPD1 diffusive transport to peripheral compartment
    v97 <- p_q_LN_aPD1 * (x_V_C_aPD1/p_gamma_C_aPD1 - x_V_LN_aPD1/p_gamma_LN_aPD1)   # R97 aPD1 diffusive transport to lymph node compartment
    v99 <- p_q_LD_aPD1 * x_V_LN_aPD1/p_gamma_LN_aPD1   # R99 aPD1 convective transport from lymph node to central
    v100 <- p_k_cl_aPD1 * x_V_C_aPD1   # R100 Drug clearance from central compartment
    v107 <- p_q_P_aCTLA4 * (x_V_C_aCTLA4/p_gamma_C_aCTLA4 - x_V_P_aCTLA4/p_gamma_P_aCTLA4)   # R107 aCTLA4 diffusive transport to peripheral compartment
    v109 <- p_q_LN_aCTLA4 * (x_V_C_aCTLA4/p_gamma_C_aCTLA4 - x_V_LN_aCTLA4/p_gamma_LN_aCTLA4)   # R109 aCTLA4 diffusive transport to lymph node compartment
    v111 <- p_q_LD_aCTLA4 * x_V_LN_aCTLA4/p_gamma_LN_aCTLA4   # R111 aCTLA4 convective transport from lymph node to central
    v112 <- p_k_cl_aCTLA4 * x_V_C_aCTLA4   # R112 Drug clearance from central compartment
    v117 <- (p_kon_PD1_PDL1 * (x_syn_T_C1_PD1) * (x_syn_T_C1_PDL1))/NAVG_nmol - p_koff_PD1_PDL1 * x_syn_T_C1_PD1_PDL1   # R117 binding and unbinding of PD1 PDL1 in synapse
    v118 <- (p_kon_PD1_PDL2 * (x_syn_T_C1_PD1) * (x_syn_T_C1_PDL2))/NAVG_nmol - p_koff_PD1_PDL2 * x_syn_T_C1_PD1_PDL2   # R118 binding and unbinding of PD1 PDL2 in synapse
    v120 <- (p_Chi_PD1_aPD1 * p_kon_PD1_aPD1 * (x_syn_T_C1_PD1 * x_syn_T_C1_PD1_aPD1))/NAVG_nmol - 2 * p_koff_PD1_aPD1 * x_syn_T_C1_PD1_aPD1_PD1   # R120 binding and unbinding of PD1 to PD1-aPD1 on T surface in synapse
    v123 <- (2 * p_kon_CD28_CD80 * (x_syn_T_C1_CD28) * (x_syn_T_C1_CD80))/NAVG_nmol - p_koff_CD28_CD80 * x_syn_T_C1_CD28_CD80   # R123 binding and unbinding of CD28 and CD80 in synapse
    v124 <- (p_kon_CD28_CD80 * (x_syn_T_C1_CD28) * (x_syn_T_C1_CD28_CD80))/NAVG_nmol - 2 * p_koff_CD28_CD80 * x_syn_T_C1_CD28_CD80_CD28   # R124 binding and unbinding of CD28-CD80 and CD28 in synapse
    v125 <- (p_kon_CD28_CD86 * (x_syn_T_C1_CD28) * (x_syn_T_C1_CD86))/NAVG_nmol - p_koff_CD28_CD86 * x_syn_T_C1_CD28_CD86   # R125 binding and unbinding of CD28 and CD86 in synapse
    v126 <- (4 * p_kon_CTLA4_CD80 * (x_syn_T_C1_CTLA4) * (x_syn_T_C1_CD80))/NAVG_nmol - p_koff_CTLA4_CD80 * x_syn_T_C1_CD80_CTLA4   # R126 binding and unbinding of CTLA4 and CD80 in synapse
    v127 <- (2 * p_kon_CTLA4_CD80 * (x_syn_T_C1_CTLA4) * (x_syn_T_C1_CD80_CTLA4))/NAVG_nmol - 2 * p_koff_CTLA4_CD80 * x_syn_T_C1_CTLA4_CD80_CTLA4   # R127 binding and unbinding of CTLA4 and CD80-CTLA4 in synapse
    v128 <- (4 * p_kon_CTLA4_CD80 * (x_syn_T_C1_CD80) * (x_syn_T_C1_CTLA4_CD80_CTLA4))/NAVG_nmol - p_koff_CTLA4_CD80 * x_syn_T_C1_CD80_CTLA4_CD80_CTLA4   # R128 binding and unbinding of CD80 and CTLA4-CD80-CTLA4 in synapse
    v129 <- (2 * p_kon_CTLA4_CD80 * (x_syn_T_C1_CD80_CTLA4) * (x_syn_T_C1_CD80))/NAVG_nmol - 2 * p_koff_CTLA4_CD80 * x_syn_T_C1_CD80_CTLA4_CD80   # R129 binding and unbinding of CD80-CTLA4 and CD80 in synapse
    v130 <- (4 * p_kon_CTLA4_CD80 * (x_syn_T_C1_CTLA4) * (x_syn_T_C1_CD80_CTLA4_CD80))/NAVG_nmol - p_koff_CTLA4_CD80 * x_syn_T_C1_CD80_CTLA4_CD80_CTLA4   # R130 binding and unbinding of CTLA4 and CD80-CTLA4-CD80 in synapse
    v131 <- (2 * p_kon_CTLA4_CD86 * (x_syn_T_C1_CTLA4) * (x_syn_T_C1_CD86))/NAVG_nmol - p_koff_CTLA4_CD86 * x_syn_T_C1_CD86_CTLA4   # R131 binding and unbinding of CTLA4 and CD86 in synapse
    v132 <- (p_kon_CTLA4_CD86 * (x_syn_T_C1_CD86_CTLA4) * (x_syn_T_C1_CD86))/NAVG_nmol - 2 * p_koff_CTLA4_CD86 * x_syn_T_C1_CD86_CTLA4_CD86   # R132 binding and unbinding of CD86-CTLA4 and CD86 in synapse
    v134 <- (2 * p_Chi_CTLA4_aCTLA4 * p_kon_CTLA4_aCTLA4 * (x_syn_T_C1_CTLA4 * x_syn_T_C1_CTLA4_aCTLA4))/NAVG_nmol - 2 * p_koff_CTLA4_aCTLA4 * x_syn_T_C1_CTLA4_aCTLA4_CTLA4   # R134 binding and unbinding of CTLA4 to aCTLA4 on T surface in synapse
    v135 <- (p_kon_CD80_CD80 * (x_syn_T_C1_CD80m) * (x_syn_T_C1_CD80m))/NAVG_nmol - p_koff_CD80_CD80 * x_syn_T_C1_CD80   # R135 self-association and dissociation of CD80 monomers in synapse
    v136 <- (p_kon_CD80_PDL1 * (x_syn_T_C1_CD80m) * (x_syn_T_C1_PDL1))/NAVG_nmol - p_koff_CD80_PDL1 * x_syn_T_C1_PDL1_CD80   # R136 binding and unbinding of CD80 and PDL1 in synapse
    v137 <- (p_kon_CD28_CD80 * (x_syn_T_C1_PDL1_CD80) * (x_syn_T_C1_CD28))/NAVG_nmol - p_koff_CD28_CD80 * x_syn_T_C1_PDL1_CD80_CD28   # R137 binding and unbinding of PDL1-CD80 and CD28 in synapse
    v138 <- (2 * p_kon_CTLA4_CD80 * (x_syn_T_C1_PDL1_CD80) * (x_syn_T_C1_CTLA4))/NAVG_nmol - p_koff_CTLA4_CD80 * x_syn_T_C1_PDL1_CD80_CTLA4   # R138 binding and unbinding of PDL1-CD80 and CTLA4 in synapse
    v145 <- (p_kon_PD1_PDL1 * (x_syn_T_APC_PD1) * (x_syn_T_APC_PDL1))/NAVG_nmol - p_koff_PD1_PDL1 * x_syn_T_APC_PD1_PDL1   # R145 binding and unbinding of PD1 PDL1 in synapse
    v146 <- (p_kon_PD1_PDL2 * (x_syn_T_APC_PD1) * (x_syn_T_APC_PDL2))/NAVG_nmol - p_koff_PD1_PDL2 * x_syn_T_APC_PD1_PDL2   # R146 binding and unbinding of PD1 PDL2 in synapse
    v147 <- 2 * p_kon_PD1_aPD1 * (x_syn_T_APC_PD1 * x_V_LN_aPD1/p_gamma_LN_aPD1) - p_koff_PD1_aPD1 * x_syn_T_APC_PD1_aPD1   # R147 binding and unbinding of PD1 to aPD1 on T surface in synapse
    v148 <- (p_Chi_PD1_aPD1 * p_kon_PD1_aPD1 * (x_syn_T_APC_PD1 * x_syn_T_APC_PD1_aPD1))/NAVG_nmol - 2 * p_koff_PD1_aPD1 * x_syn_T_APC_PD1_aPD1_PD1   # R148 binding and unbinding of PD1 to PD1-aPD1 on T surface in synapse
    v151 <- (2 * p_kon_CD28_CD80 * (x_syn_T_APC_CD28) * (x_syn_T_APC_CD80))/NAVG_nmol - p_koff_CD28_CD80 * x_syn_T_APC_CD28_CD80   # R151 binding and unbinding of CD28 and CD80 in synapse
    v152 <- (p_kon_CD28_CD80 * (x_syn_T_APC_CD28) * (x_syn_T_APC_CD28_CD80))/NAVG_nmol - 2 * p_koff_CD28_CD80 * x_syn_T_APC_CD28_CD80_CD28   # R152 binding and unbinding of CD28-CD80 and CD28 in synapse
    v153 <- (p_kon_CD28_CD86 * (x_syn_T_APC_CD28) * (x_syn_T_APC_CD86))/NAVG_nmol - p_koff_CD28_CD86 * x_syn_T_APC_CD28_CD86   # R153 binding and unbinding of CD28 and CD86 in synapse
    v154 <- (4 * p_kon_CTLA4_CD80 * (x_syn_T_APC_CTLA4) * (x_syn_T_APC_CD80))/NAVG_nmol - p_koff_CTLA4_CD80 * x_syn_T_APC_CD80_CTLA4   # R154 binding and unbinding of CTLA4 and CD80 in synapse
    v155 <- (2 * p_kon_CTLA4_CD80 * (x_syn_T_APC_CTLA4) * (x_syn_T_APC_CD80_CTLA4))/NAVG_nmol - 2 * p_koff_CTLA4_CD80 * x_syn_T_APC_CTLA4_CD80_CTLA4   # R155 binding and unbinding of CTLA4 and CD80-CTLA4 in synapse
    v156 <- (4 * p_kon_CTLA4_CD80 * (x_syn_T_APC_CD80) * (x_syn_T_APC_CTLA4_CD80_CTLA4))/NAVG_nmol - p_koff_CTLA4_CD80 * x_syn_T_APC_CD80_CTLA4_CD80_CTLA4   # R156 binding and unbinding of CD80 and CTLA4-CD80-CTLA4 in synapse
    v157 <- (2 * p_kon_CTLA4_CD80 * (x_syn_T_APC_CD80_CTLA4) * (x_syn_T_APC_CD80))/NAVG_nmol - 2 * p_koff_CTLA4_CD80 * x_syn_T_APC_CD80_CTLA4_CD80   # R157 binding and unbinding of CD80-CTLA4 and CD80 in synapse
    v158 <- (4 * p_kon_CTLA4_CD80 * (x_syn_T_APC_CTLA4) * (x_syn_T_APC_CD80_CTLA4_CD80))/NAVG_nmol - p_koff_CTLA4_CD80 * x_syn_T_APC_CD80_CTLA4_CD80_CTLA4   # R158 binding and unbinding of CTLA4 and CD80-CTLA4-CD80 in synapse
    v159 <- (2 * p_kon_CTLA4_CD86 * (x_syn_T_APC_CTLA4) * (x_syn_T_APC_CD86))/NAVG_nmol - p_koff_CTLA4_CD86 * x_syn_T_APC_CD86_CTLA4   # R159 binding and unbinding of CTLA4 and CD86 in synapse
    v160 <- (p_kon_CTLA4_CD86 * (x_syn_T_APC_CD86_CTLA4) * (x_syn_T_APC_CD86))/NAVG_nmol - 2 * p_koff_CTLA4_CD86 * x_syn_T_APC_CD86_CTLA4_CD86   # R160 binding and unbinding of CD86-CTLA4 and CD86 in synapse
    v161 <- 4 * p_kon_CTLA4_aCTLA4 * (x_syn_T_APC_CTLA4 * x_V_LN_aCTLA4/p_gamma_LN_aCTLA4) - p_koff_CTLA4_aCTLA4 * x_syn_T_APC_CTLA4_aCTLA4   # R161 binding and unbinding of CTLA4 to aCTLA4 on T surface in synapse
    v162 <- (2 * p_Chi_CTLA4_aCTLA4 * p_kon_CTLA4_aCTLA4 * (x_syn_T_APC_CTLA4 * x_syn_T_APC_CTLA4_aCTLA4))/NAVG_nmol - 2 * p_koff_CTLA4_aCTLA4 * x_syn_T_APC_CTLA4_aCTLA4_CTLA4   # R162 binding and unbinding of CTLA4 to aCTLA4 on T surface in synapse
    v163 <- (p_kon_CD80_CD80 * (x_syn_T_APC_CD80m) * (x_syn_T_APC_CD80m))/NAVG_nmol - p_koff_CD80_CD80 * x_syn_T_APC_CD80   # R163 self-association and dissociation of CD80 monomers in synapse
    v164 <- (p_kon_CD80_PDL1 * (x_syn_T_APC_CD80m) * (x_syn_T_APC_PDL1))/NAVG_nmol - p_koff_CD80_PDL1 * x_syn_T_APC_PDL1_CD80   # R164 binding and unbinding of CD80 and PDL1 in synapse
    v165 <- (p_kon_CD28_CD80 * (x_syn_T_APC_PDL1_CD80) * (x_syn_T_APC_CD28))/NAVG_nmol - p_koff_CD28_CD80 * x_syn_T_APC_PDL1_CD80_CD28   # R165 binding and unbinding of PDL1-CD80 and CD28 in synapse
    v166 <- (2 * p_kon_CTLA4_CD80 * (x_syn_T_APC_PDL1_CD80) * (x_syn_T_APC_CTLA4))/NAVG_nmol - p_koff_CTLA4_CD80 * x_syn_T_APC_PDL1_CD80_CTLA4   # R166 binding and unbinding of PDL1-CD80 and CTLA4 in synapse
    v178 <- p_k_cell_clear * x_V_T_Th * (p_Kc_rec/(C_total^2 + p_Kc_rec))   # R178 T cell clearance upon antigen clearance
    v188 <- p_k_CCL2_sec * C_total   # R188 CCL2 secretion by MDSCs and cancer cells
    v192 <- p_k_cell_clear * x_V_T_MDSC * (p_Kc_rec/(C_total^2 + p_Kc_rec))   # R192 MDSC death upon tumor eradication
    v206 <- p_k_cell_clear * x_V_T_Mac_M1 * (p_Kc_rec/(C_total^2 + p_Kc_rec))   # R206 Macrophage death upon tumor eradication
    v207 <- p_k_cell_clear * x_V_T_Mac_M2 * (p_Kc_rec/(C_total^2 + p_Kc_rec))   # R207 Macrophage death upon tumor eradication
    v223 <- (p_kon_CD47_SIRPa * (x_syn_M_C_CD47) * (x_syn_M_C_SIRPa))/NAVG_nmol - p_koff_CD47_SIRPa * x_syn_M_C_CD47_SIRPa   # R223 binding and unbinding of CD47-SIRPa in synapse
    v224 <- (p_kon_PD1_PDL1 * (x_syn_M_C_PD1) * (x_syn_M_C_PDL1))/NAVG_nmol - p_koff_PD1_PDL1 * x_syn_M_C_PD1_PDL1   # R224 binding and unbinding of PD1 PDL1 in synapse
    v225 <- (p_kon_PD1_PDL2 * (x_syn_M_C_PD1) * (x_syn_M_C_PDL2))/NAVG_nmol - p_koff_PD1_PDL2 * x_syn_M_C_PD1_PDL2   # R225 binding and unbinding of PD1 PDL2 in synapse
    v227 <- (p_Chi_PD1_aPD1 * p_kon_PD1_aPD1 * (x_syn_M_C_PD1 * x_syn_M_C_PD1_aPD1))/NAVG_nmol - 2 * p_koff_PD1_aPD1 * x_syn_M_C_PD1_aPD1_PD1   # R227 binding and unbinding of PD1 to PD1-aPD1 on macrophage surface in synapse
    v230 <- (p_kon_CD80_CD80 * (x_syn_M_C_CD80m) * (x_syn_M_C_CD80m))/NAVG_nmol - p_koff_CD80_CD80 * x_syn_M_C_CD80   # R230 self-association and dissociation of CD80 monomers in synapse
    v231 <- (p_kon_CD80_PDL1 * (x_syn_M_C_CD80m) * (x_syn_M_C_PDL1))/NAVG_nmol - p_koff_CD80_PDL1 * x_syn_M_C_PDL1_CD80   # R231 binding and unbinding of CD80 and PDL1 in synapse
    x_V_T_c_vas <- q_V_T_c_vas/vol_V_T
    x_V_T_c <- q_V_T_c/vol_V_T
    x_V_T_P0 <- q_V_T_P0/vol_V_T
    x_V_T_P1 <- q_V_T_P1/vol_V_T
    x_V_T_aPD1 <- q_V_T_aPD1/vol_V_T
    x_V_T_aCTLA4 <- q_V_T_aCTLA4/vol_V_T
    x_V_T_TGFb <- q_V_T_TGFb/vol_V_T
    x_V_T_IFNg <- q_V_T_IFNg/vol_V_T
    x_V_T_NO <- q_V_T_NO/vol_V_T
    x_V_T_CCL2 <- q_V_T_CCL2/vol_V_T
    x_V_T_IL12 <- q_V_T_IL12/vol_V_T
    x_V_T_IL10 <- q_V_T_IL10/vol_V_T
    H_P0 <- pTCR_p0_MHC_tot/(pTCR_p0_MHC_tot + p_p0_50)   # Wang 2022 Table S5 rule 14
    H_P1 <- pTCR_p1_MHC_tot/(pTCR_p1_MHC_tot + p_p1_50)   # Wang 2022 Table S5 rule 16
    N_aTh <- p_N0 + p_N_costim * H_CD28_APC + p_N_IL2_CD4 * x_V_LN_IL2/(p_IL2_50 + x_V_LN_IL2)   # Wang 2022 Table S5 rule 43
    H_Mac_C <- 1 - (1 - H_SIRPa) * (1 - H_PD1_M)   # Wang 2022 Table S5 rule 63
    N_aT <- p_N0 + p_N_costim * H_CD28_APC + p_N_IL2_CD8 * x_V_LN_IL2/(p_IL2_50 + x_V_LN_IL2)   # Wang 2022 Table S5 rule 8
    N_aT0 <- p_N0 + p_N_costim * H_CD28_APC + p_N_IL2_CD4 * x_V_LN_IL2/(p_IL2_50 + x_V_LN_IL2)   # Wang 2022 Table S5 rule 9
    x_V_T_P_mm <- q_V_T_P_mm/vol_V_T
    x_V_T_P_mo <- q_V_T_P_mo/vol_V_T
    x_V_T_P_oo <- q_V_T_P_oo/vol_V_T
    x_V_T_P_cm <- q_V_T_P_cm/vol_V_T
    x_V_T_P_co <- q_V_T_P_co/vol_V_T
    x_V_T_P_cc <- q_V_T_P_cc/vol_V_T
    vpb_ldLN_P_mm <- p_q_LD_aPDL1*x_V_LN_P_mm/p_gamma_LN_aPDL1*vol_V_T   # PbTx P_mm lymphatic drainage TDLN->central (Appendix S1 Eq S33)
    vpb_ldLN_P_mo <- p_q_LD_aPDL1*x_V_LN_P_mo/p_gamma_LN_aPDL1*vol_V_T   # PbTx P_mo lymphatic drainage TDLN->central (Appendix S1 Eq S33)
    vpb_ldLN_P_oo <- p_q_LD_aPDL1*x_V_LN_P_oo/p_gamma_LN_aPDL1*vol_V_T   # PbTx P_oo lymphatic drainage TDLN->central (Appendix S1 Eq S33)
    vpb_ldLN_P_cm <- p_q_LD_aPDL1*x_V_LN_P_cm/p_gamma_LN_aPDL1*vol_V_T   # PbTx P_cm lymphatic drainage TDLN->central (Appendix S1 Eq S33)
    vpb_ldLN_P_co <- p_q_LD_aPDL1*x_V_LN_P_co/p_gamma_LN_aPDL1*vol_V_T   # PbTx P_co lymphatic drainage TDLN->central (Appendix S1 Eq S33)
    vpb_ldLN_P_cc <- p_q_LD_aPDL1*x_V_LN_P_cc/p_gamma_LN_aPDL1*vol_V_T   # PbTx P_cc lymphatic drainage TDLN->central (Appendix S1 Eq S33)
    oos_C1_PDL1_total <- x_oos_C1_PDL1+pdl1PbTx_oos_C1_PDL1   # out-of-synapse PD-L1 balance (Appendix S1 Eq S68)
    oos_T_PDL1_total <- x_oos_T_PDL1+pdl1PbTx_oos_T_PDL1   # out-of-synapse PD-L1 balance (Appendix S1 Eq S68)
    oos_M_PDL1_total <- x_oos_M_PDL1+pdl1PbTx_oos_M_PDL1   # out-of-synapse PD-L1 balance (Appendix S1 Eq S68)
    oos_APC_PDL1_total <- x_oos_APC_PDL1+pdl1PbTx_oos_APC_PDL1   # out-of-synapse PD-L1 balance (Appendix S1 Eq S68)
    x_syn_T_C1_PDL1_total <- x_syn_T_C1_PDL1+x_syn_T_C1_PD1_PDL1+pdl1PbTx_syn_T_C1_PDL1+x_syn_T_C1_PDL1_CD80+x_syn_T_C1_PDL1_CD80_CD28+x_syn_T_C1_PDL1_CD80_CTLA4   # Wang 2022 Table S5 rule 23 with the PbTx complexes of Appendix S1 Eqs S57-S65
    x_syn_T_APC_PDL1_total <- x_syn_T_APC_PDL1+x_syn_T_APC_PD1_PDL1+pdl1PbTx_syn_T_APC_PDL1+x_syn_T_APC_PDL1_CD80+x_syn_T_APC_PDL1_CD80_CD28+x_syn_T_APC_PDL1_CD80_CTLA4   # Wang 2022 Table S5 rule 35 with the PbTx complexes of Appendix S1 Eqs S57-S65
    x_syn_M_C_PDL1_total <- x_syn_M_C_PDL1+x_syn_M_C_PD1_PDL1+pdl1PbTx_syn_M_C_PDL1+x_syn_M_C_PDL1_CD80   # Wang 2022 Table S5 rule 58 with the PbTx complexes of Appendix S1 Eqs S57-S65
    v33 <- p_q_T0_T_in * vol_V_T * x_V_C_T0 * (C_total^2/(C_total^2 + p_Kc_rec))   # R33 T cell transport into the tumor compartment
    v58 <- p_k_T1 * x_V_T_T1 * C_total/(C_total + x_V_T_T1 + p_cell) * H_PD1_C1   # R58 T cell death from cancer
    v61 <- p_q_T1_T_in * vol_V_T * x_V_C_T1 * (C_total^2/(C_total^2 + p_Kc_rec))   # R61 T cell transport into the tumor compartment
    v66 <- p_k_APC_death * (p_APC0_T * vol_V_T - x_V_T_APC)   # R66 APC recruitment/death in the tumour
    v116 <- p_k_in_PDL1 * (p_C1_PDL1_base/p_A_cell * p_r_PDL2C1 - x_syn_T_C1_PDL2_total)   # R116 Translocation of PDL2 between cell surface and cytoplasm
    v144 <- p_k_in_PDL1 * (p_APC_PDL1_base/p_A_cell * p_r_PDL2APC - x_syn_T_APC_PDL2_total)   # R144 Translocation of PDL2 between cell surface and cytoplasm
    v181 <- p_q_T0_T_in * vol_V_T * x_V_C_Th * (C_total^2/(C_total^2 + p_Kc_rec))   # R181 T cell transport into the tumor compartment
    v222 <- p_k_in_PDL1 * (p_C1_PDL1_base/p_A_cell * p_r_PDL2C1 - x_syn_M_C_PDL2_total)   # R222 Translocation of PDL2 between cell surface and cytoplasm
    H_TGFb <- x_V_T_TGFb/(x_V_T_TGFb + p_TGFb_50)   # Wang 2022 Table S5 rule 41
    H_TGFb_Teff <- x_V_T_TGFb/(x_V_T_TGFb + p_TGFb_50_Teff)   # Wang 2022 Table S5 rule 42
    H_NO <- x_V_T_NO/(p_NO_50_Teff + x_V_T_NO)   # Wang 2022 Table S5 rule 44
    H_IL10 <- x_V_T_IL10/(p_IL10_50 + x_V_T_IL10)   # Wang 2022 Table S5 rule 65
    H_IL10_phago <- x_V_T_IL10/(p_IL10_50_phago + x_V_T_IL10)   # Wang 2022 Table S5 rule 66
    H_IL12 <- x_V_T_IL12/(p_IL12_50 + x_V_T_IL12)   # Wang 2022 Table S5 rule 67
    vpb_diffT_P_mm <- p_q_T_aPDL1*(x_V_C_P_mm/p_gamma_C_aPDL1-x_V_T_P_mm/p_gamma_T_aPDL1)   # PbTx P_mm diffusive central<->tumour (Appendix S1 Eq S30/S32)
    vpb_ldT_P_mm <- p_q_LD_aPDL1*x_V_T_P_mm/p_gamma_T_aPDL1*vol_V_T   # PbTx P_mm lymphatic drainage tumour->TDLN (Appendix S1 Eq S32)
    vpb_diffT_P_mo <- p_q_T_aPDL1*(x_V_C_P_mo/p_gamma_C_aPDL1-x_V_T_P_mo/p_gamma_T_aPDL1)   # PbTx P_mo diffusive central<->tumour (Appendix S1 Eq S30/S32)
    vpb_ldT_P_mo <- p_q_LD_aPDL1*x_V_T_P_mo/p_gamma_T_aPDL1*vol_V_T   # PbTx P_mo lymphatic drainage tumour->TDLN (Appendix S1 Eq S32)
    vpb_diffT_P_oo <- p_q_T_aPDL1*(x_V_C_P_oo/p_gamma_C_aPDL1-x_V_T_P_oo/p_gamma_T_aPDL1)   # PbTx P_oo diffusive central<->tumour (Appendix S1 Eq S30/S32)
    vpb_ldT_P_oo <- p_q_LD_aPDL1*x_V_T_P_oo/p_gamma_T_aPDL1*vol_V_T   # PbTx P_oo lymphatic drainage tumour->TDLN (Appendix S1 Eq S32)
    vpb_diffT_P_cm <- p_q_T_aPDL1*(x_V_C_P_cm/p_gamma_C_aPDL1-x_V_T_P_cm/p_gamma_T_aPDL1)   # PbTx P_cm diffusive central<->tumour (Appendix S1 Eq S30/S32)
    vpb_ldT_P_cm <- p_q_LD_aPDL1*x_V_T_P_cm/p_gamma_T_aPDL1*vol_V_T   # PbTx P_cm lymphatic drainage tumour->TDLN (Appendix S1 Eq S32)
    vpb_diffT_P_co <- p_q_T_aPDL1*(x_V_C_P_co/p_gamma_C_aPDL1-x_V_T_P_co/p_gamma_T_aPDL1)   # PbTx P_co diffusive central<->tumour (Appendix S1 Eq S30/S32)
    vpb_ldT_P_co <- p_q_LD_aPDL1*x_V_T_P_co/p_gamma_T_aPDL1*vol_V_T   # PbTx P_co lymphatic drainage tumour->TDLN (Appendix S1 Eq S32)
    vpb_diffT_P_cc <- p_q_T_aPDL1*(x_V_C_P_cc/p_gamma_C_aPDL1-x_V_T_P_cc/p_gamma_T_aPDL1)   # PbTx P_cc diffusive central<->tumour (Appendix S1 Eq S30/S32)
    vpb_ldT_P_cc <- p_q_LD_aPDL1*x_V_T_P_cc/p_gamma_T_aPDL1*vol_V_T   # PbTx P_cc lymphatic drainage tumour->TDLN (Appendix S1 Eq S32)
    vpb_out_oos_C1_PDL1 <- p_k_out_PDL1*x_V_T_IFNg/(x_V_T_IFNg+p_IFNg_50_ind)*(1-oos_C1_PDL1_total/(p_C1_PDL1_base/p_A_cell*p_r_PDL1_IFNg))   # Appendix S1 Eq S68 expression term
    vpb_in_oos_C1_PDL1 <- p_k_in_PDL1*(p_C1_PDL1_base/p_A_cell-oos_C1_PDL1_total)*m_oos_C1   # Appendix S1 Eq S68 turnover term
    vpb_out_oos_T_PDL1 <- p_k_out_PDL1*x_V_T_IFNg/(x_V_T_IFNg+p_IFNg_50_ind)*(1-oos_T_PDL1_total/(p_T_PDL1_total/p_A_Tcell*p_r_PDL1_IFNg))   # Appendix S1 Eq S68 expression term
    vpb_in_oos_T_PDL1 <- p_k_in_PDL1*(p_T_PDL1_total/p_A_Tcell-oos_T_PDL1_total)*m_oos_T   # Appendix S1 Eq S68 turnover term
    vpb_out_oos_M_PDL1 <- p_k_out_PDL1*x_V_T_IFNg/(x_V_T_IFNg+p_IFNg_50_ind)*(1-oos_M_PDL1_total/(p_C1_PDL1_base/p_A_cell*p_r_PDL1_IFNg))   # Appendix S1 Eq S68 expression term
    vpb_in_oos_M_PDL1 <- p_k_in_PDL1*(p_C1_PDL1_base/p_A_cell-oos_M_PDL1_total)*m_oos_M   # Appendix S1 Eq S68 turnover term
    vpb_out_oos_APC_PDL1 <- p_k_out_PDL1*x_V_T_IFNg/(x_V_T_IFNg+p_IFNg_50_ind)*(1-oos_APC_PDL1_total/(p_APC_PDL1_base/p_A_APC*p_r_PDL1_IFNg))   # Appendix S1 Eq S68 expression term
    vpb_in_oos_APC_PDL1 <- p_k_in_PDL1*(p_APC_PDL1_base/p_A_APC-oos_APC_PDL1_total)*m_oos_APC   # Appendix S1 Eq S68 turnover term
    v7 <- p_k_vas_deg * x_V_T_c_vas   # R7 Degradation of tumor angiogenic factors
    v8 <- p_k_K_g * C_total * x_V_T_c_vas/(x_V_T_c_vas + p_c_vas_50)   # R8 Growth of tumor carrying capacity
    v22 <- p_k_T0_act * H_APC * H_P0 * x_V_LN_nT0   # R22 Naive T cell activation
    v23 <- p_k_T0_act * H_APC * H_P0 * x_V_LN_nT0 * p_n_T0_clones   # R23 Naive T cell activation
    v24 <- p_k_T0_pro/N_aT0 * x_V_LN_aT0   # R24 aT0 cell proliferation
    v25 <- p_k_T0_pro/N_aT0 * 2^(N_aT0) * x_V_LN_aT0   # R25 aT0 cell proliferation
    v48 <- p_k_T1_act * H_mAPC * H_P1 * x_V_LN_nT1   # R48 Naive T cell activation
    v49 <- p_k_T1_act * H_mAPC * H_P1 * x_V_LN_nT1 * p_n_T1_clones   # R49 Naive T cell activation
    v50 <- p_k_T1_pro/N_aT * x_V_LN_aT1   # R50 aT1 cell proliferation
    v51 <- p_k_T1_pro/N_aT * 2^(N_aT) * x_V_LN_aT1   # R51 aT1 cell proliferation
    v72 <- p_k_c * (p_c0 - x_V_T_c)   # R72 Baseline cytokine secretion/degradation
    v76 <- p_k_xP0_deg * x_V_T_P0 * vol_V_T   # R76 Free antigen degradation
    v77 <- p_k_P0_up * x_V_T_APC * x_V_T_P0 * vol_V_T   # R77 Antigen uptake by mature antigen presenting cells
    v78 <- p_k_P0_up * p_cell * x_V_T_P0 * m_V_e   # R78 Antigen uptake by mature antigen presenting cells
    v86 <- p_k_xP1_deg * x_V_T_P1 * vol_V_T   # R86 Free antigen degradation
    v87 <- p_k_P1_up * x_V_T_APC * x_V_T_P1 * vol_V_T   # R87 Antigen uptake by mature antigen presenting cells
    v88 <- p_k_P1_up * p_cell * x_V_T_P1 * m_V_e   # R88 Antigen uptake by mature antigen presenting cells
    v96 <- p_q_T_aPD1 * (x_V_C_aPD1/p_gamma_C_aPD1 - x_V_T_aPD1/p_gamma_T_aPD1)   # R96 aPD1 diffusive transport to tumor compartment
    v98 <- p_q_LD_aPD1 * x_V_T_aPD1/p_gamma_T_aPD1   # R98 aPD1 convective transport from tumor to lymph node
    v108 <- p_q_T_aCTLA4 * (x_V_C_aCTLA4/p_gamma_C_aCTLA4 - x_V_T_aCTLA4/p_gamma_T_aCTLA4)   # R108 aCTLA4 diffusive transport to tumor compartment
    v110 <- p_q_LD_aCTLA4 * x_V_T_aCTLA4/p_gamma_T_aCTLA4   # R110 aCTLA4 convective transport from tumor to lymph node
    v113 <- p_k_out_PDL1 * x_V_T_IFNg/(x_V_T_IFNg + p_IFNg_50_ind) * (1 - x_syn_T_C1_PDL1_total/(p_C1_PDL1_base * p_r_PDL1_IFNg/p_A_cell))   # R113 Translocation of PDL1 between cell surface and cytoplasm
    v114 <- p_k_out_PDL1 * p_r_PDL2C1 * x_V_T_IFNg/(x_V_T_IFNg + p_IFNg_50_ind) * (1 - x_syn_T_C1_PDL2_total/(p_C1_PDL1_base * p_r_PDL1_IFNg/p_A_cell * p_r_PDL2C1))   # R114 Translocation of PDL2 between cell surface and cytoplasm
    v115 <- p_k_in_PDL1 * (p_C1_PDL1_base/p_A_cell - x_syn_T_C1_PDL1_total)   # R115 Translocation of PDL1 between cell surface and cytoplasm
    v119 <- 2 * p_kon_PD1_aPD1 * (x_syn_T_C1_PD1 * x_V_T_aPD1/p_gamma_T_aPD1) - p_koff_PD1_aPD1 * x_syn_T_C1_PD1_aPD1   # R119 binding and unbinding of PD1 to aPD1 on T surface in synapse
    v133 <- 4 * p_kon_CTLA4_aCTLA4 * (x_syn_T_C1_CTLA4 * x_V_T_aCTLA4/p_gamma_T_aCTLA4) - p_koff_CTLA4_aCTLA4 * x_syn_T_C1_CTLA4_aCTLA4   # R133 binding and unbinding of CTLA4 to aCTLA4 on T surface in synapse
    v141 <- p_k_out_PDL1 * x_V_T_IFNg/(x_V_T_IFNg + p_IFNg_50_ind) * (1 - x_syn_T_APC_PDL1_total/(p_APC_PDL1_base * p_r_PDL1_IFNg/p_A_cell))   # R141 Translocation of PDL1 between cell surface and cytoplasm
    v142 <- p_k_out_PDL1 * p_r_PDL2APC * x_V_T_IFNg/(x_V_T_IFNg + p_IFNg_50_ind) * (1 - x_syn_T_APC_PDL2_total/(p_APC_PDL1_base * p_r_PDL1_IFNg/p_A_cell * p_r_PDL2APC))   # R142 Translocation of PDL2 between cell surface and cytoplasm
    v143 <- p_k_in_PDL1 * (p_APC_PDL1_base/p_A_cell - x_syn_T_APC_PDL1_total)   # R143 Translocation of PDL1 between cell surface and cytoplasm
    v169 <- p_k_Th_act * H_APCh * H_P1 * x_V_LN_nT0   # R169 Naive T cell activation
    v170 <- p_k_Th_act * H_APCh * H_P1 * x_V_LN_nT0 * p_n_T1_clones   # R170 Naive T cell activation
    v171 <- (p_k_T0_pro/N_aTh) * x_V_LN_aTh   # R171 aTh cell proliferation
    v172 <- (p_k_T0_pro/N_aTh) * 2^N_aTh * x_V_LN_aTh   # R172 aTh cell proliferation
    v184 <- p_k_TGFb_deg * (p_TGFbase - x_V_T_TGFb) * vol_V_T   # R184 TGFb secretion by triple-negative breast cancer cells
    v187 <- p_k_IFNg_deg * x_V_T_IFNg   # R187 IFNg degradtion in tumor
    v189 <- p_k_CCL2_deg * x_V_T_CCL2   # R189 CCL2 degradation
    v190 <- p_k_MDSC_mig * vol_V_T * (x_V_T_CCL2/(x_V_T_CCL2 + p_CCL2_50))   # R190 Recruitment of macrophage to tumor
    v193 <- p_k_NO_deg * x_V_T_NO   # R193 NO degradation
    v205 <- p_k_Mac_mig * vol_V_T * (x_V_T_CCL2/(x_V_T_CCL2 + p_CCL2_50))   # R205 Recruitment of pro-inflammatory M1 macrophage to tumor
    v212 <- p_k_IL12_deg * x_V_T_IL12   # R212 Degradation of IL-12 in tumor
    v216 <- p_k_IL10_deg * x_V_T_IL10   # R216 Degradation of IL-10 in tumor
    v217 <- p_k_M2_pol * x_V_T_Mac_M1 * (x_V_T_TGFb/(x_V_T_TGFb + p_TGFb_50) + x_V_T_IL10/(x_V_T_IL10 + p_IL10_50))   # R217 M1 to M2 macrophage polarization in tumor
    v218 <- p_k_M1_pol * x_V_T_Mac_M2 * (x_V_T_IL12/(x_V_T_IL12 + p_IL12_50) + x_V_T_IFNg/(x_V_T_IFNg + p_IFNg_50))   # R218 M2 to M1 macrophage polarization in tumor
    v219 <- p_k_out_PDL1 * x_V_T_IFNg/(x_V_T_IFNg + p_IFNg_50_ind) * (1 - x_syn_M_C_PDL1_total/(p_C1_PDL1_base * p_r_PDL1_IFNg/p_A_cell))   # R219 Translocation of PDL1 between cell surface and cytoplasm
    v220 <- p_k_out_PDL1 * p_r_PDL2C1 * x_V_T_IFNg/(x_V_T_IFNg + p_IFNg_50_ind) * (1 - x_syn_M_C_PDL2_total/(p_C1_PDL1_base * p_r_PDL1_IFNg/p_A_cell * p_r_PDL2C1))   # R220 Translocation of PDL2 between cell surface and cytoplasm
    v221 <- p_k_in_PDL1 * (p_C1_PDL1_base/p_A_cell - x_syn_M_C_PDL1_total)   # R221 Translocation of PDL1 between cell surface and cytoplasm
    v226 <- 2 * p_kon_PD1_aPD1 * (x_syn_M_C_PD1 * x_V_T_aPD1/p_gamma_T_aPD1) - p_koff_PD1_aPD1 * x_syn_M_C_PD1_aPD1   # R226 binding and unbinding of PD1 to aPD1 on macrophage surface in synapse
    H_MDSC <- 1 - (1 - H_NO) * (1 - H_ArgI_Teff)   # Wang 2022 Table S5 rule 47
    v57 <- p_k_Treg * x_V_T_T1 * Tregs_/(x_V_T_T1 + Tregs_ + p_cell) * H_IL10   # R57 T cell death from Tregs
    v68 <- p_k_APC_mat * x_V_T_APC * H_IL12 * (1 - H_IL10)   # R68 APC maturation in the tumour
    v173 <- p_k_Th_Treg * x_V_T_Th * H_TGFb * H_ArgI_Treg   # R173 Differentiation between Treg and Th Cells
    v232 <- p_k_M1_phago * x_V_T_C1 * x_V_T_Mac_M1/(x_V_T_Mac_M1 + p_K_Mac_C * x_V_T_C1 + p_cell) * (1 - H_Mac_C) * (1 - H_IL10_phago)   # R232 M1 macrophage-mediated killing of cancer cell
    v233 <- p_k_M1_phago * x_V_T_C2 * x_V_T_Mac_M1/(x_V_T_Mac_M1 + p_K_Mac_C * x_V_T_C2 + p_cell) * (1 - H_Mac_C) * (1 - H_IL10_phago)   # R233 M1 macrophage-mediated killing of cancer cell
    R_Tcell <- 0 * p_cell/p_day + (p_k_C1_death + p_k_C1_therapy) * x_V_T_C1 + p_k_C_T1 * x_V_T_C1 * x_V_T_T1/(p_K_T_C * x_V_T_C1 + x_V_T_T1 + p_cell) * x_V_T_T1/(x_V_T_T1 + p_K_T_Treg * Tregs_ + p_cell) * (1 - H_TGFb_Teff) * (1 - H_PD1_C1) * (1 - H_MDSC) + (k_C2_death + p_k_C2_therapy) * x_V_T_C2 + p_k_C_T1 * x_V_T_C2 * x_V_T_T1/(p_K_T_C * x_V_T_C2 + x_V_T_T1 + p_cell) * x_V_T_T1/(x_V_T_T1 + p_K_T_Treg * Tregs_ + p_cell) * (1 - H_TGFb_Teff) * (1 - H_PD1_C1) * (1 - H_MDSC) + p_k_M1_phago * x_V_T_C1 * x_V_T_Mac_M1/(x_V_T_Mac_M1 +     p_K_Mac_C * x_V_T_C1 + p_cell) * (1 - H_Mac_C) * (1 - H_IL10_phago) + p_k_M1_phago * x_V_T_C2 * x_V_T_Mac_M1/(x_V_T_Mac_M1 + p_K_Mac_C * x_V_T_C2 + p_cell) * (1 - H_Mac_C) * (1 - H_IL10_phago)   # Wang 2022 Table S5 rule 5
    v64 <- p_k_C_T1 * x_V_T_C1 * x_V_T_T1/(p_K_T_C * x_V_T_C1 + x_V_T_T1 + p_cell) * x_V_T_T1/(x_V_T_T1 + p_K_T_Treg * Tregs_ + p_cell) * (1 - H_TGFb_Teff) * (1 - H_PD1_C1) * (1 - H_MDSC)   # R64 Cancer cell killing by T cells
    v65 <- p_k_C_T1 * x_V_T_C2 * x_V_T_T1/(p_K_T_C * x_V_T_C2 + x_V_T_T1 + p_cell) * x_V_T_T1/(x_V_T_T1 + p_K_T_Treg * Tregs_ + p_cell) * (1 - H_TGFb_Teff) * (1 - H_PD1_C1) * (1 - H_MDSC)   # R65 Cancer cell killing by T cells
    v75 <- p_n_T0_clones * (p_P0_C1 * (p_k_C1_death + p_k_C1_therapy) * x_V_T_C1 + p_P0_C1 * p_k_C_T1 * x_V_T_C1 * x_V_T_T1/(p_K_T_C * x_V_T_C1 + x_V_T_T1 + p_cell) * x_V_T_T1/(x_V_T_T1 + p_K_T_Treg * Tregs_ + p_cell) * (1 - H_TGFb_Teff) * (1 - H_PD1_C1) * (1 - H_MDSC) + p_P0_C2 * (k_C2_death + p_k_C2_therapy) * x_V_T_C2 + p_P0_C2 * p_k_C_T1 * x_V_T_C2 * x_V_T_T1/(p_K_T_C * x_V_T_C2 + x_V_T_T1 + p_cell) * x_V_T_T1/(x_V_T_T1 + p_K_T_Treg * Tregs_ + p_cell) * (1 - H_TGFb_Teff) * (1 - H_PD1_C1) * (1 - H_MDSC))   # R75 Antigen deposition from dying cancer cells
    v85 <- p_n_T1_clones * (p_P1_C1 * (p_k_C1_death + p_k_C1_therapy) * x_V_T_C1 + p_P1_C1 * p_k_C_T1 * x_V_T_C1 * x_V_T_T1/(p_K_T_C * x_V_T_C1 + x_V_T_T1 + p_cell) * x_V_T_T1/(x_V_T_T1 + p_K_T_Treg * Tregs_ + p_cell) * (1 - H_TGFb_Teff) * (1 - H_PD1_C1) * (1 - H_MDSC) + p_P1_C2 * (k_C2_death + p_k_C2_therapy) * x_V_T_C2 + p_P1_C2 * p_k_C_T1 * x_V_T_C2 * x_V_T_T1/(p_K_T_C * x_V_T_C2 + x_V_T_T1 + p_cell) * x_V_T_T1/(x_V_T_T1 + p_K_T_Treg * Tregs_ + p_cell) * (1 - H_TGFb_Teff) * (1 - H_PD1_C1) * (1 - H_MDSC))   # R85 Antigen deposition from dying cancer cells
    v73 <- R_Tcell * p_DAMPs   # R73 Cytokine release in response to the tumour

    # ---------- ODEs (states are AMOUNTS) ----------
    d/dt(q_V_C_nT0) <- +v12-v16-v18+v19-v20+v21
    d/dt(q_V_C_T0) <- -v26-v31+v32-v33+v34
    d/dt(q_V_C_nT1) <- +v38-v42-v44+v45-v46+v47
    d/dt(q_V_C_T1) <- -v52-v59+v60-v61+v62
    d/dt(q_V_C_aPD1) <- -v95-v96-v97+v99*vol_V_T-v100
    d/dt(q_V_C_aCTLA4) <- -v107-v108-v109+v111*vol_V_T-v112
    d/dt(q_V_C_Th) <- -v174-v179+v180-v181+v182
    d/dt(q_V_P_nT0) <- +v13-v15+v18-v19
    d/dt(q_V_P_T0) <- -v27+v31-v32
    d/dt(q_V_P_nT1) <- +v39-v41+v44-v45
    d/dt(q_V_P_T1) <- -v53+v59-v60
    d/dt(q_V_P_aPD1) <- +v95
    d/dt(q_V_P_aCTLA4) <- +v107
    d/dt(q_V_P_Th) <- -v175+v179-v180
    d/dt(q_V_T_C_x) <- -v1+v5+v11+v64+v65+v232+v233
    d/dt(q_V_T_T1_exh) <- -v2+v55+v56+v57+v58
    d/dt(q_V_T_Th_exh) <- -v3+v177+v178
    d/dt(q_V_T_C1) <- +v4-v5-v64-v232
    d/dt(q_V_T_K) <- +v8-v9
    d/dt(q_V_T_c_vas) <- +v6-v7*vol_V_T+v214
    d/dt(q_V_T_C2) <- +v10-v11-v65-v233
    d/dt(q_V_T_T0) <- -v29-v30+v33+v173
    d/dt(q_V_T_T1) <- -v55-v56-v57-v58+v61
    d/dt(q_V_T_APC) <- +v66-v68
    d/dt(q_V_T_mAPC) <- +v68-v69-v70
    d/dt(q_V_T_c) <- +v72*vol_V_T+v73
    d/dt(q_V_T_P0) <- +v75-v76-v77
    d/dt(q_V_T_P1) <- +v85-v86-v87
    d/dt(q_V_T_aPD1) <- +v96-v98*vol_V_T
    d/dt(q_V_T_aCTLA4) <- +v108-v110*vol_V_T
    d/dt(q_V_T_Th) <- -v173-v177-v178+v181
    d/dt(q_V_T_TGFb) <- +v184+v185+v213
    d/dt(q_V_T_IFNg) <- +v186-v187*vol_V_T
    d/dt(q_V_T_MDSC) <- +v190-v191-v192
    d/dt(q_V_T_NO) <- -v193*vol_V_T+v195
    d/dt(q_V_T_ArgI) <- -v194+v196/m_V_C
    d/dt(q_V_T_CCL2) <- +v188-v189*vol_V_T
    d/dt(q_V_T_Mac_M1) <- +v205-v206-v208-v217+v218
    d/dt(q_V_T_Mac_M2) <- -v207-v209+v217-v218
    d/dt(q_V_T_IL12) <- +v210+v211-v212*vol_V_T
    d/dt(q_V_T_IL10) <- +v215-v216*vol_V_T
    d/dt(q_V_LN_nT0) <- +v14-v17+v20-v21-v22-v169
    d/dt(q_V_LN_aT0) <- +v23-v24
    d/dt(q_V_LN_T0) <- +v25-v28-v34
    d/dt(q_V_LN_IL2) <- -v35-v36-v37+v63+v183
    d/dt(q_V_LN_nT1) <- +v40-v43+v46-v47-v48
    d/dt(q_V_LN_aT1) <- +v49-v50
    d/dt(q_V_LN_T1) <- +v51-v54-v62
    d/dt(q_V_LN_APC) <- +v67
    d/dt(q_V_LN_mAPC) <- +v69-v71
    d/dt(q_V_LN_aPD1) <- +v97+v98*vol_V_T-v99*vol_V_T
    d/dt(q_V_LN_aCTLA4) <- +v109+v110*vol_V_T-v111*vol_V_T
    d/dt(q_V_LN_aTh) <- +v170-v171
    d/dt(q_V_LN_Th) <- +v172-v176-v182
    d/dt(q_V_e_P0) <- +v78-v79
    d/dt(q_V_e_p0) <- +v79-v80-v81/NAVG_nmol+v82/NAVG_nmol
    d/dt(q_V_e_P1) <- +v88-v89
    d/dt(q_V_e_p1) <- +v89-v90-v91/NAVG_nmol+v92/NAVG_nmol
    d/dt(q_A_e_M1) <- -v74-v81+v82-v91+v92
    d/dt(q_A_e_M1p0) <- +v81-v82-v84
    d/dt(q_A_e_M1p1) <- +v91-v92-v94
    d/dt(q_A_s_M1) <- +v74+v83+v93
    d/dt(q_A_s_M1p0) <- -v83+v84
    d/dt(q_A_s_M1p1) <- -v93+v94
    d/dt(q_syn_T_C1_PD1_PDL1) <- +v117*m_syn_T_C1
    d/dt(q_syn_T_C1_PD1_PDL2) <- +v118*m_syn_T_C1
    d/dt(q_syn_T_C1_PD1) <- -v117*m_syn_T_C1-v118*m_syn_T_C1-v119*m_syn_T_C1-v120*m_syn_T_C1
    d/dt(q_syn_T_C1_PDL1) <- +v113+v115*m_syn_T_C1-v117*m_syn_T_C1-v136*m_syn_T_C1-p_kon_PDL1_aPDL1*q_syn_T_C1_PDL1*(x_V_T_P_mo/p_gamma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T_C1_TPDL1_P_cc_bb)
    d/dt(q_syn_T_C1_CD28_CD80) <- +v123*m_syn_T_C1-v124*m_syn_T_C1
    d/dt(q_syn_T_C1_CD28_CD80_CD28) <- +v124*m_syn_T_C1
    d/dt(q_syn_T_C1_CD28_CD86) <- +v125*m_syn_T_C1
    d/dt(q_syn_T_C1_CD80_CTLA4) <- +v126*m_syn_T_C1-v127*m_syn_T_C1-v129*m_syn_T_C1
    d/dt(q_syn_T_C1_CD80_CTLA4_CD80) <- +v129*m_syn_T_C1-v130*m_syn_T_C1
    d/dt(q_syn_T_C1_CTLA4_CD80_CTLA4) <- +v127*m_syn_T_C1-v128*m_syn_T_C1
    d/dt(q_syn_T_C1_CD80_CTLA4_CD80_CTLA4) <- +v128*m_syn_T_C1+v130*m_syn_T_C1
    d/dt(q_syn_T_C1_CD86_CTLA4) <- +v131*m_syn_T_C1-v132*m_syn_T_C1
    d/dt(q_syn_T_C1_CD86_CTLA4_CD86) <- +v132*m_syn_T_C1
    d/dt(q_syn_T_C1_PDL1_CD80) <- +v136*m_syn_T_C1-v137*m_syn_T_C1-v138*m_syn_T_C1
    d/dt(q_syn_T_C1_PDL1_CD80_CD28) <- +v137*m_syn_T_C1
    d/dt(q_syn_T_C1_PDL1_CD80_CTLA4) <- +v138*m_syn_T_C1
    d/dt(q_syn_T_C1_CD28) <- -v123*m_syn_T_C1-v124*m_syn_T_C1-v125*m_syn_T_C1-v137*m_syn_T_C1
    d/dt(q_syn_T_C1_CTLA4) <- -v126*m_syn_T_C1-v127*m_syn_T_C1-v130*m_syn_T_C1-v131*m_syn_T_C1-v133*m_syn_T_C1-v134*m_syn_T_C1-v138*m_syn_T_C1
    d/dt(q_syn_T_C1_CD80) <- -v123*m_syn_T_C1-v126*m_syn_T_C1-v128*m_syn_T_C1-v129*m_syn_T_C1+v135*m_syn_T_C1
    d/dt(q_syn_T_C1_CD80m) <- -2*v135*m_syn_T_C1-v136*m_syn_T_C1
    d/dt(q_syn_T_C1_CD86) <- -v125*m_syn_T_C1-v131*m_syn_T_C1-v132*m_syn_T_C1
    d/dt(q_syn_T_C1_CTLA4_aCTLA4) <- +v133*m_syn_T_C1-v134*m_syn_T_C1
    d/dt(q_syn_T_C1_CTLA4_aCTLA4_CTLA4) <- +v134*m_syn_T_C1
    d/dt(q_syn_T_APC_PD1_PDL1) <- +v145*m_syn_T_APC
    d/dt(q_syn_T_APC_PD1_PDL2) <- +v146*m_syn_T_APC
    d/dt(q_syn_T_APC_PD1) <- -v145*m_syn_T_APC-v146*m_syn_T_APC-v147*m_syn_T_APC-v148*m_syn_T_APC
    d/dt(q_syn_T_APC_PDL1) <- +v141+v143*m_syn_T_APC-v145*m_syn_T_APC-v164*m_syn_T_APC-p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_mo/p_gamma_LN_aPDL1)-2*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_oo/p_gamma_LN_aPDL1)-p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_cm/p_gamma_LN_aPDL1)-p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-2*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_cc/p_gamma_LN_aPDL1)+p_koff_PDL1_aPDL1*(q_syn_T_APC_PDL1_P_mo_fb+q_syn_T_APC_PDL1_P_oo_fb+q_syn_T_APC_PDL1_P_cm_bf+q_syn_T_APC_PDL1_P_co_bf+q_syn_T_APC_PDL1_P_co_fb+q_syn_T_APC_PDL1_P_cc_fb)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_oo_fb/(m_syn_T_APC*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_co_bf/(m_syn_T_APC*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_co_fb/(m_syn_T_APC*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_cc_fb/(m_syn_T_APC*NAVG_nmol)+2*p_koff_PDL1_aPDL1*(q_syn_T_APC_PDL1_P_oo_bb+q_syn_T_APC_PDL1_P_co_bb+q_syn_T_APC_PDL1_P_cc_bb)
    d/dt(q_syn_T_APC_PDL2) <- +v142+v144*m_syn_T_APC-v146*m_syn_T_APC
    d/dt(q_syn_T_APC_PD1_aPD1) <- +v147*m_syn_T_APC-v148*m_syn_T_APC
    d/dt(q_syn_T_APC_PD1_aPD1_PD1) <- +v148*m_syn_T_APC
    d/dt(q_syn_T_APC_TPDL1) <- -p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_mo/p_gamma_LN_aPDL1)-2*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_oo/p_gamma_LN_aPDL1)-p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_cm/p_gamma_LN_aPDL1)-p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-2*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_cc/p_gamma_LN_aPDL1)+p_koff_PDL1_aPDL1*(q_syn_T_APC_TPDL1_P_mo_fb+q_syn_T_APC_TPDL1_P_oo_fb+q_syn_T_APC_TPDL1_P_cm_bf+q_syn_T_APC_TPDL1_P_co_bf+q_syn_T_APC_TPDL1_P_co_fb+q_syn_T_APC_TPDL1_P_cc_fb)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*q_syn_T_APC_TPDL1_P_oo_fb/(m_syn_T_APC*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*q_syn_T_APC_TPDL1_P_co_bf/(m_syn_T_APC*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*q_syn_T_APC_TPDL1_P_co_fb/(m_syn_T_APC*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*q_syn_T_APC_TPDL1_P_cc_fb/(m_syn_T_APC*NAVG_nmol)+2*p_koff_PDL1_aPDL1*(q_syn_T_APC_TPDL1_P_oo_bb+q_syn_T_APC_TPDL1_P_co_bb+q_syn_T_APC_TPDL1_P_cc_bb)
    d/dt(q_syn_T_APC_CD28_CD80) <- +v151*m_syn_T_APC-v152*m_syn_T_APC
    d/dt(q_syn_T_APC_CD28_CD80_CD28) <- +v152*m_syn_T_APC
    d/dt(q_syn_T_APC_CD28_CD86) <- +v153*m_syn_T_APC
    d/dt(q_syn_T_APC_CD80_CTLA4) <- +v154*m_syn_T_APC-v155*m_syn_T_APC-v157*m_syn_T_APC
    d/dt(q_syn_T_APC_CD80_CTLA4_CD80) <- +v157*m_syn_T_APC-v158*m_syn_T_APC
    d/dt(q_syn_T_APC_CTLA4_CD80_CTLA4) <- +v155*m_syn_T_APC-v156*m_syn_T_APC
    d/dt(q_syn_T_APC_CD80_CTLA4_CD80_CTLA4) <- +v156*m_syn_T_APC+v158*m_syn_T_APC
    d/dt(q_syn_T_APC_CD86_CTLA4) <- +v159*m_syn_T_APC-v160*m_syn_T_APC
    d/dt(q_syn_T_APC_CD86_CTLA4_CD86) <- +v160*m_syn_T_APC
    d/dt(q_syn_T_APC_PDL1_CD80) <- +v164*m_syn_T_APC-v165*m_syn_T_APC-v166*m_syn_T_APC
    d/dt(q_syn_T_APC_PDL1_CD80_CD28) <- +v165*m_syn_T_APC
    d/dt(q_syn_T_APC_PDL1_CD80_CTLA4) <- +v166*m_syn_T_APC
    d/dt(q_syn_T_APC_CD28) <- -v151*m_syn_T_APC-v152*m_syn_T_APC-v153*m_syn_T_APC-v165*m_syn_T_APC
    d/dt(q_syn_T_APC_CTLA4) <- -v154*m_syn_T_APC-v155*m_syn_T_APC-v158*m_syn_T_APC-v159*m_syn_T_APC-v161*m_syn_T_APC-v162*m_syn_T_APC-v166*m_syn_T_APC
    d/dt(q_syn_T_APC_CD80) <- -v151*m_syn_T_APC-v154*m_syn_T_APC-v156*m_syn_T_APC-v157*m_syn_T_APC+v163*m_syn_T_APC
    d/dt(q_syn_T_APC_CD80m) <- -2*v163*m_syn_T_APC-v164*m_syn_T_APC
    d/dt(q_syn_T_APC_CD86) <- -v153*m_syn_T_APC-v159*m_syn_T_APC-v160*m_syn_T_APC
    d/dt(q_syn_T_APC_CTLA4_aCTLA4) <- +v161*m_syn_T_APC-v162*m_syn_T_APC
    d/dt(q_syn_T_APC_CTLA4_aCTLA4_CTLA4) <- +v162*m_syn_T_APC
    d/dt(q_syn_M_C_CD47) <- -v223*m_syn_M_C
    d/dt(q_syn_M_C_SIRPa) <- -v223*m_syn_M_C
    d/dt(q_syn_M_C_CD47_SIRPa) <- +v223*m_syn_M_C
    d/dt(q_syn_M_C_PD1_PDL1) <- +v224*m_syn_M_C
    d/dt(q_syn_M_C_PD1_PDL2) <- +v225*m_syn_M_C
    d/dt(q_syn_M_C_PD1) <- -v224*m_syn_M_C-v225*m_syn_M_C-v226*m_syn_M_C-v227*m_syn_M_C
    d/dt(q_syn_M_C_PDL1) <- +v219+v221*m_syn_M_C-v224*m_syn_M_C-v231*m_syn_M_C-p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*(x_V_T_P_mo/p_gamma_T_aPDL1)-2*p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*(x_V_T_P_oo/p_gamma_T_aPDL1)-p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*(x_V_T_P_cm/p_gamma_T_aPDL1)-p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*(x_V_T_P_co/p_gamma_T_aPDL1)-p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*(x_V_T_P_co/p_gamma_T_aPDL1)-2*p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*(x_V_T_P_cc/p_gamma_T_aPDL1)+p_koff_PDL1_aPDL1*(q_syn_M_C_PDL1_P_mo_fb+q_syn_M_C_PDL1_P_oo_fb+q_syn_M_C_PDL1_P_cm_bf+q_syn_M_C_PDL1_P_co_bf+q_syn_M_C_PDL1_P_co_fb+q_syn_M_C_PDL1_P_cc_fb)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*q_syn_M_C_PDL1_P_oo_fb/(m_syn_M_C*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*q_syn_M_C_PDL1_P_co_bf/(m_syn_M_C*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*q_syn_M_C_PDL1_P_co_fb/(m_syn_M_C*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_M_C_PDL1*q_syn_M_C_PDL1_P_cc_fb/(m_syn_M_C*NAVG_nmol)+2*p_koff_PDL1_aPDL1*(q_syn_M_C_PDL1_P_oo_bb+q_syn_M_C_PDL1_P_co_bb+q_syn_M_C_PDL1_P_cc_bb)
    d/dt(q_syn_M_C_PDL2) <- +v220+v222*m_syn_M_C-v225*m_syn_M_C
    d/dt(q_syn_M_C_PD1_aPD1) <- +v226*m_syn_M_C-v227*m_syn_M_C
    d/dt(q_syn_M_C_PD1_aPD1_PD1) <- +v227*m_syn_M_C
    d/dt(q_syn_M_C_PDL1_CD80) <- +v231*m_syn_M_C
    d/dt(q_syn_M_C_CD80) <- +v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APC_PDL1_P_mo_fb+(p_k_o/p_K_M)*q_syn_T_APC_PDL1_P_oo_fb-2*(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_mo_fb
    d/dt(q_syn_T_APC_PDL1_P_oo_fb) <- +2*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_oo/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_oo_fb+p_k_o*q_syn_T_APC_PDL1_P_mo_fb-(p_k_o/p_K_M)*q_syn_T_APC_PDL1_P_oo_fb-2*(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_oo_fb-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_oo_fb/(m_syn_T_APC*NAVG_nmol)+2*p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_oo_bb
    d/dt(q_syn_T_APC_PDL1_P_cm_bf) <- +p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_cm/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_cm_bf-p_k_o*q_syn_T_APC_PDL1_P_cm_bf+(p_k_o/p_K_M)*q_syn_T_APC_PDL1_P_co_bf+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_mo_fb-(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_cm_bf
    d/dt(q_syn_T_APC_PDL1_P_co_bf) <- +p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_co_bf+p_k_o*q_syn_T_APC_PDL1_P_cm_bf-(p_k_o/p_K_M)*q_syn_T_APC_PDL1_P_co_bf+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_oo_fb-(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_co_bf-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_co_bf/(m_syn_T_APC*NAVG_nmol)+p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_co_bb
    d/dt(q_syn_T_APC_PDL1_P_co_fb) <- +p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_co_fb+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_oo_fb+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_mo_fb-(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_co_fb-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_co_fb/(m_syn_T_APC*NAVG_nmol)+p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_co_bb
    d/dt(q_syn_T_APC_PDL1_P_cc_fb) <- +2*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*(x_V_LN_P_cc/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_cc_fb+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_co_fb+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_co_bf+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_cm_bf-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_cc_fb/(m_syn_T_APC*NAVG_nmol)+2*p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_cc_bb
    d/dt(q_syn_T_APC_PDL1_P_oo_bb) <- +p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_oo_fb/(m_syn_T_APC*NAVG_nmol)-2*p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_oo_bb-2*(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_oo_bb
    d/dt(q_syn_T_APC_PDL1_P_co_bb) <- +p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_co_bf/(m_syn_T_APC*NAVG_nmol)+p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_co_fb/(m_syn_T_APC*NAVG_nmol)-2*p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_co_bb+2*(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_oo_bb-(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_co_bb
    d/dt(q_syn_T_APC_PDL1_P_cc_bb) <- +p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_PDL1*q_syn_T_APC_PDL1_P_cc_fb/(m_syn_T_APC*NAVG_nmol)-2*p_koff_PDL1_aPDL1*q_syn_T_APC_PDL1_P_cc_bb+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_PDL1_P_co_bb
    d/dt(q_syn_T_APC_TPDL1_P_mo_fb) <- +p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_mo/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_mo_fb-p_k_o*q_syn_T_APC_TPDL1_P_mo_fb+(p_k_o/p_K_M)*q_syn_T_APC_TPDL1_P_oo_fb-2*(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_mo_fb
    d/dt(q_syn_T_APC_TPDL1_P_oo_fb) <- +2*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_oo/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_oo_fb+p_k_o*q_syn_T_APC_TPDL1_P_mo_fb-(p_k_o/p_K_M)*q_syn_T_APC_TPDL1_P_oo_fb-2*(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_oo_fb-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*q_syn_T_APC_TPDL1_P_oo_fb/(m_syn_T_APC*NAVG_nmol)+2*p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_oo_bb
    d/dt(q_syn_T_APC_TPDL1_P_cm_bf) <- +p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_cm/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_cm_bf-p_k_o*q_syn_T_APC_TPDL1_P_cm_bf+(p_k_o/p_K_M)*q_syn_T_APC_TPDL1_P_co_bf+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_mo_fb-(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_cm_bf
    d/dt(q_syn_T_APC_TPDL1_P_co_bf) <- +p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_co_bf+p_k_o*q_syn_T_APC_TPDL1_P_cm_bf-(p_k_o/p_K_M)*q_syn_T_APC_TPDL1_P_co_bf+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_oo_fb-(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_co_bf-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*q_syn_T_APC_TPDL1_P_co_bf/(m_syn_T_APC*NAVG_nmol)+p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_co_bb
    d/dt(q_syn_T_APC_TPDL1_P_co_fb) <- +p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_co_fb+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_oo_fb+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_mo_fb-(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_co_fb-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*q_syn_T_APC_TPDL1_P_co_fb/(m_syn_T_APC*NAVG_nmol)+p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_co_bb
    d/dt(q_syn_T_APC_TPDL1_P_cc_fb) <- +2*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*(x_V_LN_P_cc/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_cc_fb+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_co_fb+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_co_bf+(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_cm_bf-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*q_syn_T_APC_TPDL1_P_cc_fb/(m_syn_T_APC*NAVG_nmol)+2*p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_cc_bb
    d/dt(q_syn_T_APC_TPDL1_P_oo_bb) <- +p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_T_APC_TPDL1*q_syn_T_APC_TPDL1_P_oo_fb/(m_syn_T_APC*NAVG_nmol)-2*p_koff_PDL1_aPDL1*q_syn_T_APC_TPDL1_P_oo_bb-2*(p_k_cvg*p_f_cvg_out)*q_syn_T_APC_TPDL1_P_oo_bb
    d/dt(q_syn_T_APC_TPDL1_P_co_bb) <- +p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_syn_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_aPDL1*q_oos_M_PDL1*q_oos_M_PDL1_P_cc_fb/(m_oos_M*NAVG_nmol)-2*p_koff_PDL1_aPDL1*q_oos_M_PDL1_P_cc_bb+p_k_cvg*q_oos_M_PDL1_P_co_bb
    d/dt(q_oos_APC_PDL1_P_mo_fb) <- +p_kon_PDL1_aPDL1*q_oos_APC_PDL1*(x_V_LN_P_mo/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_mo_fb-p_k_o*q_oos_APC_PDL1_P_mo_fb+(p_k_o/p_K_M)*q_oos_APC_PDL1_P_oo_fb-2*(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_mo_fb
    d/dt(q_oos_APC_PDL1_P_oo_fb) <- +2*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*(x_V_LN_P_oo/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_oo_fb+p_k_o*q_oos_APC_PDL1_P_mo_fb-(p_k_o/p_K_M)*q_oos_APC_PDL1_P_oo_fb-2*(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_oo_fb-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_oo_fb/(m_oos_APC*NAVG_nmol)+2*p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_oo_bb
    d/dt(q_oos_APC_PDL1_P_cm_bf) <- +p_kon_PDL1_aPDL1*q_oos_APC_PDL1*(x_V_LN_P_cm/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_cm_bf-p_k_o*q_oos_APC_PDL1_P_cm_bf+(p_k_o/p_K_M)*q_oos_APC_PDL1_P_co_bf+(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_mo_fb-(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_cm_bf
    d/dt(q_oos_APC_PDL1_P_co_bf) <- +p_kon_PDL1_aPDL1*q_oos_APC_PDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_co_bf+p_k_o*q_oos_APC_PDL1_P_cm_bf-(p_k_o/p_K_M)*q_oos_APC_PDL1_P_co_bf+(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_oo_fb-(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_co_bf-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_co_bf/(m_oos_APC*NAVG_nmol)+p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_co_bb
    d/dt(q_oos_APC_PDL1_P_co_fb) <- +p_kon_PDL1_aPDL1*q_oos_APC_PDL1*(x_V_LN_P_co/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_co_fb+(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_oo_fb+(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_mo_fb-(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_co_fb-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_co_fb/(m_oos_APC*NAVG_nmol)+p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_co_bb
    d/dt(q_oos_APC_PDL1_P_cc_fb) <- +2*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*(x_V_LN_P_cc/p_gamma_LN_aPDL1)-p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_cc_fb+(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_co_fb+(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_co_bf+(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_cm_bf-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_cc_fb/(m_oos_APC*NAVG_nmol)+2*p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_cc_bb
    d/dt(q_oos_APC_PDL1_P_oo_bb) <- +p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_oo_fb/(m_oos_APC*NAVG_nmol)-2*p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_oo_bb-2*(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_oo_bb
    d/dt(q_oos_APC_PDL1_P_co_bb) <- +p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_co_bf/(m_oos_APC*NAVG_nmol)+p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_co_fb/(m_oos_APC*NAVG_nmol)-2*p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_co_bb+2*(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_oo_bb-(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_co_bb
    d/dt(q_oos_APC_PDL1_P_cc_bb) <- +p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_cc_fb/(m_oos_APC*NAVG_nmol)-2*p_koff_PDL1_aPDL1*q_oos_APC_PDL1_P_cc_bb+(p_k_cvg*p_f_cvg_out)*q_oos_APC_PDL1_P_co_bb
    d/dt(q_oos_C1_PDL1) <- +vpb_out_oos_C1_PDL1+vpb_in_oos_C1_PDL1-p_kon_PDL1_aPDL1*q_oos_C1_PDL1*(x_V_T_P_mo/p_gamma_T_aPDL1)-2*p_kon_PDL1_aPDL1*q_oos_C1_PDL1*(x_V_T_P_oo/p_gamma_T_aPDL1)-p_kon_PDL1_aPDL1*q_oos_C1_PDL1*(x_V_T_P_cm/p_gamma_T_aPDL1)-p_kon_PDL1_aPDL1*q_oos_C1_PDL1*(x_V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APC_PDL1_P_co_fb+q_oos_APC_PDL1_P_cc_fb)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_oo_fb/(m_oos_APC*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_co_bf/(m_oos_APC*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_co_fb/(m_oos_APC*NAVG_nmol)-p_Chi_PDL1_aPDL1*p_kon_PDL1_aPDL1*q_oos_APC_PDL1*q_oos_APC_PDL1_P_cc_fb/(m_oos_APC*NAVG_nmol)+2*p_koff_PDL1_aPDL1*(q_oos_APC_PDL1_P_oo_bb+q_oos_APC_PDL1_P_co_bb+q_oos_APC_PDL1_P_cc_bb)

    # ---------- initial conditions (Wang 2022 Table S3 + initialAssignment rules); V_T(0) = 3.2677e-05 L ----------
    q_V_C_nT0(0) <- 3706.89655172
    q_V_C_T0(0) <- 0
    q_V_C_nT1(0) <- 2274.77477477
    q_V_C_T1(0) <- 0
    q_V_C_aPD1(0) <- 0
    q_V_C_aCTLA4(0) <- 0
    q_V_C_Th(0) <- 0
    q_V_P_nT0(0) <- 185344.827586
    q_V_P_T0(0) <- 0
    q_V_P_nT1(0) <- 113738.738739
    q_V_P_T1(0) <- 0
    q_V_P_aPD1(0) <- 0
    q_V_P_aCTLA4(0) <- 0
    q_V_P_Th(0) <- 0
    q_V_T_C_x(0) <- 0
    q_V_T_T1_exh(0) <- 0
    q_V_T_Th_exh(0) <- 0
    q_V_T_C1(0) <- 4700000
    q_V_T_K(0) <- 10300
    q_V_T_c_vas(0) <- 0
    q_V_T_C2(0) <- 0
    q_V_T_T0(0) <- 0
    q_V_T_T1(0) <- 0
    q_V_T_APC(0) <- 0
    q_V_T_mAPC(0) <- 0
    q_V_T_c(0) <- 0
    q_V_T_P0(0) <- 3.2676950506e-14
    q_V_T_P1(0) <- 3.2676950506e-14
    q_V_T_aPD1(0) <- 0
    q_V_T_aCTLA4(0) <- 0
    q_V_T_Th(0) <- 0
    q_V_T_TGFb(0) <- 0
    q_V_T_IFNg(0) <- 0
    q_V_T_MDSC(0) <- 0
    q_V_T_NO(0) <- 0
    q_V_T_ArgI(0) <- 0
    q_V_T_CCL2(0) <- 0
    q_V_T_Mac_M1(0) <- 0
    q_V_T_Mac_M2(0) <- 0
    q_V_T_IL12(0) <- 0
    q_V_T_IL10(0) <- 0
    q_V_LN_nT0(0) <- 155.689655172
    q_V_LN_aT0(0) <- 0
    q_V_LN_T0(0) <- 0
    q_V_LN_IL2(0) <- 2.11403005648e-07
    q_V_LN_nT1(0) <- 113.738738739
    q_V_LN_aT1(0) <- 0
    q_V_LN_T1(0) <- 0
    q_V_LN_APC(0) <- 0
    q_V_LN_mAPC(0) <- 0
    q_V_LN_aPD1(0) <- 0
    q_V_LN_aCTLA4(0) <- 0
    q_V_LN_aTh(0) <- 0
    q_V_LN_Th(0) <- 0
    q_V_e_P0(0) <- 4e-25
    q_V_e_p0(0) <- 4e-25
    q_V_e_P1(0) <- 4e-25
    q_V_e_p1(0) <- 4e-25
    q_A_e_M1(0) <- 32786.8852459
    q_A_e_M1p0(0) <- 1.5e-05
    q_A_e_M1p1(0) <- 1.5e-05
    q_A_s_M1(0) <- 9e-04
    q_A_s_M1p0(0) <- 9e-04
    q_A_s_M1p1(0) <- 9e-04
    q_syn_T_C1_PD1_PDL1(0) <- 0
    q_syn_T_C1_PD1_PDL2(0) <- 0
    q_syn_T_C1_PD1(0) <- 6969.91030918
    q_syn_T_C1_PDL1(0) <- 4787.86531225
    q_syn_T_C1_PDL2(0) <- 47.8786531225
    q_syn_T_C1_PD1_aPD1(0) <- 0
    q_syn_T_C1_PD1_aPD1_PD1(0) <- 0
    q_syn_T_C1_TPDL1(0) <- 46466.0687279
    q_syn_T_C1_CD28_CD80(0) <- 0
    q_syn_T_C1_CD28_CD80_CD28(0) <- 0
    q_syn_T_C1_CD28_CD86(0) <- 0
    q_syn_T_C1_CD80_CTLA4(0) <- 0
    q_syn_T_C1_CD80_CTLA4_CD80(0) <- 0
    q_syn_T_C1_CTLA4_CD80_CTLA4(0) <- 0
    q_syn_T_C1_CD80_CTLA4_CD80_CTLA4(0) <- 0
    q_syn_T_C1_CD86_CTLA4(0) <- 0
    q_syn_T_C1_CD86_CTLA4_CD86(0) <- 0
    q_syn_T_C1_PDL1_CD80(0) <- 0
    q_syn_T_C1_PDL1_CD80_CD28(0) <- 0
    q_syn_T_C1_PDL1_CD80_CTLA4(0) <- 0
    q_syn_T_C1_CD28(0) <- 45966.4335802
    q_syn_T_C1_CTLA4(0) <- 1998.54059045
    q_syn_T_C1_CD80(0) <- 1665.34445644
    q_syn_T_C1_CD80m(0) <- 0
    q_syn_T_C1_CD86(0) <- 35804.9058134
    q_syn_T_C1_CTLA4_aCTLA4(0) <- 0
    q_syn_T_C1_CTLA4_aCTLA4_CTLA4(0) <- 0
    q_syn_T_APC_PD1_PDL1(0) <- 0
    q_syn_T_APC_PD1_PDL2(0) <- 0
    q_syn_T_APC_PD1(0) <- 6969.91030918
    q_syn_T_APC_PDL1(0) <- 11200
    q_syn_T_APC_PDL2(0) <- 112
    q_syn_T_APC_PD1_aPD1(0) <- 0
    q_syn_T_APC_PD1_aPD1_PD1(0) <- 0
    q_syn_T_APC_TPDL1(0) <- 46466.0687279
    q_syn_T_APC_CD28_CD80(0) <- 0
    q_syn_T_APC_CD28_CD80_CD28(0) <- 0
    q_syn_T_APC_CD28_CD86(0) <- 0
    q_syn_T_APC_CD80_CTLA4(0) <- 0
    q_syn_T_APC_CD80_CTLA4_CD80(0) <- 0
    q_syn_T_APC_CTLA4_CD80_CTLA4(0) <- 0
    q_syn_T_APC_CD80_CTLA4_CD80_CTLA4(0) <- 0
    q_syn_T_APC_CD86_CTLA4(0) <- 0
    q_syn_T_APC_CD86_CTLA4_CD86(0) <- 0
    q_syn_T_APC_PDL1_CD80(0) <- 0
    q_syn_T_APC_PDL1_CD80_CD28(0) <- 0
    q_syn_T_APC_PDL1_CD80_CTLA4(0) <- 0
    q_syn_T_APC_CD28(0) <- 45966.4335802
    q_syn_T_APC_CTLA4(0) <- 1998.54059045
    q_syn_T_APC_CD80(0) <- 1680
    q_syn_T_APC_CD80m(0) <- 0
    q_syn_T_APC_CD86(0) <- 36120
    q_syn_T_APC_CTLA4_aCTLA4(0) <- 0
    q_syn_T_APC_CTLA4_aCTLA4_CTLA4(0) <- 0
    q_syn_M_C_CD47(0) <- 15120
    q_syn_M_C_SIRPa(0) <- 3780
    q_syn_M_C_CD47_SIRPa(0) <- 0
    q_syn_M_C_PD1_PDL1(0) <- 0
    q_syn_M_C_PD1_PDL2(0) <- 0
    q_syn_M_C_PD1(0) <- 263.01491167
    q_syn_M_C_PDL1(0) <- 4787.86531225
    q_syn_M_C_PDL2(0) <- 47.8786531225
    q_syn_M_C_PD1_aPD1(0) <- 0
    q_syn_M_C_PD1_aPD1_PD1(0) <- 0
    q_syn_M_C_PDL1_CD80(0) <- 0
    q_syn_M_C_CD80(0) <- 1665.34445644
    q_syn_M_C_CD80m(0) <- 0
    q_V_C_P_mm(0) <- 0
    q_V_C_P_mo(0) <- 0
    q_V_C_P_oo(0) <- 0
    q_V_C_P_cm(0) <- 0
    q_V_C_P_co(0) <- 0
    q_V_C_P_cc(0) <- 0
    q_V_P_P_mm(0) <- 0
    q_V_P_P_mo(0) <- 0
    q_V_P_P_oo(0) <- 0
    q_V_P_P_cm(0) <- 0
    q_V_P_P_co(0) <- 0
    q_V_P_P_cc(0) <- 0
    q_V_T_P_mm(0) <- 0
    q_V_T_P_mo(0) <- 0
    q_V_T_P_oo(0) <- 0
    q_V_T_P_cm(0) <- 0
    q_V_T_P_co(0) <- 0
    q_V_T_P_cc(0) <- 0
    q_V_LN_P_mm(0) <- 0
    q_V_LN_P_mo(0) <- 0
    q_V_LN_P_oo(0) <- 0
    q_V_LN_P_cm(0) <- 0
    q_V_LN_P_co(0) <- 0
    q_V_LN_P_cc(0) <- 0
    q_syn_T_C1_PDL1_P_mo_fb(0) <- 0
    q_syn_T_C1_PDL1_P_oo_fb(0) <- 0
    q_syn_T_C1_PDL1_P_cm_bf(0) <- 0
    q_syn_T_C1_PDL1_P_co_bf(0) <- 0
    q_syn_T_C1_PDL1_P_co_fb(0) <- 0
    q_syn_T_C1_PDL1_P_cc_fb(0) <- 0
    q_syn_T_C1_PDL1_P_oo_bb(0) <- 0
    q_syn_T_C1_PDL1_P_co_bb(0) <- 0
    q_syn_T_C1_PDL1_P_cc_bb(0) <- 0
    q_syn_T_C1_TPDL1_P_mo_fb(0) <- 0
    q_syn_T_C1_TPDL1_P_oo_fb(0) <- 0
    q_syn_T_C1_TPDL1_P_cm_bf(0) <- 0
    q_syn_T_C1_TPDL1_P_co_bf(0) <- 0
    q_syn_T_C1_TPDL1_P_co_fb(0) <- 0
    q_syn_T_C1_TPDL1_P_cc_fb(0) <- 0
    q_syn_T_C1_TPDL1_P_oo_bb(0) <- 0
    q_syn_T_C1_TPDL1_P_co_bb(0) <- 0
    q_syn_T_C1_TPDL1_P_cc_bb(0) <- 0
    q_syn_T_APC_PDL1_P_mo_fb(0) <- 0
    q_syn_T_APC_PDL1_P_oo_fb(0) <- 0
    q_syn_T_APC_PDL1_P_cm_bf(0) <- 0
    q_syn_T_APC_PDL1_P_co_bf(0) <- 0
    q_syn_T_APC_PDL1_P_co_fb(0) <- 0
    q_syn_T_APC_PDL1_P_cc_fb(0) <- 0
    q_syn_T_APC_PDL1_P_oo_bb(0) <- 0
    q_syn_T_APC_PDL1_P_co_bb(0) <- 0
    q_syn_T_APC_PDL1_P_cc_bb(0) <- 0
    q_syn_T_APC_TPDL1_P_mo_fb(0) <- 0
    q_syn_T_APC_TPDL1_P_oo_fb(0) <- 0
    q_syn_T_APC_TPDL1_P_cm_bf(0) <- 0
    q_syn_T_APC_TPDL1_P_co_bf(0) <- 0
    q_syn_T_APC_TPDL1_P_co_fb(0) <- 0
    q_syn_T_APC_TPDL1_P_cc_fb(0) <- 0
    q_syn_T_APC_TPDL1_P_oo_bb(0) <- 0
    q_syn_T_APC_TPDL1_P_co_bb(0) <- 0
    q_syn_T_APC_TPDL1_P_cc_bb(0) <- 0
    q_syn_M_C_PDL1_P_mo_fb(0) <- 0
    q_syn_M_C_PDL1_P_oo_fb(0) <- 0
    q_syn_M_C_PDL1_P_cm_bf(0) <- 0
    q_syn_M_C_PDL1_P_co_bf(0) <- 0
    q_syn_M_C_PDL1_P_co_fb(0) <- 0
    q_syn_M_C_PDL1_P_cc_fb(0) <- 0
    q_syn_M_C_PDL1_P_oo_bb(0) <- 0
    q_syn_M_C_PDL1_P_co_bb(0) <- 0
    q_syn_M_C_PDL1_P_cc_bb(0) <- 0
    q_oos_C1_PDL1_P_mo_fb(0) <- 0
    q_oos_C1_PDL1_P_oo_fb(0) <- 0
    q_oos_C1_PDL1_P_cm_bf(0) <- 0
    q_oos_C1_PDL1_P_co_bf(0) <- 0
    q_oos_C1_PDL1_P_co_fb(0) <- 0
    q_oos_C1_PDL1_P_cc_fb(0) <- 0
    q_oos_C1_PDL1_P_oo_bb(0) <- 0
    q_oos_C1_PDL1_P_co_bb(0) <- 0
    q_oos_C1_PDL1_P_cc_bb(0) <- 0
    q_oos_T_PDL1_P_mo_fb(0) <- 0
    q_oos_T_PDL1_P_oo_fb(0) <- 0
    q_oos_T_PDL1_P_cm_bf(0) <- 0
    q_oos_T_PDL1_P_co_bf(0) <- 0
    q_oos_T_PDL1_P_co_fb(0) <- 0
    q_oos_T_PDL1_P_cc_fb(0) <- 0
    q_oos_T_PDL1_P_oo_bb(0) <- 0
    q_oos_T_PDL1_P_co_bb(0) <- 0
    q_oos_T_PDL1_P_cc_bb(0) <- 0
    q_oos_M_PDL1_P_mo_fb(0) <- 0
    q_oos_M_PDL1_P_oo_fb(0) <- 0
    q_oos_M_PDL1_P_cm_bf(0) <- 0
    q_oos_M_PDL1_P_co_bf(0) <- 0
    q_oos_M_PDL1_P_co_fb(0) <- 0
    q_oos_M_PDL1_P_cc_fb(0) <- 0
    q_oos_M_PDL1_P_oo_bb(0) <- 0
    q_oos_M_PDL1_P_co_bb(0) <- 0
    q_oos_M_PDL1_P_cc_bb(0) <- 0
    q_oos_APC_PDL1_P_mo_fb(0) <- 0
    q_oos_APC_PDL1_P_oo_fb(0) <- 0
    q_oos_APC_PDL1_P_cm_bf(0) <- 0
    q_oos_APC_PDL1_P_co_bf(0) <- 0
    q_oos_APC_PDL1_P_co_fb(0) <- 0
    q_oos_APC_PDL1_P_cc_fb(0) <- 0
    q_oos_APC_PDL1_P_oo_bb(0) <- 0
    q_oos_APC_PDL1_P_co_bb(0) <- 0
    q_oos_APC_PDL1_P_cc_bb(0) <- 0
    q_oos_C1_PDL1(0) <- p_C1_PDL1_base/p_A_cell*m_oos_C1
    q_oos_T_PDL1(0) <- p_T_PDL1_total/p_A_Tcell*m_oos_T
    q_oos_M_PDL1(0) <- p_C1_PDL1_base/p_A_cell*m_oos_M
    q_oos_APC_PDL1(0) <- p_APC_PDL1_base/p_A_APC*m_oos_APC
  })
}
