@@ -54,7 +54,7 @@ def __init__(self, dim: PositiveInt, num_objectives: PositiveInt = 2, **kwargs):
54
54
55
55
inputs = []
56
56
for i in range (self .dim ):
57
- inputs .append (ContinuousInput (key = "x_%i" % (i ), bounds = ( 0 , 1 ) ))
57
+ inputs .append (ContinuousInput (key = "x_%i" % (i ), bounds = [ 0 , 1 ] ))
58
58
outputs = []
59
59
self .k = self .dim - self .num_objectives + 1
60
60
for i in range (self .num_objectives ):
@@ -140,8 +140,8 @@ def __init__(self, constraints: bool = True, **kwargs):
140
140
self ._domain = Domain (
141
141
inputs = Inputs (
142
142
features = [
143
- ContinuousInput (key = "x1" , bounds = ( 0 , 5 ) ),
144
- ContinuousInput (key = "x2" , bounds = ( 0 , 3 ) ),
143
+ ContinuousInput (key = "x1" , bounds = [ 0 , 5 ] ),
144
+ ContinuousInput (key = "x2" , bounds = [ 0 , 3 ] ),
145
145
],
146
146
),
147
147
outputs = Outputs (
@@ -187,8 +187,8 @@ def __init__(self, **kwargs):
187
187
self ._domain = Domain (
188
188
inputs = Inputs (
189
189
features = [
190
- ContinuousInput (key = "x1" , bounds = ( 0 , math .pi ) ),
191
- ContinuousInput (key = "x2" , bounds = ( 0 , math .pi ) ),
190
+ ContinuousInput (key = "x1" , bounds = [ 0 , math .pi ] ),
191
+ ContinuousInput (key = "x2" , bounds = [ 0 , math .pi ] ),
192
192
],
193
193
),
194
194
outputs = Outputs (
@@ -293,13 +293,13 @@ def __init__(self, C_i: Optional[np.ndarray] = None, **kwargs):
293
293
# Decision variables
294
294
# "residence time in minutes"
295
295
inputs = [
296
- ContinuousInput (key = "tau" , bounds = ( 0.5 , 2 ) ),
296
+ ContinuousInput (key = "tau" , bounds = [ 0.5 , 2 ] ),
297
297
# "equivalents of pyrrolidine"
298
- ContinuousInput (key = "equiv_pldn" , bounds = ( 1 , 5 ) ),
298
+ ContinuousInput (key = "equiv_pldn" , bounds = [ 1 , 5 ] ),
299
299
# "concentration of 2,4 dinitrofluorobenenze at reactor inlet (after mixing) in M"
300
- ContinuousInput (key = "conc_dfnb" , bounds = ( 0.1 , 0.5 ) ),
300
+ ContinuousInput (key = "conc_dfnb" , bounds = [ 0.1 , 0.5 ] ),
301
301
# "Reactor temperature in degrees celsius"
302
- ContinuousInput (key = "temperature" , bounds = ( 30 , 120 ) ),
302
+ ContinuousInput (key = "temperature" , bounds = [ 30 , 120 ] ),
303
303
]
304
304
# Objectives
305
305
# "space time yield (kg/m^3/h)"
@@ -442,7 +442,7 @@ def __init__(self, n_inputs=30, **kwargs):
442
442
super ().__init__ (** kwargs )
443
443
self .n_inputs = n_inputs
444
444
inputs = [
445
- ContinuousInput (key = f"x{ i + 1 } " , bounds = ( 0 , 1 ) ) for i in range (n_inputs )
445
+ ContinuousInput (key = f"x{ i + 1 } " , bounds = [ 0 , 1 ] ) for i in range (n_inputs )
446
446
]
447
447
inputs = Inputs (features = inputs )
448
448
outputs = [
@@ -550,11 +550,11 @@ def __init__(
550
550
],
551
551
),
552
552
# "base equivalents"
553
- ContinuousInput (key = "base_eq" , bounds = ( 1 , 2.5 ) ),
553
+ ContinuousInput (key = "base_eq" , bounds = [ 1 , 2.5 ] ),
554
554
# "Reactor temperature in degrees celsius"
555
- ContinuousInput (key = "temperature" , bounds = ( 30 , 100 ) ),
555
+ ContinuousInput (key = "temperature" , bounds = [ 30 , 100 ] ),
556
556
# "residence time in seconds (s)"
557
- ContinuousInput (key = "t_res" , bounds = ( 60 , 1800 ) ),
557
+ ContinuousInput (key = "t_res" , bounds = [ 60 , 1800 ] ),
558
558
]
559
559
560
560
input_preprocessing_specs = {
@@ -566,11 +566,11 @@ def __init__(
566
566
outputs = [
567
567
ContinuousOutput (
568
568
key = "yield" ,
569
- objective = MaximizeObjective (w = 1.0 , bounds = ( 0.0 , 1.0 ) ),
569
+ objective = MaximizeObjective (w = 1.0 , bounds = [ 0.0 , 1.0 ] ),
570
570
),
571
571
ContinuousOutput (
572
572
key = "cost" ,
573
- objective = MinimizeObjective (w = 1.0 , bounds = ( 0.0 , 1.0 ) ),
573
+ objective = MinimizeObjective (w = 1.0 , bounds = [ 0.0 , 1.0 ] ),
574
574
),
575
575
]
576
576
self .ref_point = {"yield" : 0.0 , "cost" : 1.0 }
0 commit comments