Skip to content

Commit d2e0550

Browse files
committed
Update
1 parent a7cbccd commit d2e0550

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/MultiObjectiveAlgorithms.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,15 @@ function MOI.get(
577577
return sol.x[x]
578578
end
579579

580+
function MOI.get(
581+
model::Optimizer,
582+
attr::MOI.VariablePrimal,
583+
x::Vector{MOI.VariableIndex}
584+
)
585+
sol = model.solutions[attr.result_index]
586+
return sol.x[x]
587+
end
588+
580589
function MOI.get(model::Optimizer, attr::MOI.ObjectiveValue)
581590
return model.solutions[attr.result_index].y
582591
end

0 commit comments

Comments
 (0)