Open
Conversation
lostella
reviewed
Feb 21, 2025
|
|
||
| Return the indicator of the unit simplex | ||
| ```math | ||
| S = \\left\\{ x : x \\geq 0, \\sum_i x_i \\leq a \\right\\}. |
Member
There was a problem hiding this comment.
Hmmm yeah, naming is tough here. Would this set be the convex hull of S u {0}, where S is that of IndSimplex? (i.e. with equality on the sum)
Member
There was a problem hiding this comment.
Well, the origin 0 \in R^k is the projection to R^k of e_{k+1} \in R^{k+1}. So I guess this set is the projection to R^k of the k-simplex (which lives in R^{k+1} originally). If so, this could suggest a better name maybe.
Am I making sense? Works in my mind for k=2 at least (hehe).
Author
|
Yes exactly that's one way to define it
…On Fri, Feb 21, 2025, 19:18 Lorenzo Stella ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/functions/indSimplex.jl
<#150 (comment)>
:
> @@ -107,3 +107,49 @@ function prox_naive(f::IndSimplex, x, gamma)
end
return v, R(0)
end
+
+"""
+ IndUnitSimplex(a=1.0)
+
+Return the indicator of the unit simplex
+```math
+S = \\left\\{ x : x \\geq 0, \\sum_i x_i \\leq a \\right\\}.
Hmmm yeah, naming is tough here. Would this set be the convex hull of S u
{0}, where S is that of IndSimplex? (i.e. with equality on the sum)
—
Reply to this email directly, view it on GitHub
<#150 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2FDMR7TVAVRYADY6VAEHL2Q5UY7AVCNFSM6AAAAABXTOSTQKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDMMZTHA4DMMBXGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Couldn't find a better name, that's the one we use in FrankWolfe.jl.
Having a dedicated prox avoids having to create a n+1-dimensional simplex