File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments