Open idwwwoqq808 opened 1 year ago
Forgot to mention that PSD-MADS is called from python:
# already has "$NOMAD_HOME/bin" in "PATH" environment variable.
import subprocess, sys
cmd = 'nomad nomad4_param.txt'
tmp = subprocess.run(cmd, stdout=sys.stdout, stderr=sys.stderr, shell=True)
I see that std::map is the reason the out_of_range exception was triggered. In the release version we use map for accessing different of Eval values (BB and MODEL) for a given EvaluationPoint. Could you do the same experiment without using quadratic MODEL to see if there is the same problem ? DIRECTION_TYPE ORTHO 2N QUAD_MODEL_SEARCH no EVAL_QUEUE_SORT DIR_LAST_SUCCESS
On my side I will take some time to reproduce the problem with the files you shared. Thanks
OK, I will try it. Just being curious, in the terminal output there is a warning saying that model is disabled due to high dimensions. Does PSD-MADS still use models even if this warning occurs?
In fact, quad models are disabled only for the search step of Mads. Other use of models are not disabled.
I am really not sure this is the cause of the exception you have. I will dig into your example.
I did some tests on your example (ran ~ 10 times) on OSX and Linux (both gcc) but I did not get the out_of_range exception.
You can increase the display degree to have more information prior to the crash, maybe this can help to figure out what is going on.
I tried adding the parameters you mentioned but it still crashed after repeating the experiment 29 times. I will increase display degree to see what NOMAD outputs.
I was repeating an optimization experiment using PSD-NOMAD. It repeated for a few times without any problem and then crashed with "std::out_of_range" error. Is there a way to solve it? This problem need to repeat execution several times to trigger. File Content nomad4_param.txt
nomad4.cache (externally generated)
Code obj_func.py
test_func.py
Terminal Output
Environment Python version: 3.10.6 OS: Ubuntu 22.04