-
Notifications
You must be signed in to change notification settings - Fork 185
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
ActivationModelQuadraticBarrier
does not respect upper and lower bounds when one of the bounds is np.inf
#1129
Comments
I am a bit confused by the |
No you're right. I skipped some context there.
So just before the |
Ahh, I see, that is more clear. |
We have designated this function to work with maximum values instead of infinity ones. A better workaround to support both will be to use the maximum value when it is detected an infinity one in the bounds. The sign will depend on the infinity sign as well. Is this clear enough? |
@akhilsathuluri -- Could you help us by submitting a PR introducing your solution? Please also consider a unit test to check this condition. |
I was trying to use the
ActivationModelQuadraticBarrier
as a way to prevent some links in my robot to not collide with the ground. So when theub=np.inf
and thelb=0
are set in theActivationBounds
, then the noninf
bound is not respected.I found that this is due to the implementation of
beta
here:this operation eats up the non
inf
bound when one of the bounds isinf
. A possible suggestion to prevent this could be:@traversaro: Correct me if Im missing anything.
The text was updated successfully, but these errors were encountered: