Skip to content

Commit

Permalink
fix get(ConstraintPrimal, SingleVariable)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschwarz committed Dec 22, 2018
1 parent aa3d318 commit f34c1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ end

function MOI.get(o::Optimizer, ::MOI.ConstraintPrimal, ci::CI{MOI.SingleVariable,<:SS})
scip = get_scip(o)
return SCIPgetSolVal(scip, SCIPgetBestSol(scip), get_var(o, VI(ci.variable)))
return SCIPgetSolVal(scip, SCIPgetBestSol(scip), get_var(o, VI(ci.value)))
end

function MOI.get(o::Optimizer, ::MOI.ConstraintPrimal, ci::CI{MOI.ScalarAffineFunction{Float64},<:SS})
Expand Down

0 comments on commit f34c1d0

Please sign in to comment.