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

Add inplace versions #27

Open
matbesancon opened this issue Dec 23, 2020 · 3 comments
Open

Add inplace versions #27

matbesancon opened this issue Dec 23, 2020 · 3 comments

Comments

@matbesancon
Copy link
Owner

Inplace versions for projection_on_set, projection_gradient_on_set

@matbesancon
Copy link
Owner Author

This is likely not gonna be AD-friendly, which will be problematic for projection_on_set more than projection_gradient_on_set

@tjdiamandis
Copy link
Contributor

What do we want as the interface for this? Would be very helpful for a solver I'm working on right now, so I can make these changes easily

I'm already implementing these for the projections
https://github.com/tjdiamandis/GeNIOS.jl/blob/4c26b2dfdc5fa94839de7a50b4e387d7f5ae9e1c/src/cones.jl#L103

@matbesancon
Copy link
Owner Author

I think somethnig close to what you have in there, with an additional argument for the distance and we are good, so

projection_on_set!(y, ::DefaultDistance, v::AbstractVector{T}, ::MOI.Zeros)

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

2 participants