Python implementation of DECMO algorithms inside the JMetalPy 1.5.5 framework.
pip install decmopy
from jmetal.problem import ZDT1
from decmopy import DECMO_FLOAT
def main():
problem = ZDT1()
algorithm = DECMO_FLOAT(problem, max_iterations=250)
result = algorithm.run()
print(f"Algorithm: ${algorithm.get_name()}")
print(f"Problem: ${problem.get_name()}")
print(f"Final non-dominted solution set size: ${len(result)}")
if __name__ == "__main__":
main()
from jmetal.problem import ZDT1
from decmopy import DECMO2
def main():
problem = ZDT1()
algorithm = DECMO2(problem, max_iterations=250)
result = algorithm.run()
print(f"Algorithm: ${algorithm.get_name()}")
print(f"Problem: ${problem.get_name()}")
print(f"Final non-dominted solution set size: ${len(result)}")
if __name__ == "__main__":
main()