Code Monkey home page Code Monkey logo

nsga2's Introduction

NSGA-II Algorithm

Forked from wreszelewski/nsga2 but mostly rewritten.

Usage

cwd: Repository base.

Windows:

set PYTHONPATH=%PYTHONPATH%;%cd% && python examples

Unix:

$ export PYTHONPATH=${PYTHONPATH};$(pwd) && python examples

Changelist

The following changes have been made to the pre-fork repository:

  1. Compatible with > 3 objective problems.
    • The original nsga2 repository was only compatible with 2-objective problems.
  2. Does not require the user to rescale
    • The original nsga2 implementation relied on the decision vectors to be [0,1] but this implementation can take customized bounds.
    • The previous implementation also required the objective space vectors to be standardized but this implementation abstracts over that.
  3. The visualizer can now visualize up to 3 dimensions(3 objectives)
  4. Removed the use of callback functions and used generators instead.
  5. NSGA2 now inherits from an ioptimizer interface which is compatible with iproblem interfaces
    • This was in order to test multiple optimizers in a generic fashion.
  6. Python3 Compatible
    • Certain uses of sorted(cmp=) made the original repository incompatible with python3 but it now runs on python3
    • Also, there is occasional use of type hinting especially around the public API

To Do

  • Write test code, since debugging this was actually quite difficult.
  • Remove the use of state and try to make the methods static methods.
  • Matplotlib hangs

nsga2's People

Contributors

kamilmielnik avatar sp4ghet avatar spaghet avatar wreszelewski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.