we are trying to run a multi-objective optimization script, but ran into a library compatibility issues between the optimas.explorations and xopt.generators for MOBO generator
@RemiLehe
here is how we are trying to use the VOCS, Generator, and Evaluator
vocs = VOCS(
variables={
"voltage": [50, 300],
"pressure": [25, 100],
},
objectives={
"objective1": "MINIMIZE",
"objective2": "MINIMIZE",
},)
Here
# Create generator.
gen = MOBOGenerator(
vocs=vocs,
reference_point={
"objective1": 1.0,
"objective2": 0.5,
}
)
# Create exploration.
exploration = Exploration(
generator=gen,
evaluator=ev,
max_evals=n_total,
sim_workers=sim_workers,
run_async=True,
resume=False, # ← change this
)
Error down below:
Traceback (most recent call last):
File "/pscratch/.../BOI_test_4_8_2026/ammto_chipfab/optimization/run_grid_scan.py", line 107, in <module>
exploration = Exploration(
^^^^^^^^^^^^
File "/pscratch/.../storage/sw/warpx_opt_new/perlmutter/gpu/venvs/warpx-optnew-gpu/lib/python3.11/site-packages/optimas/explorations/base.py", line 124, in __init__
self._set_default_libe_specs()
File "/pscratch/.../storage/sw/warpx_opt_new/perlmutter/gpu/venvs/warpx-optnew-gpu/lib/python3.11/site-packages/optimas/explorations/base.py", line 599, in _set_default_libe_specs
gen_libE_specs = self.generator.get_libe_specs()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/pscratch/.../storage/sw/warpx_opt_new/perlmutter/gpu/venvs/warpx-optnew-gpu/lib/python3.11/site-packages/pydantic/main.py", line 1026, in __getattr__
raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}')
AttributeError: 'MOBOGenerator' object has no attribute 'get_libe_specs'
Can someone help us resolve this issue. We would like to use the MOBOGenerator from Xopt with the optimas wrapper - so that we can perform evaluations in parallel.
Please let us know if we can provide more information. We are also happy to test a branch once you have a fix. Thank you so much!
we are trying to run a multi-objective optimization script, but ran into a library compatibility issues between the optimas.explorations and xopt.generators for MOBO generator
@RemiLehe
here is how we are trying to use the VOCS, Generator, and Evaluator
Error down below:
Can someone help us resolve this issue. We would like to use the MOBOGenerator from Xopt with the optimas wrapper - so that we can perform evaluations in parallel.
Please let us know if we can provide more information. We are also happy to test a branch once you have a fix. Thank you so much!