Skip to content

Commit 1feb2d7

Browse files
committed
Fix vocs Objective comparison
1 parent 1f207bf commit 1feb2d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimas/generators/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _convert_vocs_objectives_to_objectives(self) -> List[Objective]:
166166
"""Convert VOCS objectives to optimas Objective objects."""
167167
objectives = []
168168
for obj_name, obj_type in self._vocs.objectives.items():
169-
minimize = obj_type == "MINIMIZE"
169+
minimize = isinstance(obj_type, MinimizeObjective)
170170
obj = Objective(name=obj_name, minimize=minimize)
171171
objectives.append(obj)
172172
return objectives

0 commit comments

Comments
 (0)