-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Updated docstring for Potential function #6559
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6559 +/- ##
=======================================
Coverage 92.01% 92.01%
=======================================
Files 91 91
Lines 15114 15114
=======================================
Hits 13907 13907
Misses 1207 1207
|
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.
The explanations are good!
I just nitpicked about some small code/docstring style things. You can add line breaks - at least to the level of the "1 sentence per line" rule of thumb.
Hey @michaelosthege . Thanks for the review. I have included all the suggestions in the new commit. |
c91e2c0
to
2e2dcf3
Compare
Bad timing since this was just merged but I think there are a couple of typos in the merged commit. E.g. line 2080 says "We pass |
@chriswmann thanks that would be appreciated |
What is this PR about?
This PR is a continuation of the PR 6489 in order to solve the merge conflicts.
In this PR , I have provided a solution to close the issue 6399.
The docstring for the Potential function is rather limited. I have made efforts to include some code examples to better understand this. I also focused on the nature of the arguments that are passed to this function and have included an example for the same.
Checklist
Documentation
soft_sum_constraint
potential encourages x and y to have a small sum, effectively adding a soft constraint on the relationship between the two variables.