bbopt / NOMAD.jl

Julia interface to the NOMAD blackbox optimization software
Other
47 stars 5 forks source link

`max_time` as an integer #50

Closed tmigot closed 2 years ago

tmigot commented 2 years ago

Usually in Julia, the time() is a real number. Is there any specific reason why the max_time in NomadOption is fixed as an integer here, L.69?

salomonl commented 2 years ago

Hey @tmigot . max_time is a parameter of the Nomad software given in seconds, which can be provided as a size_t type for the c++ interface (see https://nomad-4-user-guide.readthedocs.io/en/latest/Appendix.html MAX_TIME parameter).

tmigot commented 2 years ago

Ok, thanks. I just got confused because in the NomadOptions it is specified:

max_time::Union{Nothing, Int}