MosekTools.jl icon indicating copy to clipboard operation
MosekTools.jl copied to clipboard

Feature Request: VariableBasisStatus

Open ma29xc opened this issue 1 year ago • 1 comments

In MathOptInterface (MOI) syntax I get the basis status of a variable x attached to a model via

MOI.get(model, MOI.VariableBasisStatus(), x)

This status should correspond to the xxstatus in the MosekSolution structure. Unfortunately, the MOI.VariableBasisStatus() is currently not supported. My current workaround is to read

model.moi_backend.optimizer.model.solutions[end].xxstatus

which is obviously inconvenient.

If it is to much work to implement, is there a better workaround?

ma29xc avatar Jul 27 '23 08:07 ma29xc

I should just be rather straightforward, the status is https://github.com/MOSEK/Mosek.jl/blob/ea17cd2ac2f5dae43e2f9a29948ded26c3a57b7b/src/msk_enums.jl#L12375-L12390

blegat avatar Jul 27 '23 10:07 blegat