Skip to content

Python implementation of DECMO algorithms inside the jMetalPy framework

License

Notifications You must be signed in to change notification settings

xetxezarreta/decmopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python implementation of DECMO algorithms inside the jMetalPy framework

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages