Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing attributes error in JuMP/MOI wrapper #168

Closed
Amuwa opened this issue Dec 26, 2022 · 2 comments · Fixed by #169
Closed

Passing attributes error in JuMP/MOI wrapper #168

Amuwa opened this issue Dec 26, 2022 · 2 comments · Fixed by #169
Labels
bug Something isn't working

Comments

@Amuwa
Copy link
Contributor

Amuwa commented Dec 26, 2022

When a JuMP/MOI model has a name attribute, which can be accessed by MOI.get(model, MOI.Name()), the function pass_attributes!() in MOI_wrapper.jl fails with "unsupported attribute".

To fix this, I tried to append && attr != MOI.Name() to line 561 of MOI_wrapper.jl, and it works.

Hope the bug get fixed in the incoming update.

@Amuwa Amuwa added the bug Something isn't working label Dec 26, 2022
@Amuwa
Copy link
Contributor Author

Amuwa commented Dec 26, 2022

I just created a pull request for this bug

@migarstka
Copy link
Member

Could you post a minimal working example of a model that produces the error?

@migarstka migarstka linked a pull request Dec 28, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants