Skip to content

Commit 852833b

Browse files
committed
Adding notes about the initial example
1 parent 8c851b5 commit 852833b

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

libensemble/tests/regression_tests/test_persistent_aposmm_ibcdfo_pounders.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
sys.exit("Ensure https://github.com/POptUS/minq has been cloned and that minq/py/minq5/ is on the PYTHONPATH")
5353

5454

55-
def sum_squared(x):
56-
return np.sum(np.power(x, 2))
57-
58-
5955
def synthetic_beamline_mapping(H, _, sim_specs):
6056
x = H["x"][0]
6157
assert len(x) == 4, "Assuming 4 inputs to this function"
@@ -76,7 +72,7 @@ def synthetic_beamline_mapping(H, _, sim_specs):
7672

7773
nworkers, is_manager, libE_specs, _ = parse_args()
7874

79-
assert nworkers == 2, "This test is just for two workers"
75+
assert nworkers == 2, "This test is just for two workers, as only one localopt run is being performed"
8076

8177
for inst in range(2):
8278
if inst == 0:
@@ -109,9 +105,9 @@ def synthetic_beamline_mapping(H, _, sim_specs):
109105
"persis_in": ["f", "fvec"] + [n[0] for n in gen_out],
110106
"out": gen_out,
111107
"user": {
112-
"initial_sample_size": 1,
113-
"stop_after_k_runs": 1,
114-
"max_active_runs": 1,
108+
"initial_sample_size": 1, # The initial sampled point will be the starting point
109+
"stop_after_k_runs": 1, # Only one local optimization run will be peformed
110+
"max_active_runs": 1, # Only one local optimization run will be peformed,
115111
"sample_points": np.atleast_2d(0.1 * (np.arange(n) + 1)),
116112
"localopt_method": "ibcdfo_pounders",
117113
"run_max_eval": 100 * (n + 1),

0 commit comments

Comments
 (0)