-
Notifications
You must be signed in to change notification settings - Fork 174
Open
Description
The following code snippet causes my Julia session to exit after a few minutes with the message
[1] 80865 killed julia
julia 368.59s user 268.91s system 134% cpu 7:53.41 total
Code snippet:
using Symbolics
@variables α β ϕ σC σI λC
# intermediary variables
λI = 1 - λC
λK = α * λC + β * λI
λL = (1 - α) * λC + (1 - β) * λI
σ = α * λC / λK * σC + β * λI / λK * σI
d_pI = (α - β) / (1-β) + 1 / (ϕ + σC) * (1 - α) / α * (λK /λC * σ + α * β / (β - 1) * (σI - σC))
d_rK = d_pI - 1
d_wC = -α * d_rK / (1 - α)
d_wI = d_pI + β / (1 - β)
d_aK = - (1 - α) * σC * (d_rK - d_wC)
d_bK = - (1 - β) * σI * (d_rK - d_wI)
d_w = ((1 - α) * λC / λL) * d_wC + ((1 - β) * λI / λL) * d_wI
d_C = ϕ * (d_wC - d_w) + α / (1 - α) * d_aK
d_I = ϕ * (d_wI - d_w) + β / (1 - β) * d_bK
# check solves the sytem
simplify(d_I - (α * λC / λK) * (d_C + d_aK) + (β * λI / λK) * (d_I + d_bK), expand = true)Machine: Julia 1.12.1 with Symbolics v6.57.0 and macOS 26
Metadata
Metadata
Assignees
Labels
No labels