Skip to content

Commit

Permalink
canget update
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jan 16, 2018
1 parent b0fb982 commit 116bba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solverinterface.jl
Expand Up @@ -113,7 +113,7 @@ function solve(m::Model;

empty!(m.variableresult)
# If any variable has a result then all must have
if MOI.canget(m.solverinstance, MOI.VariablePrimal(), first(m.variabletosolvervariable).second)
if MOI.canget(m.solverinstance, MOI.VariablePrimal(), MOI.VariableIndex)
for vindex in keys(m.variabletosolvervariable)
m.variableresult[Variable(m,vindex)] = MOI.get(m.solverinstance, MOI.VariablePrimal(), m.variabletosolvervariable[vindex])
end
Expand Down

0 comments on commit 116bba3

Please sign in to comment.