@@ -619,33 +619,33 @@ def test_26_create_optimization(self):
619
619
620
620
def test_27_create_doe (self ):
621
621
setup2 = self .aedtapp .optimizations .add ("db(S(1,1))" , ranges = {"Freq" : "2.5GHz" }, optim_type = "DXDOE" )
622
- assert setup2 .set_variable ("w1" , 0.1 , 10 , 51 )
622
+ assert setup2 .add_variation ("w1" , 0.1 , 10 , 51 )
623
623
assert setup2
624
624
assert setup2 .add_goal (calculation = "dB(S(1,1))" , ranges = {"Freq" : "2.6GHz" })
625
625
assert setup2 .add_calculation (calculation = "dB(S(1,1))" , ranges = {"Freq" : "2.5GHz" })
626
626
627
627
def test_28A_create_dx (self ):
628
628
setup2 = self .aedtapp .optimizations .add (None , {"w1" : "1mm" , "w2" : "2mm" }, optim_type = "optiSLang" )
629
- assert setup2 .set_variable ("w1" , 0.1 , 10 , 51 )
630
- assert not setup2 .set_variable ("w3" , 0.1 , 10 , 51 )
629
+ assert setup2 .add_variation ("w1" , 0.1 , 10 , 51 )
630
+ assert not setup2 .add_variation ("w3" , 0.1 , 10 , 51 )
631
631
assert setup2
632
632
assert setup2 .add_goal (calculation = "dB(S(1,1))" , ranges = {"Freq" : "2.6GHz" })
633
633
634
634
def test_28B_create_dx (self ):
635
635
setup2 = self .aedtapp .optimizations .add (None , {"w1" : "1mm" , "w2" : "2mm" }, optim_type = "DesignExplorer" )
636
- assert setup2 .set_variable ("w1" , 0.1 , 10 , 51 )
636
+ assert setup2 .add_variation ("w1" , 0.1 , 10 , 51 )
637
637
assert setup2
638
638
assert setup2 .add_goal (calculation = "dB(S(1,1))" , ranges = {"Freq" : "2.6GHz" })
639
639
640
640
def test_29_create_sensitivity (self ):
641
641
setup2 = self .aedtapp .optimizations .add ("db(S(1,1))" , ranges = {"Freq" : "2.5GHz" }, optim_type = "Sensitivity" )
642
- assert setup2 .set_variable ("w1" , 0.1 , 10 , 51 )
642
+ assert setup2 .add_variation ("w1" , 0.1 , 10 , 51 )
643
643
assert setup2
644
644
assert setup2 .add_calculation (calculation = "dB(S(1,1))" , ranges = {"Freq" : "2.6GHz" })
645
645
646
646
def test_29_create_statistical (self ):
647
647
setup2 = self .aedtapp .optimizations .add ("db(S(1,1))" , ranges = {"Freq" : "2.5GHz" }, optim_type = "Statistical" )
648
- assert setup2 .set_variable ("w1" , 0.1 , 10 , 51 )
648
+ assert setup2 .add_variation ("w1" , 0.1 , 10 , 0.1 , "LinearStep" )
649
649
assert setup2
650
650
assert setup2 .add_calculation (calculation = "dB(S(1,1))" , ranges = {"Freq" : "2.6GHz" })
651
651
0 commit comments