-
Notifications
You must be signed in to change notification settings - Fork 1
Allow relaxation of ReLUQuadratic #178
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
Conversation
@@ -244,7 +244,7 @@ function add_predictor( | |||
end | |||
|
|||
""" | |||
ReLUQuadratic() <: AbstractPredictor | |||
ReLUQuadratic(; relaxation_parameter = nothing) <: AbstractPredictor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with the name, but other options could be: relaxation_tolerance
, tolerance
, atol
, complementarity_mu
, mu
, complementarity_tolerance
... not sure if any of those are better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like relaxation_*
as it communicates the qualitative change that happens when this parameter is set. (Although I may kick myself for this when I inevitably forget what this is called in six months.) I could go with tolerance
or parameter
.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #178 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 24 24
Lines 639 644 +5
=========================================
+ Hits 639 644 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #177. I didn't put much thought into the names. This still needs to update the docstring.