Skip to content

Files

Latest commit

 

History

History
46 lines (35 loc) · 1016 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 1016 Bytes

DECMOPY

License: MIT

Python implementation of DECMO algorithms inside the JMetalPy 1.5.5 framework.

Installation

pip install decmopy

DECMO

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()

DECMO2

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()