From 7b613a19e4b2ea993fd56cf9966ebfc7b5578190 Mon Sep 17 00:00:00 2001 From: Adriano Meligrana <68152031+Tortar@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:45:31 +0100 Subject: [PATCH] Update search_and_matching.jl --- src/markets/search_and_matching.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/markets/search_and_matching.jl b/src/markets/search_and_matching.jl index f90284e..61b335e 100644 --- a/src/markets/search_and_matching.jl +++ b/src/markets/search_and_matching.jl @@ -575,8 +575,8 @@ function perform_retail_market!( C_h_g[g, :] .= b_HH_g[g] .* C_d_h .- pos(@view(C_d_hg[1:H]) .- b_CFH_g[g] .* I_d_h) I_h_g[g, :] .= pos(b_CFH_g[g] .* I_d_h .- @view(C_d_hg[1:H])) - C_j_g[g] = dot(c_G_g[g], gov.C_d_j) - sum(@view(C_d_hg[(H + L + 1):(H + L + J)])) - C_l_g[g] = dot(c_E_g[g], rotw.C_d_l) - sum(@view(C_d_hg[(H + 1):(H + L)])) + C_j_g[g] = sum(c_G_g[g] .* gov.C_d_j) - sum(@view(C_d_hg[(H + L + 1):(H + L + J)])) + C_l_g[g] = sum(c_E_g[g] .* rotw.C_d_l) - sum(@view(C_d_hg[(H + 1):(H + L)])) a = sum(@view(C_real_hg[1:H])) b = sum(C_d_h .* b_HH_g[g] .- pos(@view(C_d_hg[1:H]) .- b_CFH_g[g] .* I_d_h))