DF: Benchmark Problems for CEC2018 Competition on Dynamic Multiobjective Optimisation

The problem suite is implemented based on [48].

DF1

[1]:
import numpy as np

from pymoo.problems.dynamic.df import DF1
from pymoo.visualization.scatter import Scatter

plot = Scatter()

for t in np.linspace(0, 10.0, 100):
    problem = DF1(time=t)
    plot.add(problem.pareto_front(), plot_type="line", color="black", alpha=0.7)

plot.show()
[1]:
<pymoo.visualization.scatter.Scatter at 0x1055d5400>
../../_images/problems_dynamic_df_5_1.png

DF2

[2]:
from pymoo.problems.dynamic.df import DF2

plot = Scatter()

for t in np.linspace(0, 10.0, 100):
    problem = DF2(time=t)
    plot.add(problem.pareto_front(), plot_type="line", color="black", alpha=0.7)

plot.show()
[2]:
<pymoo.visualization.scatter.Scatter at 0x1191209e0>
../../_images/problems_dynamic_df_8_1.png

DF3

[3]:
from pymoo.problems.dynamic.df import DF3

plot = Scatter()

for t in np.linspace(0, 10.0, 100):
    problem = DF3(time=t)
    plot.add(problem.pareto_front(), plot_type="line", color="black", alpha=0.7)

plot.show()
[3]:
<pymoo.visualization.scatter.Scatter at 0x1192f24e0>
../../_images/problems_dynamic_df_11_1.png

DF4

[4]:
from pymoo.problems.dynamic.df import DF4

plot = Scatter()

for t in np.linspace(0, 10.0, 100):
    problem = DF4(time=t)
    plot.add(problem.pareto_front() + 2*t, plot_type="line", color="black", alpha=0.7)

plot.show()
[4]:
<pymoo.visualization.scatter.Scatter at 0x1193ef2f0>
../../_images/problems_dynamic_df_14_1.png

DF5

[5]:
from pymoo.problems.dynamic.df import DF5

plot = Scatter()

for t in np.linspace(0, 2.0, 100):
    problem = DF5(time=t)
    plot.add(problem.pareto_front(n_pareto_points=300) + 2*t, plot_type="line", color="black", alpha=0.7)

plot.show()
[5]:
<pymoo.visualization.scatter.Scatter at 0x11945e570>
../../_images/problems_dynamic_df_17_1.png

DF6

[6]:
from pymoo.problems.dynamic.df import DF6

plot = Scatter()

for t in np.linspace(0, 2.0, 100):
    problem = DF6(time=t)
    plot.add(problem.pareto_front(), plot_type="line", color="black", alpha=0.7)

plot.show()
[6]:
<pymoo.visualization.scatter.Scatter at 0x11957e870>
../../_images/problems_dynamic_df_20_1.png

DF7

[7]:
from pymoo.problems.dynamic.df import DF7

plot = Scatter()

for t in np.linspace(0, 1.0, 20):
    problem = DF7(time=t)
    plot.add(problem.pareto_front() + 2*t, plot_type="line", color="black", alpha=0.7)

plot.show()
[7]:
<pymoo.visualization.scatter.Scatter at 0x1192ce870>
../../_images/problems_dynamic_df_23_1.png

DF8

[8]:
from pymoo.problems.dynamic.df import DF8

plot = Scatter()

for t in np.linspace(0, 2.0, 20):
    problem = DF8(time=t)
    plot.add(problem.pareto_front() + 4*t, plot_type="line", color="black", alpha=0.7)

plot.show()
[8]:
<pymoo.visualization.scatter.Scatter at 0x11a029d30>
../../_images/problems_dynamic_df_26_1.png

DF9

[9]:
from pymoo.problems.dynamic.df import DF9

plot = Scatter()

for t in np.linspace(0, 2.0, 20):
    problem = DF9(time=t)
    plot.add(problem.pareto_front() + 2*t, plot_type="line", color="black", alpha=0.7)

plot.show()
[9]:
<pymoo.visualization.scatter.Scatter at 0x119647fe0>
../../_images/problems_dynamic_df_29_1.png

DF10

[10]:
from pymoo.problems.dynamic.df import DF10
import matplotlib.pyplot as plt

for t in [0.0, 1.0, 1.5, 2.0]:

    plot = Scatter()
    problem = DF10(time=t)
    plot.add(problem.pareto_front() + 2*t, plot_type="line", color="black", alpha=0.7)
    plot.do()
    plt.show()

print("DONE")
../../_images/problems_dynamic_df_31_0.png
../../_images/problems_dynamic_df_31_1.png
../../_images/problems_dynamic_df_31_2.png
../../_images/problems_dynamic_df_31_3.png
DONE

DF11

[11]:
from pymoo.problems.dynamic.df import DF11
import matplotlib.pyplot as plt

for t in [0.0, 1.0, 1.5, 2.0]:

    plot = Scatter()
    problem = DF11(time=t)
    plot.add(problem.pareto_front() + 2*t, plot_type="line", color="black", alpha=0.7)
    plot.do()
    plt.show()

print("DONE")
../../_images/problems_dynamic_df_33_0.png
../../_images/problems_dynamic_df_33_1.png
../../_images/problems_dynamic_df_33_2.png
../../_images/problems_dynamic_df_33_3.png
DONE

DF12

[12]:
from pymoo.problems.dynamic.df import DF12
import matplotlib.pyplot as plt

for t in [0.0, 0.1, 0.2]:

    plot = Scatter()
    problem = DF12(time=t)
    plot.add(problem.pareto_front() + 2*t, color="black", alpha=0.7)
    plot.do()
    plt.show()

print("DONE")
../../_images/problems_dynamic_df_35_0.png
../../_images/problems_dynamic_df_35_1.png
../../_images/problems_dynamic_df_35_2.png
DONE

DF13

[13]:
from pymoo.problems.dynamic.df import DF13
import matplotlib.pyplot as plt

for t in [0.0, 0.2, 0.3, 0.4]:

    plot = Scatter()
    problem = DF13(time=t)
    plot.add(problem.pareto_front() + 2*t, color="black", alpha=0.7)
    plot.do()
    plt.show()

print("DONE")
../../_images/problems_dynamic_df_37_0.png
../../_images/problems_dynamic_df_37_1.png
../../_images/problems_dynamic_df_37_2.png
../../_images/problems_dynamic_df_37_3.png
DONE

DF14

[14]:
from pymoo.problems.dynamic.df import DF14
import matplotlib.pyplot as plt

for t in [0.0, 0.2, 0.5, 1.0]:

    plot = Scatter()
    problem = DF13(time=t)
    plot.add(problem.pareto_front() + 2*t, color="black", alpha=0.7)
    plot.do()
    plt.show()

print("DONE")
../../_images/problems_dynamic_df_39_0.png
../../_images/problems_dynamic_df_39_1.png
../../_images/problems_dynamic_df_39_2.png
../../_images/problems_dynamic_df_39_3.png
DONE