Closed jb2197 closed 1 year ago
When trying to print out the constructed domain, the maximize of the objectives is not presented in the dictionary.
maximize
from summit.domain import Domain from summit.domain import ContinuousVariable domain = Domain() domain += ContinuousVariable( name='name', description='description', bounds=[-5, 5], is_objective=True, maximize=True ) domain += ContinuousVariable( name='name', description='description', bounds=[-50, 50], is_objective=True, maximize=False ) print(domain.to_dict())
Outputs:
[{'type': 'ContinuousVariable', 'is_objective': True, 'name': 'name', 'description': 'description', 'units': None, 'bounds': [-5.0, 5.0]}, {'type': 'ContinuousVariable', 'is_objective': True, 'name': 'name', 'description': 'description', 'units': None, 'bounds': [-50.0, 50.0]}]
Description
When trying to print out the constructed domain, the
maximize
of the objectives is not presented in the dictionary.What I Did
Outputs: