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

Will this repo contain hard constraints? #4

Open
ahwillia opened this issue Aug 27, 2016 · 3 comments
Open

Will this repo contain hard constraints? #4

ahwillia opened this issue Aug 27, 2016 · 3 comments

Comments

@ahwillia
Copy link
Contributor

Simple example:

minimize     f(x)
subject to   x > 0

The non-negativity constraint can be thought of as a penalty function:

minimize     f(x) + g(x)

Where g(x) = any(x) <= 0 ? Inf : 0

I have some code here that could be ported: https://github.com/JuliaML/ObjectiveFunctions.jl/tree/alex/src/constraints

@joshday
Copy link
Member

joshday commented Aug 27, 2016

Very cool. I did look through your branch in ObjectiveFunctions, but I missed this. We should definitely include it.

@joshday
Copy link
Member

joshday commented Aug 27, 2016

Let me know if you'd like to start making changes here and I'll stop working directly with master.

@Evizero
Copy link
Member

Evizero commented Feb 11, 2017

looking at this now, with the current API, I think all the linked constraints of @ahwillia can almost be carbon copied over to PenaltyFunctions. The only thing that would change is the base-class from Penalty to ArrayPenalty.

Is this still in everyones interest? if so I'll add it on my todo list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants