You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Simple example:
The non-negativity constraint can be thought of as a penalty function:
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
The text was updated successfully, but these errors were encountered: