Skip to content

Commit ee98b97

Browse files
committed
Minors + adjusting tolerance.
1 parent 4914b93 commit ee98b97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/models/solve_allocation_by_duality_cgc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function hessian_duality_cgc(
184184
G = (Pjn[j, n] / PCj[j])^(-sigma)
185185
if jd == j # 0 for P^n_k
186186
Gprime = sigma * (Pjn[j, n] * Pjn[j, nd])^(-sigma) * PCj[j]^(2*sigma-1)
187-
Cprime = Lj[j]/omegaj[j] * (PCj[j] / Pjn[j, nd])^sigma * param.uprimeinvprime(PCj[j]/omegaj[j], graph.hj[j]) # / param.usecond(res.cj[j], graph.hj[j])
187+
Cprime = Lj[j]/omegaj[j] * (PCj[j] / Pjn[j, nd])^sigma / param.usecond(res.cj[j], graph.hj[j]) # param.uprimeinvprime(PCj[j]/omegaj[j], graph.hj[j]) #
188188
if nd == n
189189
Gprime -= sigma / PCj[j] * G^((sigma+1)/sigma)
190190
end
@@ -230,7 +230,7 @@ function hessian_duality_cgc(
230230
end
231231

232232
# Assign result
233-
values[ind] = -obj_factor * term + 1e-5
233+
values[ind] = -obj_factor * term + 1e-6
234234
end
235235
end
236236
return

0 commit comments

Comments
 (0)