Skip to main content

Multi-objective WAO algorithm

Project description

MOWAO

Multi-objective WAO algorithm python package.

Example

import mowao
import numpy as np
import matplotlib.pyplot as plt


def ZDT1(x, f, cb):
    f1 = x[0]
    g = 1 + 9.0 / (len(x) - 1) * sum(x[1:])
    f2 = g * (1 - pow((f1 / g), 0.5))
    f[0] = f1
    f[1] = f2


def main():
    mw = mowao.mowao()
    mw.maxiter = 100
    mw.hpop = 100
    mw.nrepo = 80
    mw.bond_radius = 0.001
    mw.push = 0.5
    mw.evaporate = 0.5
    mw.coef = 2

    mw.nobj = 2
    mw.nvar = 10
    mw.func_set(ZDT1, None)
    mw.alloc()
    for i in range(mw.nvar):
        mw.lb[i] = 0.0
        mw.ub[i] = 1.0
        mw.vlb[i] = -0.15
        mw.vub[i] = 0.15

    mw.init()
    mw.run(0)  # mw.run(1)
    show(mw)
    mw.clean()


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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mowao-0.0.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (47.6 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

mowao-0.0.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (43.9 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

mowao-0.0.1-cp313-cp313-win_amd64.whl (30.6 kB view details)

Uploaded CPython 3.13Windows x86-64

mowao-0.0.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (43.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

mowao-0.0.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (43.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file mowao-0.0.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mowao-0.0.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 403c5462948ca9223ab8d717ed9ec5493ce33a7920560bb2348ea2409a65569d
MD5 762651302d0209753d938e7da3f572d2
BLAKE2b-256 d8849ebdebe45d71ef5658565e9f95588847dc1c6805d8b0eef161fe816a51ce

See more details on using hashes here.

File details

Details for the file mowao-0.0.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mowao-0.0.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 64c715f0d7fcf689b350bb983919f86354f1d2d47dea2269bc4821439ddafdfb
MD5 9c72d8d4b10da9263bdd39948e62d0cc
BLAKE2b-256 c2b57cffea2155fff23524566cc4fc6101cf821123f6f21e7fe2a90b1394c242

See more details on using hashes here.

File details

Details for the file mowao-0.0.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: mowao-0.0.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mowao-0.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1e6d4a6ab977c3fb86e9e8fccbccc0e3c6fdf92b8fda6c9f162dd4e6d095e554
MD5 7b09f55311db9b5c7165cfb089988bb7
BLAKE2b-256 14a9b321cf65543d90109b4c9a8f5bef755988c08af1ac9b9e29b7d3d6fba611

See more details on using hashes here.

File details

Details for the file mowao-0.0.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mowao-0.0.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e531abf981f8e0cfe87fd0870da2cce8601dfff07f646f612ce63c31f3b16b76
MD5 c4bc33675a2aaf77c3b6a1800d935793
BLAKE2b-256 df4d1a1a7ce49661b5396c21f1aafcbebc937f2eb40fd14338adc5d37495aeee

See more details on using hashes here.

File details

Details for the file mowao-0.0.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mowao-0.0.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d92ad1a2c4ddc63214179847f8fe6ea03fa651a5fc4a7f1a80aea3f4457b5023
MD5 06853d1d1e5147f41f724d4ecfccc073
BLAKE2b-256 cf7ba2995a52335c916abdc7d6cf66b22a00e49690079e1955982b9aaf8dfce5

See more details on using hashes here.

Supported by

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