Skip to content

Commit c877061

Browse files
committed
FIX: DOC: Minor fixes
1 parent 4993aac commit c877061

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

quantecon/game_theory/lemke_howson.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def lemke_howson(g, init_pivot=0, max_iter=10**6, capping=None,
9393
`init_pivot` + (m+n-1) (modulo m+n) as the initial pivot, with a
9494
limit `max_iter` on the total number of pivoting steps.
9595
96-
Accoding to the simulation results for *uniformly random games*,
96+
According to the simulation results for *uniformly random games*,
9797
for medium- to large-size games this heuristics outperforms the
9898
basic Lemke-Howson algorithm with a fixed initial pivot, where
9999
[1]_ suggests that `capping` be set to 10.
@@ -124,8 +124,7 @@ def lemke_howson(g, init_pivot=0, max_iter=10**6, capping=None,
124124
nums_actions = g.nums_actions
125125
total_num = sum(nums_actions)
126126

127-
msg = '`init_pivot` must be an integer k' + \
128-
'such that 0 <= k < {0}'.format(total_num)
127+
msg = f'`init_pivot` must be an integer k such that 0 <= k < {total_num}'
129128

130129
if not isinstance(init_pivot, numbers.Integral):
131130
raise TypeError(msg)
@@ -320,7 +319,7 @@ def _lemke_howson_tbl(tableaux, bases, init_pivot, max_iter):
320319
"""
321320
Main body of the Lemke-Howson algorithm implementation.
322321
323-
Perform the complementary pivoting. Modify `tablaux` and `bases` in
322+
Perform the complementary pivoting. Modify `tableaux` and `bases` in
324323
place.
325324
326325
Parameters

quantecon/optimize/pivoting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _min_ratio_test_no_tie_breaking(tableau, pivot, test_col,
5858
"""
5959
Perform the minimum ratio test, without tie breaking, for the
6060
candidate rows in `argmins[:num_candidates]`. Return the number
61-
`num_argmins` of the rows minimizing the ratio and store thier
61+
`num_argmins` of the rows minimizing the ratio and store their
6262
indices in `argmins[:num_argmins]`.
6363
6464
Parameters

0 commit comments

Comments
 (0)