-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
DOC: optimize: remove inadvertent block quote indentation #13106
Changes from 2 commits
cfff7a1
c57b2cf
99cde83
89a1c37
1550906
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,13 +65,17 @@ def linprog_verbose_callback(res): | |
feasible solution is sought and the T has an additional row | ||
representing an alternate objective function. | ||
status : int | ||
An integer representing the exit status of the optimization:: | ||
An integer representing the exit status of the optimization: | ||
|
||
0 : Optimization terminated successfully | ||
1 : Iteration limit reached | ||
2 : Problem appears to be infeasible | ||
3 : Problem appears to be unbounded | ||
4 : Serious numerical difficulties encountered | ||
``0`` : Optimization terminated successfully | ||
mdhaber marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
``1`` : Iteration limit reached | ||
|
||
``2`` : Problem appears to be infeasible | ||
|
||
``3`` : Problem appears to be unbounded | ||
|
||
``4`` : Serious numerical difficulties encountered | ||
|
||
nit : int | ||
The number of iterations performed. | ||
|
@@ -142,13 +146,17 @@ def linprog_terse_callback(res): | |
feasible solution is sought and the T has an additional row | ||
representing an alternate objective function. | ||
status : int | ||
An integer representing the exit status of the optimization:: | ||
An integer representing the exit status of the optimization: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is another thing that shows up occasionally - rendering return code lists as literal blocks. One could argue that it's supposed to be that way, but I think it's more important for it to be consistent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change isn't being displayed correctly. Comes out as a single sentence. https://22669-1460385-gh.circle-artifacts.com/0/html-scipyorg/generated/scipy.optimize.linprog_verbose_callback.html#scipy.optimize.linprog_verbose_callback There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Literal blocks are easier to align on the screen, otherwise you get wonky lists which look quite ugly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I agree that the bullets are too far to the left, but isn't that more of a problem with the Sphinx theme? I think that's something we can (and should) fix across the board with a change in the right place.
Thanks. It was supposed to be more like: I'll fix. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
``0`` : Optimization terminated successfully | ||
|
||
0 : Optimization terminated successfully | ||
1 : Iteration limit reached | ||
2 : Problem appears to be infeasible | ||
3 : Problem appears to be unbounded | ||
4 : Serious numerical difficulties encountered | ||
``1`` : Iteration limit reached | ||
|
||
``2`` : Problem appears to be infeasible | ||
|
||
``3`` : Problem appears to be unbounded | ||
|
||
``4`` : Serious numerical difficulties encountered | ||
|
||
nit : int | ||
The number of iterations performed. | ||
|
@@ -263,10 +271,10 @@ def linprog(c, A_ub=None, b_ub=None, A_eq=None, b_eq=None, | |
|
||
``4`` : Numerical difficulties encountered. | ||
|
||
nit : int | ||
The current iteration number. | ||
message : str | ||
A string descriptor of the algorithm status. | ||
nit : int | ||
The current iteration number. | ||
message : str | ||
A string descriptor of the algorithm status. | ||
|
||
Callback functions are not currently supported by the HiGHS methods. | ||
|
||
|
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 documentation could do with a little polishing in this section, but that's out of scope of this PR.