Skip to content

Commit ba76276

Browse files
authoredNov 29, 2024··
Simplify credit market function
1 parent ed33ae3 commit ba76276

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎src/markets/search_and_matching_credit.jl

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
"""
43
search_and_matching_credit(firms::Firms, model)
54
@@ -20,10 +19,8 @@ function search_and_matching_credit(firms::AbstractFirms, model)
2019

2120
DL_i = zeros(size(DL_d_i))
2221
I_FG = findall(DL_d_i .> 0)
23-
# I_FG = I_FG[randperm(length(I_FG))]
2422
shuffle!(I_FG)
25-
for f in eachindex(I_FG)
26-
i = I_FG[f]
23+
for i in I_FG
2724
DL_i[i] = max(0, min(min(DL_d_i[i], zeta_LTV * K_e_i[i] - L_e_i[i]), E_k / zeta - (sum(L_e_i) + sum(DL_i))))
2825
end
2926
return DL_i

0 commit comments

Comments
 (0)
Please sign in to comment.