Skip to content

Conversation

odow
Copy link
Member

@odow odow commented Oct 24, 2022

Closes #79

)
vis_src = MOI.get(src, MOI.ListOfVariableIndices())
if length(vis_src) < length(index_map.var_map)
if length(vis_src) != length(index_map.var_map)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops. I guess this should be a separate PR. Is the current < correct? Shouldn't it be the other way around (or !=)?

@codecov
Copy link

codecov bot commented Oct 24, 2022

Codecov Report

Base: 55.00% // Head: 55.11% // Increases project coverage by +0.11% 🎉

Coverage data is based on head (7e8168b) compared to base (57a0c19).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #80      +/-   ##
==========================================
+ Coverage   55.00%   55.11%   +0.11%     
==========================================
  Files           9        9              
  Lines         809      840      +31     
==========================================
+ Hits          445      463      +18     
- Misses        364      377      +13     
Impacted Files Coverage Δ
src/MOI_wrapper.jl 84.56% <100.00%> (-1.99%) ⬇️
src/options.jl 41.66% <0.00%> (-3.79%) ⬇️
src/declarations.jl 39.04% <0.00%> (-0.76%) ⬇️
src/blockmat.jl 62.26% <0.00%> (+0.32%) ⬆️
src/blockdiag.jl 84.21% <0.00%> (+0.87%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@blegat blegat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be mirrored to SDPA. It would be good to have this tested with runtests, I thought it was the case

@odow
Copy link
Member Author

odow commented Oct 24, 2022

It would be good to have this tested with runtests, I thought it was the case

I think it is. But CSDP skips a lot of the tests.

@odow odow merged commit 249ab2e into master Oct 24, 2022
@odow odow deleted the od/throw-unsupported-constraint branch October 24, 2022 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

KeyError: key MathOptInterface.VariableIndex(1) not found

2 participants