bbopt / nomad

NOMAD - A blackbox optimization software
https://nomad-4-user-guide.readthedocs.io/
GNU Lesser General Public License v3.0
110 stars 24 forks source link

Passing in initial points with evaluation? #137

Closed TianningGao closed 1 year ago

TianningGao commented 1 year ago

How can I pass a set of initial points with their evaluation into NOMAD? I'm using python and the PyNomad interface.

I have a set of initial points and their evaluations stored in two numpy arrays. The only way I found in the user guide is through 'X0' parameter but that still doesn't include the evaluations.

ctribes commented 1 year ago

The way to pass initial points with their evaluation is by using a cache file from a previous run. It is briefly mentioned in the user guide, in the section about X0 (https://nomad-4-user-guide.readthedocs.io/en/latest/HowToUseNomad.html#x0).

I attached an example in Python. When X0 is empty, Nomad will use the cache file provided (see "CACHE_FILE" in parameters) and put new evaluation points in it. runTest_cacheX0.py.txt

TianningGao commented 1 year ago

OK, thank you.