Dynamic GDE3

Example

[ ]:
from jmetal.algorithm.multiobjective.gde3 import DynamicGDE3
from jmetal.problem.multiobjective.fda import FDA2
from jmetal.util.observable import TimeCounter
from jmetal.util.observer import PlotFrontToFileObserver, WriteFrontToFileObserver
from jmetal.util.termination_criterion import StoppingByEvaluations

problem = FDA2()

time_counter = TimeCounter(delay=1)
time_counter.observable.register(problem)
time_counter.start()

algorithm = DynamicGDE3(
    problem=problem,
    population_size=100,
    cr=0.5,
    f=0.5,
    termination_criterion=StoppingByEvaluations(max=500)
)

algorithm.observable.register(observer=PlotFrontToFileObserver('front_plot'))
algorithm.observable.register(observer=WriteFrontToFileObserver('front_files'))

algorithm.run()

API

class jmetal.algorithm.multiobjective.gde3.DynamicGDE3(problem: ~jmetal.core.problem.DynamicProblem, population_size: int, cr: float, f: float, termination_criterion: ~jmetal.util.termination_criterion.TerminationCriterion, k: float = 0.5, population_generator: ~jmetal.util.generator.Generator = <jmetal.util.generator.RandomGenerator object>, population_evaluator: ~jmetal.util.evaluator.Evaluator = <jmetal.util.evaluator.SequentialEvaluator object>, dominance_comparator: ~jmetal.util.comparator.Comparator = <jmetal.util.comparator.DominanceComparator object>)[source]

Bases: GDE3, DynamicAlgorithm

restart() None[source]
stopping_condition_is_met()[source]

The stopping condition is met or not.

update_progress()[source]

Update the progress after each iteration.