Skip to content

Commit baea9d7

Browse files
committed
Fix typos
1 parent b3eab89 commit baea9d7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

simopt/experiment/post_normalize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _best_with_feasibility(
1818
baseline_rngs: list[MRG32k3a],
1919
n_postreps_init_opt: int,
2020
) -> tuple:
21-
infeasible_pentalty = np.inf
21+
infeasible_penalty = np.inf
2222
best_est_objectives = np.zeros(len(experiments))
2323

2424
for experiment_idx in range(len(experiments)):
@@ -43,7 +43,7 @@ def _best_with_feasibility(
4343
)
4444
else:
4545
exp_best_est_objectives[mrep] = (
46-
experiment.problem.minmax[0] * infeasible_pentalty
46+
experiment.problem.minmax[0] * infeasible_penalty
4747
)
4848

4949
best_est_objectives[experiment_idx] = np.max(exp_best_est_objectives)
@@ -52,7 +52,7 @@ def _best_with_feasibility(
5252
best_experiment = experiments[best_index]
5353
best_objective = best_experiment.problem.minmax[0] * best_est_objectives[best_index]
5454

55-
if abs(best_objective) == infeasible_pentalty:
55+
if abs(best_objective) == infeasible_penalty:
5656
raise RuntimeError(
5757
"No feasible solutions found for which to estimate proxy for x*."
5858
)

0 commit comments

Comments
 (0)