We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9f82aa commit 4ab4b48Copy full SHA for 4ab4b48
optimas/generators/base.py
@@ -25,6 +25,7 @@
25
ContinuousVariable,
26
DiscreteVariable,
27
MinimizeObjective,
28
+ ExploreObjective,
29
)
30
from gest_api.generator import Generator as StandardGenerator
31
@@ -171,6 +172,8 @@ def _convert_vocs_objectives_to_objectives(self) -> List[Objective]:
171
172
"""Convert VOCS objectives to optimas Objective objects."""
173
objectives = []
174
for obj_name, obj_type in self._vocs.objectives.items():
175
+ if isinstance(obj_type, ExploreObjective):
176
+ raise ValueError("EXPLORE is not supported in Optimas")
177
minimize = isinstance(obj_type, MinimizeObjective)
178
obj = Objective(name=obj_name, minimize=minimize)
179
objectives.append(obj)
0 commit comments