diff --git a/lib/OptimizationMetaheuristics/test/runtests.jl b/lib/OptimizationMetaheuristics/test/runtests.jl index 2a6114aac..3ddcf80d4 100644 --- a/lib/OptimizationMetaheuristics/test/runtests.jl +++ b/lib/OptimizationMetaheuristics/test/runtests.jl @@ -102,42 +102,42 @@ function schaffer_n2(x) return [f1, f2], gx, hx end OBJECTIVES = Dict( - "Metaheuristics.Algorithm{NSGA2} for sphere"=> [0.4761274648673104, 7.888859360956367], - "Metaheuristics.Algorithm{NSGA3} for sphere"=> [1.1245011962315388, 5.9084439601220105], - "Metaheuristics.Algorithm{SPEA2} for sphere"=> [0.45500157273715425, 8.060476156495577], - "Metaheuristics.Algorithm{CCMO{NSGA2}} for sphere"=> [0.8537159192703154, 6.721186217733861], - "Metaheuristics.Algorithm{MOEAD_DE} for sphere"=> [1.7135443166012259, 4.818225194026158], - "Metaheuristics.Algorithm{SMS_EMOA} for sphere"=> [1.1376191314229631, 5.935092118744685], - "Metaheuristics.Algorithm{NSGA2} for rastrigin"=> [3.914962881168682, 11.552205533592897], - "Metaheuristics.Algorithm{NSGA3} for rastrigin"=> [4.842031386209626, 5.542348181529025], - "Metaheuristics.Algorithm{SPEA2} for rastrigin"=> [2.9692594618763835, 10.596356482458171], - "Metaheuristics.Algorithm{CCMO{NSGA2}} for rastrigin"=> [0.4152393951206974, 7.953188854042798], - "Metaheuristics.Algorithm{MOEAD_DE} for rastrigin"=> [0.0, 12.0], - "Metaheuristics.Algorithm{SMS_EMOA} for rastrigin"=> [10.668382998122013, 11.672554721420616], - "Metaheuristics.Algorithm{NSGA2} for rosenbrock"=> [13.564144823755003, 608.7768632268896], - "Metaheuristics.Algorithm{NSGA3} for rosenbrock"=> [41.32512246661068, 479.9472092328193], - "Metaheuristics.Algorithm{SPEA2} for rosenbrock"=> [20.921291737001457, 566.887198567844], - "Metaheuristics.Algorithm{CCMO{NSGA2}} for rosenbrock"=> [0.4152393951206974, 7.953188854042798], - "Metaheuristics.Algorithm{MOEAD_DE} for rosenbrock"=> [2.215363988408552, 723.1454508385998], - "Metaheuristics.Algorithm{SMS_EMOA} for rosenbrock"=> [20.27041333432111, 575.7366151959259], - "Metaheuristics.Algorithm{NSGA2} for ackley"=> [3.4438643047130992, 5.9371415671384895], - "Metaheuristics.Algorithm{NSGA3} for ackley"=> [3.4659156540969573, 5.287995047899489], - "Metaheuristics.Algorithm{SPEA2} for ackley"=> [2.3209460118197716, 5.918573168574383], - "Metaheuristics.Algorithm{CCMO{NSGA2}} for ackley"=> [0.4152393951206974, 7.953188854042798], - "Metaheuristics.Algorithm{MOEAD_DE} for ackley"=> [4.440892098500626e-16, 6.593599079287213], - "Metaheuristics.Algorithm{SMS_EMOA} for ackley"=> [2.4079028491253074, 6.085847745455787], - "Metaheuristics.Algorithm{NSGA2} for dtlz2"=> [0.0008621981163705847, 0.016776532222616037], - "Metaheuristics.Algorithm{NSGA3} for dtlz2"=> [0.00530717096691627, 0.006810762449448562], - "Metaheuristics.Algorithm{SPEA2} for dtlz2"=> [0.0022573638805422967, 0.0012875185095928014], - "Metaheuristics.Algorithm{CCMO{NSGA2}} for dtlz2"=> [2.9276186095638996, 3.0744092709040185], - "Metaheuristics.Algorithm{MOEAD_DE} for dtlz2"=> [0.0009460864848779976, 0.015153151632789923], - "Metaheuristics.Algorithm{SMS_EMOA} for dtlz2"=> [0.006063356611750317, 0.014614126585905095], - "Metaheuristics.Algorithm{NSGA2} for schaffer_n2"=> [1.0978202866371685, 0.9067435054036517], - "Metaheuristics.Algorithm{NSGA3} for schaffer_n2"=> [2.755035084049435, 0.11571574056316469], - "Metaheuristics.Algorithm{SPEA2} for schaffer_n2"=> [2.2990190172651723, 0.23401248171694122], + "Metaheuristics.Algorithm{NSGA2} for sphere"=> [1.2825775684488987, 5.542698673334447], + "Metaheuristics.Algorithm{NSGA3} for sphere"=> [1.4037392987204247, 5.27960233564319], + "Metaheuristics.Algorithm{SPEA2} for sphere"=> [0.7489097792697987, 6.810116922148639], + "Metaheuristics.Algorithm{CCMO{NSGA2}} for sphere"=> [0.705560866088165, 7.099072840195393], + "Metaheuristics.Algorithm{MOEAD_DE} for sphere"=> [0.07806395081944045, 10.569578390542956], + "Metaheuristics.Algorithm{SMS_EMOA} for sphere"=> [0.1786522135251722, 9.510830918969237], + "Metaheuristics.Algorithm{NSGA2} for rastrigin"=> [0.0, 12.0], + "Metaheuristics.Algorithm{NSGA3} for rastrigin"=> [3.6211843795326253, 8.094700083634313], + "Metaheuristics.Algorithm{SPEA2} for rastrigin"=> [4.621746036074858, 8.865705515641517], + "Metaheuristics.Algorithm{CCMO{NSGA2}} for rastrigin"=> [1.1057418927099407, 5.822357866887147], + "Metaheuristics.Algorithm{MOEAD_DE} for rastrigin"=> [4.066568903563153, 8.511756354624936], + "Metaheuristics.Algorithm{SMS_EMOA} for rastrigin"=> [3.713936191157112, 11.089405465875496], + "Metaheuristics.Algorithm{NSGA2} for rosenbrock"=> [13.066572378560455, 631.9299839626948], + "Metaheuristics.Algorithm{NSGA3} for rosenbrock"=> [10.050422620361184, 638.7582963114556], + "Metaheuristics.Algorithm{SPEA2} for rosenbrock"=> [32.65994969150141, 531.6251481922213], + "Metaheuristics.Algorithm{CCMO{NSGA2}} for rosenbrock"=> [1.1057418927099407, 5.822357866887147], + "Metaheuristics.Algorithm{MOEAD_DE} for rosenbrock"=> [57.11598017501275, 436.3573486523958], + "Metaheuristics.Algorithm{SMS_EMOA} for rosenbrock"=> [69.55872489888084, 425.9708273845619], + "Metaheuristics.Algorithm{NSGA2} for ackley"=> [3.5426389168269847, 6.192082150329497], + "Metaheuristics.Algorithm{NSGA3} for ackley"=> [2.600939673226922, 6.418843253009765], + "Metaheuristics.Algorithm{SPEA2} for ackley"=> [3.969736656218448, 4.704118905245824], + "Metaheuristics.Algorithm{CCMO{NSGA2}} for ackley"=> [1.1057418927099407, 5.822357866887147], + "Metaheuristics.Algorithm{MOEAD_DE} for ackley"=> [3.014117404434334, 5.189544505776976], + "Metaheuristics.Algorithm{SMS_EMOA} for ackley"=> [2.4105461048882373, 5.915339334024861], + "Metaheuristics.Algorithm{NSGA2} for dtlz2"=> [0.02392674091616439, 0.009783549539645912], + "Metaheuristics.Algorithm{NSGA3} for dtlz2"=> [0.003629941363507031, 0.011059594788256341], + "Metaheuristics.Algorithm{SPEA2} for dtlz2"=> [0.00023267753741465326, 0.08058561661765253], + "Metaheuristics.Algorithm{CCMO{NSGA2}} for dtlz2"=> [1.1057418927099407, 5.822357866887147], + "Metaheuristics.Algorithm{MOEAD_DE} for dtlz2"=> [0.03199207429508088, 0.0012836221622943944], + "Metaheuristics.Algorithm{SMS_EMOA} for dtlz2"=> [0.13316508540906347, 0.0008924220223277544], + "Metaheuristics.Algorithm{NSGA2} for schaffer_n2"=> [2.171298522190922, 0.27716785218921663], + "Metaheuristics.Algorithm{NSGA3} for schaffer_n2"=> [0.0403717729174977, 3.2366626422738527], + "Metaheuristics.Algorithm{SPEA2} for schaffer_n2"=> [2.5115325783832896, 0.17240635672366453], "Metaheuristics.Algorithm{CCMO{NSGA2}} for schaffer_n2"=> [0.0, 800.0], - "Metaheuristics.Algorithm{MOEAD_DE} for schaffer_n2"=> [0.0017365039124724727, 3.8350509838468123], - "Metaheuristics.Algorithm{SMS_EMOA} for schaffer_n2"=> [0.7559493982502018, 1.278135376195079], + "Metaheuristics.Algorithm{MOEAD_DE} for schaffer_n2"=> [0.019151313090508694, 3.4655982357364583], + "Metaheuristics.Algorithm{SMS_EMOA} for schaffer_n2"=> [0.06964400287148177, 3.0140379940103594], ) # Define the testset @testset "Multi-Objective Optimization with Various Functions and Metaheuristics" begin