optimas-org / optimas

Optimization at scale, powered by libEnsemble
https://optimas.readthedocs.io
Other
22 stars 13 forks source link

Fix bug with parameter type in Ax generators #152

Closed AngelFP closed 9 months ago

AngelFP commented 9 months ago

Fixes a bug introduced in #150, where the dtype of the VaryingParameters was not being used by the Ax Service generators. The type was therefore being inferred by Ax, which sometimes would set a float as an int.

It also fixes an issue where parameters with a dtype other than float would crash the exploration.

The tests have been updated to prevent a random crash in the new test introduced in #150.