Skip to content

[Utilities] improve errors and docstrings for querying attributes #2350

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

Merged
merged 3 commits into from
Nov 11, 2023

Conversation

odow
Copy link
Member

@odow odow commented Nov 8, 2023

@odow
Copy link
Member Author

odow commented Nov 9, 2023

This would break InfiniteOpt with the expected

image

@odow
Copy link
Member Author

odow commented Nov 9, 2023

cc @pulsipher thoughts on this change? It changes a ErrorException to MOI.GetAttributeNotAllowed.

I guess I could keep the ErrorException, but the more specific error is probably what should be thrown.

@pulsipher
Copy link

I have no objections with updating InfiniteOpt to the new error type.

@odow odow requested a review from blegat November 9, 2023 22:49
@odow odow merged commit 0f8d35c into master Nov 11, 2023
@odow odow deleted the od/caching-get-attribute-not-allowed branch November 11, 2023 22:55
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.

Attributes simultaneously set by the user and by the optimizer
3 participants