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

export Constraint #371

Merged
merged 1 commit into from
Mar 5, 2020
Merged

export Constraint #371

merged 1 commit into from
Mar 5, 2020

Conversation

ericphanson
Copy link
Collaborator

This was removed in #357 along with a lot of other exports, but I don't think I meant to remove Constraint. It's pretty useful for doing things like

constraints = Constraint[]
...
push!(constraints, ...)
...
problem = minimize(objective, constraints)

which doesn't work with constraints = [] due to the way theProblem constructors are typed. I think those should be revisited along with other API stuff in #346 later, but for now let's just add back the export. This export being missing also breaks one of the examples; I'm not sure why CI didn't catch that.

@ericphanson ericphanson merged commit e8b5897 into master Mar 5, 2020
@ericphanson ericphanson deleted the export_Constraint branch March 5, 2020 16:13
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.

1 participant