Skip to main content

Python implementation of DECMO algorithms inside the JMetalPy framework

Project description

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

Project details


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)

Uploaded Source

Built Distribution

decmopy-1.0.0-py3-none-any.whl (13.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page