Skip to content

Commit 1ba8ef2

Browse files
committed
Update
1 parent 31a216c commit 1ba8ef2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/MOI_wrapper.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function MOI.empty!(o::Optimizer)
114114
o.scip_solve_status = _kSCIP_SOLVE_STATUS_NOT_CALLED
115115
o.name_to_variable = nothing
116116
o.name_to_constraint_index = nothing
117-
empty!(o.solution_storage)
117+
o.solution_storage = Ptr{SCIP_SOL}[]
118118
return nothing
119119
end
120120

src/MOI_wrapper/results.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ function MOI.get(
108108
)
109109
assert_solved(o)
110110
MOI.check_result_index_bounds(o, attr)
111-
return SCIPgetActivityLinear(o, cons(o, ci), o.solution_storage[attr.result_index])
111+
sols = o.solution_storage[attr.result_index]
112+
return SCIPgetActivityLinear(o, cons(o, ci), sols)
112113
end
113114

114115
function MOI.get(o::Optimizer, ::MOI.ObjectiveBound)

0 commit comments

Comments
 (0)