Skip to content

Commit 57712a1

Browse files
committed
Fix dual objective value computation
1 parent 3fc8502 commit 57712a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Interfaces/tulip_julia_api.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ function get_attribute(m::Model{T}, ::DualObjectiveValue) where{T}
284284

285285
z = (
286286
dot(yl, Diagonal(isfinite.(bl)), bl)
287-
+ dot(yu, Diagonal(isfinite.(bu)), bu)
287+
- dot(yu, Diagonal(isfinite.(bu)), bu)
288288
+ dot(sl, Diagonal(isfinite.(xl)), xl)
289-
+ dot(su, Diagonal(isfinite.(xu)), xu)
289+
- dot(su, Diagonal(isfinite.(xu)), xu)
290290
)
291291

292292
# If solution is a ray, ignore constant objective term

0 commit comments

Comments
 (0)