Skip to content

Commit 0d03ef1

Browse files
committed
Merge branch 'develop' into refactor/deprecate_from_yaml_toml_json
2 parents 9429b90 + e7a976a commit 0d03ef1

6 files changed

Lines changed: 15 additions & 19 deletions

File tree

.github/workflows/basic.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,12 @@ jobs:
6060
if: matrix.os == 'ubuntu-latest'
6161
run: |
6262
conda install -c conda-forge gcc_linux-64
63-
pip install nlopt==2.9.0
6463
6564
# Roundabout solution on macos for proper linking with mpicc
6665
- name: Install macOS compilers
6766
if: matrix.os == 'macos-latest'
6867
run: |
6968
conda install clang_osx-64
70-
pip install nlopt==2.8.0
7169
7270
- name: Install basic testing/feature dependencies
7371
run: |

.github/workflows/extra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
122122
- name: Start Redis
123123
if: matrix.os == 'ubuntu-latest'
124-
uses: supercharge/redis-github-action@1.8.1
124+
uses: supercharge/redis-github-action@v2
125125
with:
126126
redis-version: 7
127127

install/testing_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
flake8==7.3.0
22
coverage>=7.5
3-
pytest==9.0.1
3+
pytest==9.0.2
44
pytest-cov==7.0.0
55
pytest-timeout==2.4.0
66
mock==5.2.0

libensemble/tests/regression_tests/test_persistent_aposmm_nlopt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# Do not change these lines - they are parsed by run-tests.sh
1515
# TESTSUITE_COMMS: local mpi tcp
1616
# TESTSUITE_NPROCS: 3
17+
# TESTSUITE_EXTRA: true
1718

1819
import sys
1920
from math import gamma, pi, sqrt

libensemble/tests/regression_tests/test_persistent_aposmm_scipy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# Do not change these lines - they are parsed by run-tests.sh
1515
# TESTSUITE_COMMS: mpi local
1616
# TESTSUITE_NPROCS: 4
17-
# TESTSUITE_EXTRA: true
1817

1918
import multiprocessing
2019
import sys

libensemble/tests/unit_tests/RENAME_test_persistent_aposmm.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import libensemble.gen_funcs
77

8-
libensemble.gen_funcs.rc.aposmm_optimizers = "nlopt"
8+
libensemble.gen_funcs.rc.aposmm_optimizers = "scipy"
99

1010
if platform.system() in ["Linux", "Darwin"]:
1111
multiprocessing.set_start_method("fork", force=True)
@@ -66,14 +66,13 @@ def combined_func(x):
6666

6767
@pytest.mark.extra
6868
def test_standalone_persistent_aposmm():
69-
from math import gamma, pi, sqrt
7069

7170
import libensemble.gen_funcs
7271
from libensemble.message_numbers import FINISHED_PERSISTENT_GEN_TAG
7372
from libensemble.sim_funcs.six_hump_camel import six_hump_camel_func, six_hump_camel_grad
7473
from libensemble.tests.regression_tests.support import six_hump_camel_minima as minima
7574

76-
libensemble.gen_funcs.rc.aposmm_optimizers = "nlopt"
75+
libensemble.gen_funcs.rc.aposmm_optimizers = "scipy"
7776
from libensemble.gen_funcs.persistent_aposmm import aposmm
7877

7978
persis_info = {"rand_stream": np.random.default_rng(1), "nworkers": 4}
@@ -90,16 +89,16 @@ def test_standalone_persistent_aposmm():
9089
"initial_sample_size": 100,
9190
# 'localopt_method': 'LD_MMA', # Needs gradients
9291
"sample_points": np.round(minima, 1),
93-
"localopt_method": "LN_BOBYQA",
92+
"localopt_method": "scipy_Nelder-Mead",
9493
"standalone": {
9594
"eval_max": eval_max,
9695
"obj_func": six_hump_camel_func,
9796
"grad_func": six_hump_camel_grad,
9897
},
99-
"rk_const": 0.5 * ((gamma(1 + (n / 2)) * 5) ** (1 / n)) / sqrt(pi),
100-
"xtol_abs": 1e-6,
101-
"ftol_abs": 1e-6,
102-
"dist_to_bound_multiple": 0.5,
98+
"opt_return_codes": [0],
99+
"nu": 1e-8,
100+
"mu": 1e-8,
101+
"dist_to_bound_multiple": 0.01,
103102
"max_active_runs": 6,
104103
"lb": np.array([-3, -2]),
105104
"ub": np.array([3, 2]),
@@ -124,7 +123,6 @@ def test_standalone_persistent_aposmm():
124123

125124
@pytest.mark.extra
126125
def test_standalone_persistent_aposmm_combined_func():
127-
from math import gamma, pi, sqrt
128126

129127
import libensemble.gen_funcs
130128
from libensemble.message_numbers import FINISHED_PERSISTENT_GEN_TAG
@@ -147,12 +145,12 @@ def test_standalone_persistent_aposmm_combined_func():
147145
"initial_sample_size": 100,
148146
# 'localopt_method': 'LD_MMA', # Needs gradients
149147
"sample_points": np.round(minima, 1),
150-
"localopt_method": "LN_BOBYQA",
148+
"localopt_method": "scipy_Nelder-Mead",
151149
"standalone": {"eval_max": eval_max, "obj_and_grad_func": combined_func},
152-
"rk_const": 0.5 * ((gamma(1 + (n / 2)) * 5) ** (1 / n)) / sqrt(pi),
153-
"xtol_abs": 1e-6,
154-
"ftol_abs": 1e-6,
155-
"dist_to_bound_multiple": 0.5,
150+
"opt_return_codes": [0],
151+
"nu": 1e-8,
152+
"mu": 1e-8,
153+
"dist_to_bound_multiple": 0.01,
156154
"max_active_runs": 6,
157155
"lb": np.array([-3, -2]),
158156
"ub": np.array([3, 2]),

0 commit comments

Comments
 (0)