Skip to content

Commit be28139

Browse files
committed
blac
1 parent 4550969 commit be28139

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

libensemble/tests/unit_tests/test_aposmm_starting_point_finder.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,15 @@ def setup_history_and_find_rk(n_s, num_to_start, lb, ub, f_vals, x_points):
105105

106106
assert len(inds_to_start) == num_to_start, f"Found {len(inds_to_start)} starting points instead of {num_to_start}"
107107

108-
starting_pts = H['x'][inds_to_start]
109-
110-
print(f"For this problem, we know the minima. The chosen starting points: \n{starting_pts[np.lexsort(starting_pts.T[::-1])]}\nshoudl be close to the known minima: \n{known_minima[np.lexsort(known_minima.T[::-1])]}")
108+
starting_pts = H["x"][inds_to_start]
109+
sorted_starting = starting_pts[np.lexsort(starting_pts.T[::-1])]
110+
sorted_known = known_minima[np.lexsort(known_minima.T[::-1])]
111+
112+
print(
113+
f"For this problem, we know the minima.\n"
114+
f"The chosen starting points:\n{sorted_starting}\n"
115+
f"should be close to the known minima:\n{sorted_known}"
116+
)
111117

112118
# Output results
113119
print(f"Chosen r_k: {rk_final:.6f}")

0 commit comments

Comments
 (0)