Python implementation of DECMO algorithms inside the JMetalPy framework
Project description
DECMOPY
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
decmopy-1.0.0.tar.gz
(9.8 kB
view hashes)
Built Distribution
decmopy-1.0.0-py3-none-any.whl
(13.8 kB
view hashes)