Skip to content

Commit

Permalink
remove jcn=0 pattern from discrete blox
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter authored Nov 21, 2024
1 parent 358ba65 commit 3e7bf85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blox/discrete.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct TAN <: AbstractDiscrete

function TAN(; name, namespace=nothing, κ=100, λ=1)
sts = @variables R(t)
ps = @parameters κ=κ λ=λ jcn=0 [input=true]
ps = @parameters κ=κ λ=λ jcn [input=true]
eqs = [
R ~ min(κ, κ/*jcn + sqrt(eps())))
]
Expand All @@ -79,7 +79,7 @@ struct SNc <: AbstractModulator

function SNc(; name, namespace=nothing, κ_DA=1, N_time_blocks=5, DA_reward=10, λ_DA=0.33, t_event=90.0)
sts = @variables R(t) R_(t)
ps = @parameters κ=κ_DA λ=λ_DA jcn=0 [input=true] jcn_=0 #HACK: jcn_ stores the value of jcn at time t_event that can be accessed after the simulation
ps = @parameters κ=κ_DA λ=λ_DA jcn [input=true] jcn_=0 #HACK: jcn_ stores the value of jcn at time t_event that can be accessed after the simulation

eqs = [
R ~ min(κ, κ/*jcn + sqrt(eps()))),
Expand Down

0 comments on commit 3e7bf85

Please sign in to comment.