Skip to content

Commit 5b32a8b

Browse files
committed
Documentation fix for solve statement
1 parent b6cfe81 commit 5b32a8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: sasoptpy/model.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2199,9 +2199,9 @@ def solve(self, options=None, submit=True, name=None,
21992199
NOTE: Objective = 107842.59259.
22002200
NOTE: The Dual Simplex solve time is 0.01 seconds.
22012201
2202-
>>> m.solve(options={'maxtime': 600})
2202+
>>> m.solve(options={'with': 'lp', 'maxtime': 600})
22032203
2204-
>>> m.solve(options={'algorithm': 'ipm'})
2204+
>>> m.solve(options={'with': 'lp', 'algorithm': 'ipm'})
22052205
22062206
Notes
22072207
-----
@@ -2210,8 +2210,8 @@ def solve(self, options=None, submit=True, name=None,
22102210
* Some of the options listed under ``options`` argument may not be
22112211
passed based on which CAS Action is being used.
22122212
* The ``option`` argument should be a dictionary, where keys are
2213-
option names. For example, ``m.solve(options={'maxtime': 600})``
2214-
limits the solution time to 600 seconds.
2213+
option names. For example, ``m.solve(options={'with': 'lp',
2214+
'maxtime': 600})`` limits the LP solution time to 600 seconds.
22152215
* See :ref:`solver-options` for a list of solver options.
22162216
22172217
See also

0 commit comments

Comments
 (0)