Skip to content

Commit

Permalink
Update search_and_matching.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Nov 2, 2024
1 parent 9bb8a87 commit 3c703c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/markets/search_and_matching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ function perform_firms_market!(
S_fg[f] -= S_fg_[f]
S_fg_[f] = 0
deleteat!(F_g, e)
isempty(F_g) && break
pr_price_f = pos(exp.(-2 .* @view(P_f[F_g])) ./ sum(exp.(-2 .* @view(P_f[F_g]))))
pr_size_f = @view(S_f[F_g]) ./ sum(@view(S_f[F_g]))
pr_cum_f_ = pr_price_f + pr_size_f
Expand Down

0 comments on commit 3c703c2

Please sign in to comment.