Skip to content

Commit abf8d4d

Browse files
committed
[CC] Updating test to new standard
1 parent c037800 commit abf8d4d

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

Tests/Validation/Optimization/test_Binh_and_Korn.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ def test_Binh_and_Korn():
7575
# simu.mag.Kgeo_fineness=0.02
7676
simu.struct = None
7777

78-
output = Output(simu=simu)
79-
8078
# ### Design variable
8179
my_vars = [
8280
OptiDesignVar(
@@ -139,7 +137,7 @@ def evaluate(output):
139137
# ### Defining the problem
140138

141139
my_prob = OptiProblem(
142-
output=output,
140+
simu=simu,
143141
design_var=my_vars,
144142
obj_func=objs,
145143
constraint=cstrs,

Tests/Validation/Optimization/test_opti_datakeeper_list.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ def test_opti_datakeeper_list():
3535
# Definition of the simulation
3636
simu = Simu1(name="Test_machine", machine=SCIM_001)
3737

38-
output = Output(simu=simu)
39-
4038
# Design variable
4139
my_vars = [
4240
OptiDesignVar(
@@ -82,7 +80,7 @@ def evaluate(output):
8280

8381
# Defining the problem
8482
my_prob = OptiProblem(
85-
output=output,
83+
simu=simu,
8684
design_var=my_vars,
8785
obj_func=objs,
8886
datakeeper_list=datakeeper_list,

Tests/Validation/Optimization/test_opti_preprocessing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ def test_opti_preprocessing():
3535
# Definition of the simulation
3636
simu = Simu1(name="Test_machine", machine=SCIM_001)
3737

38-
output = Output(simu=simu)
39-
4038
# Design variable
4139
my_vars = [
4240
OptiDesignVar(
@@ -78,7 +76,7 @@ def evaluate(output):
7876

7977
# Defining the problem
8078
my_prob = OptiProblem(
81-
output=output,
79+
simu=simu,
8280
design_var=my_vars,
8381
obj_func=objs,
8482
preprocessing=preprocessing,

Tests/Validation/Optimization/test_zdt3.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ def test_zdt3():
7474
# simu.mag.Kgeo_fineness=0.02
7575
simu.struct = None
7676

77-
output = Output(simu=simu)
78-
7977
# ### Design variable
8078
my_vars = []
8179

@@ -122,7 +120,7 @@ def evaluate(output):
122120

123121
# ### Defining the problem
124122
my_prob = OptiProblem(
125-
output=output, design_var=my_vars, obj_func=objs, eval_func=evaluate
123+
simu=simu, design_var=my_vars, obj_func=objs, eval_func=evaluate
126124
)
127125

128126
solver = OptiGenAlgNsga2Deap(problem=my_prob, size_pop=40, nb_gen=100, p_mutate=0.5)

0 commit comments

Comments
 (0)