@@ -102,42 +102,42 @@ function schaffer_n2(x)
102
102
return [f1, f2], gx, hx
103
103
end
104
104
OBJECTIVES = Dict (
105
- " Metaheuristics.Algorithm{NSGA2} for sphere" => [1.2825775684488987 , 5.542698673334447 ],
106
- " Metaheuristics.Algorithm{NSGA3} for sphere" => [1.4037392987204247 , 5.27960233564319 ],
107
- " Metaheuristics.Algorithm{SPEA2} for sphere" => [0.7489097792697987 , 6.810116922148639 ],
108
- " Metaheuristics.Algorithm{CCMO{NSGA2}} for sphere" => [0.705560866088165 , 7.099072840195393 ],
109
- " Metaheuristics.Algorithm{MOEAD_DE} for sphere" => [0.07806395081944045 , 10.569578390542956 ],
110
- " Metaheuristics.Algorithm{SMS_EMOA} for sphere" => [0.1786522135251722 , 9.510830918969237 ],
111
- " Metaheuristics.Algorithm{NSGA2} for rastrigin" => [0.0 , 12.0 ],
112
- " Metaheuristics.Algorithm{NSGA3} for rastrigin" => [3.6211843795326253 , 8.094700083634313 ],
113
- " Metaheuristics.Algorithm{SPEA2} for rastrigin" => [4.621746036074858 , 8.865705515641517 ],
114
- " Metaheuristics.Algorithm{CCMO{NSGA2}} for rastrigin" => [1.1057418927099407 , 5.822357866887147 ],
115
- " Metaheuristics.Algorithm{MOEAD_DE} for rastrigin" => [4.066568903563153 , 8.511756354624936 ],
116
- " Metaheuristics.Algorithm{SMS_EMOA} for rastrigin" => [3.713936191157112 , 11.089405465875496 ],
117
- " Metaheuristics.Algorithm{NSGA2} for rosenbrock" => [13.066572378560455 , 631.9299839626948 ],
118
- " Metaheuristics.Algorithm{NSGA3} for rosenbrock" => [10.050422620361184 , 638.7582963114556 ] ,
119
- " Metaheuristics.Algorithm{SPEA2} for rosenbrock" => [32.65994969150141 , 531.6251481922213 ],
120
- " Metaheuristics.Algorithm{CCMO{NSGA2}} for rosenbrock" => [1.1057418927099407 , 5.822357866887147 ],
121
- " Metaheuristics.Algorithm{MOEAD_DE} for rosenbrock" => [57.11598017501275 , 436.3573486523958 ],
122
- " Metaheuristics.Algorithm{SMS_EMOA} for rosenbrock" => [69.55872489888084 , 425.9708273845619 ],
123
- " Metaheuristics.Algorithm{NSGA2} for ackley" => [3.5426389168269847 , 6.192082150329497 ],
124
- " Metaheuristics.Algorithm{NSGA3} for ackley" => [2.600939673226922 , 6.418843253009765 ],
125
- " Metaheuristics.Algorithm{SPEA2} for ackley" => [3.969736656218448 , 4.704118905245824 ],
126
- " Metaheuristics.Algorithm{CCMO{NSGA2}} for ackley" => [1.1057418927099407 , 5.822357866887147 ],
127
- " Metaheuristics.Algorithm{MOEAD_DE} for ackley" => [3.014117404434334 , 5.189544505776976 ],
128
- " Metaheuristics.Algorithm{SMS_EMOA} for ackley" => [2.4105461048882373 , 5.915339334024861 ],
129
- " Metaheuristics.Algorithm{NSGA2} for dtlz2" => [0.02392674091616439 , 0.009783549539645912 ],
130
- " Metaheuristics.Algorithm{NSGA3} for dtlz2" => [0.003629941363507031 , 0.011059594788256341 ],
131
- " Metaheuristics.Algorithm{SPEA2} for dtlz2" => [0.00023267753741465326 , 0.08058561661765253 ],
132
- " Metaheuristics.Algorithm{CCMO{NSGA2}} for dtlz2" => [1.1057418927099407 , 5.822357866887147 ],
133
- " Metaheuristics.Algorithm{MOEAD_DE} for dtlz2" => [0.03199207429508088 , 0.0012836221622943944 ],
134
- " Metaheuristics.Algorithm{SMS_EMOA} for dtlz2" => [0.13316508540906347 , 0.0008924220223277544 ],
135
- " Metaheuristics.Algorithm{NSGA2} for schaffer_n2" => [2.171298522190922 , 0.27716785218921663 ],
136
- " Metaheuristics.Algorithm{NSGA3} for schaffer_n2" => [0.0403717729174977 , 3.2366626422738527 ],
137
- " Metaheuristics.Algorithm{SPEA2} for schaffer_n2" => [2.5115325783832896 , 0.17240635672366453 ],
138
- " Metaheuristics.Algorithm{CCMO{NSGA2}} for schaffer_n2" => [0.0 , 800.0 ],
139
- " Metaheuristics.Algorithm{MOEAD_DE} for schaffer_n2" => [0.019151313090508694 , 3.4655982357364583 ],
140
- " Metaheuristics.Algorithm{SMS_EMOA} for schaffer_n2" => [0.06964400287148177 , 3.0140379940103594 ],
105
+ " Metaheuristics.Algorithm{NSGA2} for sphere" => [0.9179326495423358 , 6.500479761845751 ],
106
+ " Metaheuristics.Algorithm{NSGA3} for sphere" => [1.459119296264428 , 5.316958184343253 ],
107
+ " Metaheuristics.Algorithm{SPEA2} for sphere" => [0.6866588142724173 , 7.18284015333389 ],
108
+ " Metaheuristics.Algorithm{CCMO{NSGA2}} for sphere" => [0.8829537455812262 , 6.5718236788783555 ],
109
+ " Metaheuristics.Algorithm{MOEAD_DE} for sphere" => [0.3976541196796912 , 8.117594342458556 ],
110
+ " Metaheuristics.Algorithm{SMS_EMOA} for sphere" => [0.5003293369817386 , 7.837151299208113 ],
111
+ " Metaheuristics.Algorithm{NSGA2} for rastrigin" => [3.2085851798990426 , 11.008095021493556 ],
112
+ " Metaheuristics.Algorithm{NSGA3} for rastrigin" => [7.651119804304736 , 8.720012335441673 ],
113
+ " Metaheuristics.Algorithm{SPEA2} for rastrigin" => [6.584283198538056 , 11.285298996109109 ],
114
+ " Metaheuristics.Algorithm{CCMO{NSGA2}} for rastrigin" => [1.5700038876682554 , 4.889538439797789 ],
115
+ " Metaheuristics.Algorithm{MOEAD_DE} for rastrigin" => [3.630324386882652 , 11.255596145071413 ],
116
+ " Metaheuristics.Algorithm{SMS_EMOA} for rastrigin" => [2.429354909458187 , 10.665738548398641 ],
117
+ " Metaheuristics.Algorithm{NSGA2} for rosenbrock" => [8.289098963014444 , 690.3540872929669 ],
118
+ " Metaheuristics.Algorithm{NSGA3} for rosenbrock" => [5.809098608164398 , 677.7633682236716 ] ,
119
+ " Metaheuristics.Algorithm{SPEA2} for rosenbrock" => [78.91822306586232 , 426.30261147533 ],
120
+ " Metaheuristics.Algorithm{CCMO{NSGA2}} for rosenbrock" => [1.5700038876682554 , 4.889538439797789 ],
121
+ " Metaheuristics.Algorithm{MOEAD_DE} for rosenbrock" => [14.107118783363653 , 615.3036153255869 ],
122
+ " Metaheuristics.Algorithm{SMS_EMOA} for rosenbrock" => [30.756427683784672 , 542.6831635776932 ],
123
+ " Metaheuristics.Algorithm{NSGA2} for ackley" => [2.240787163704834 , 5.990002878952371 ],
124
+ " Metaheuristics.Algorithm{NSGA3} for ackley" => [4.440892098500626e-16 , 6.593599079287213 ],
125
+ " Metaheuristics.Algorithm{SPEA2} for ackley" => [2.6329825257456503 , 6.060788875236632 ],
126
+ " Metaheuristics.Algorithm{CCMO{NSGA2}} for ackley" => [1.5700038876682554 , 4.889538439797789 ],
127
+ " Metaheuristics.Algorithm{MOEAD_DE} for ackley" => [4.440892098500626e-16 , 6.593599079287213 ],
128
+ " Metaheuristics.Algorithm{SMS_EMOA} for ackley" => [2.1417573971815256 , 6.015324307249184 ],
129
+ " Metaheuristics.Algorithm{NSGA2} for dtlz2" => [0.013283104966270814 , 0.010808186786590583 ],
130
+ " Metaheuristics.Algorithm{NSGA3} for dtlz2" => [0.013428265441897881 , 0.03589930489326534 ],
131
+ " Metaheuristics.Algorithm{SPEA2} for dtlz2" => [0.019006068021099495 , 0.0009905093731377751 ],
132
+ " Metaheuristics.Algorithm{CCMO{NSGA2}} for dtlz2" => [1.5700038876682554 , 4.889538439797789 ],
133
+ " Metaheuristics.Algorithm{MOEAD_DE} for dtlz2" => [0.027075258566241527 , 0.00973958317460759 ],
134
+ " Metaheuristics.Algorithm{SMS_EMOA} for dtlz2" => [0.056304481489060705 , 0.026075248436234502 ],
135
+ " Metaheuristics.Algorithm{NSGA2} for schaffer_n2" => [1.4034569322987955 , 0.6647534264038837 ],
136
+ " Metaheuristics.Algorithm{NSGA3} for schaffer_n2" => [0.9679143048226242 , 1.0326088684985277 ],
137
+ " Metaheuristics.Algorithm{SPEA2} for schaffer_n2" => [0.24369709729308642 , 2.269069649724968 ],
138
+ " Metaheuristics.Algorithm{CCMO{NSGA2}} for schaffer_n2" => [3.632401400816196e-17 , 4.9294679997494206e-17 ],
139
+ " Metaheuristics.Algorithm{MOEAD_DE} for schaffer_n2" => [0.059772358446876686 , 3.0818369131591896 ],
140
+ " Metaheuristics.Algorithm{SMS_EMOA} for schaffer_n2" => [0.4978888767998813 , 1.67543922644328 ],
141
141
)
142
142
# Define the testset
143
143
@testset " Multi-Objective Optimization with Various Functions and Metaheuristics" begin
@@ -185,7 +185,7 @@ OBJECTIVES = Dict(
185
185
key = " $alg_name for $prob_name "
186
186
value = OBJECTIVES[key]
187
187
objectives = sol. objective
188
- @test value== objectives
188
+ @test value ≈ objectives atol = 1e-1
189
189
end
190
190
end
191
191
end
0 commit comments