{ "info": { "author": "Abhijit Theophilus, Dr. Snehanshu Saha, Suryoday Basak", "author_email": "abhijit.theo@gmail.com, snehanshusaha@gmail.com, suryodaybasak@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Mathematics" ], "description": "===============================================================================\nPSOPy\n===============================================================================\n\n A python implementation of Particle Swarm Optimization.\n\n-------------------------------------------------------------------------------\nIntroduction\n-------------------------------------------------------------------------------\n\nPSOPy (pronounced \"Soapy\") is a SciPy compatible super fast Python\nimplementation for Particle Swarm Optimization. The codes are tested for\nstandard optimization test functions (both constrained and unconstrained).\n\nThe library provides two implementations, one that mimics the interface to\n``scipy.optimize.minimize`` and one that directly runs PSO. The SciPy\ncompatible function is a wrapper over the direct implementation, and therefore\nmay be slower in execution time, as the constraint and fitness functions are\nwrapped.\n\n-------------------------------------------------------------------------------\nInstallation\n-------------------------------------------------------------------------------\n\nGitHub\n======\n\nTo install this library from GitHub,\n\n.. code-block:: bash\n\n $ git clone https://github.com/jerrytheo/psopy.git\n $ cd psopy\n $ python setup.py install\n\nIn order to run the tests,\n\n.. code-block:: bash\n\n $ python setup.py test\n\nPyPI\n====\n\nThis library is available on the PyPI as psopy. If you have pip installed run,\n\n.. code-block:: bash\n\n $ pip install psopy\n\n-------------------------------------------------------------------------------\nExamples\n-------------------------------------------------------------------------------\n\nUnconstrained Optimization\n==========================\n\nConsider the problem of minimizing the Rosenbrock function, implemented as\n``scipy.optimize.rosen`` using a swarm of 1000 particles.\n\n>>> import numpy as np\n>>> from psopy import minimize_pso\n>>> from scipy.optimize import rosen\n>>> x0 = np.random.uniform(0, 2, (1000, 5))\n>>> res = minimize_pso(rosen, x0, options={'stable_iter': 50})\n>>> res.x\narray([1.00000003, 1.00000017, 1.00000034, 1.0000006 , 1.00000135])\n\nConstrained Optimization\n========================\n\nNext, we consider a minimization problem with several constraints. The intial\npositions for constrained optimization must adhere to the constraints imposed\nby the problem. This can be ensured using the provided function\n``psopy.init_feasible``. Note, there are several caveats regarding the use of\nthis function. Consult its documentation for more information.\n\n>>> # The objective function.\n>>> fun = lambda x: (x[0] - 1)**2 + (x[1] - 2.5)**2\n>>> # The constraints.\n>>> cons = ({'type': 'ineq', 'fun': lambda x: x[0] - 2 * x[1] + 2},\n... {'type': 'ineq', 'fun': lambda x: -x[0] - 2 * x[1] + 6},\n... {'type': 'ineq', 'fun': lambda x: -x[0] + 2 * x[1] + 2},\n... {'type': 'ineq', 'fun': lambda x: x[0]},\n... {'type': 'ineq', 'fun': lambda x: x[1]})\n>>> from psopy import init_feasible\n>>> x0 = init_feasible(cons, low=0., high=2., shape=(1000, 2))\n>>> res = minimize_pso(fun, x0, constrainsts=cons, options={\n... 'g_rate': 1., 'l_rate': 1., 'max_velocity': 4., 'stable_iter': 50})\n>>> res.x\narray([ 1.39985398, 1.69992748])\n\n-------------------------------------------------------------------------------\nAuthors\n-------------------------------------------------------------------------------\n\n- Abhijit Theophilus (abhijit.theo@gmail.com)\n- Dr\\. Snehanshu Saha (snehanshusaha@pes.edu)\n- Suryoday Basak (suryodaybasak@gmail.com)\n\n-------------------------------------------------------------------------------\nLicense\n-------------------------------------------------------------------------------\n\n| Licensed under the BSD 3-Clause License.\n| Copyright 2018 Abhijit Theophilus, Snehanshu Saha, Suryoday Basak\n\n-------------------------------------------------------------------------------\nReferences\n-------------------------------------------------------------------------------\n.. [1] Theophilus, A., Saha, S., Basak, S. and Murthy, J., 2018. A Novel\n Exoplanetary Habitability Score via Particle Swarm Optimization of CES\n Production Functions. arXiv preprint arXiv:1805.08858.\n.. [2] Ray, T. and Liew, K.M., 2001. A swarm with an effective information\n sharing mechanism for unconstrained and constrained single objective\n optimisation problems. In Evolutionary Computation, 2001. Proceedings of\n the 2001 Congress on (Vol. 1, pp. 75-80). IEEE.\n.. [3] Eberhart, R. and Kennedy, J., 1995, October. A new optimizer using\n particle swarm theory. In Micro Machine and Human Science, 1995. MHS'95.,\n Proceedings of the Sixth International Symposium on (pp. 39-43). IEEE.\n.. [4] Shi, Y. and Eberhart, R., 1998, May. A modified particle swarm\n optimizer. In Evolutionary Computation Proceedings, 1998. IEEE World\n Congress on Computational Intelligence., The 1998 IEEE International\n Conference on (pp. 69-73). IEEE.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jerrytheo/psopy", "keywords": "optimization-algorithms,particle-swarm-optimization,constrained-optimization", "license": "", "maintainer": "", "maintainer_email": "", "name": "psopy", "package_url": "https://pypi.org/project/psopy/", "platform": "", "project_url": "https://pypi.org/project/psopy/", "project_urls": { "Homepage": "https://github.com/jerrytheo/psopy" }, "release_url": "https://pypi.org/project/psopy/0.2.3/", "requires_dist": [ "scipy", "numpy" ], "requires_python": "", "summary": "A SciPy compatible super fast Python implementation for Particle Swarm Optimization.", "version": "0.2.3" }, "last_serial": 4887786, "releases": { "0.1.1b1": [ { "comment_text": "", "digests": { "md5": "16395a62c24cebf835a1bdbac8f668e6", "sha256": "eb8268e5e3e6ab0dbfeac8385dafd83d4fa4bfa6c866fa2ab73dd1b1b9e1f9a5" }, "downloads": -1, "filename": "psopy-0.1.1b1-py3-none-any.whl", "has_sig": false, "md5_digest": "16395a62c24cebf835a1bdbac8f668e6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15344, "upload_time": "2018-05-22T19:10:40", "url": "https://files.pythonhosted.org/packages/d4/1d/4445ee5b5d5cdb79e68cc6e2dd6f1d894d5141b20f4b1e421a4f023f8fab/psopy-0.1.1b1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b5df27afec01b33dfbcab48eb6ca8c33", "sha256": "6a19af0f3f7abe143cafc827c64c1afb47f38f7ca39ffc6910afcf979d2f58ef" }, "downloads": -1, "filename": "psopy-0.1.1b1.tar.gz", "has_sig": false, "md5_digest": "b5df27afec01b33dfbcab48eb6ca8c33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12602, "upload_time": "2018-05-22T19:10:41", "url": "https://files.pythonhosted.org/packages/4d/1f/3fb37288a98cec1bccf2b707fdf16812b9983f7671063e556ff0bcce9fd1/psopy-0.1.1b1.tar.gz" } ], "0.1.1b2": [ { "comment_text": "", "digests": { "md5": "8532cc1e53f0d6d678f96e863badbf31", "sha256": "e3778af28ba3a7c1b68a47c2d33e516c656087b0e9fc329cdd6ce50f006de00f" }, "downloads": -1, "filename": "psopy-0.1.1b2-py3-none-any.whl", "has_sig": false, "md5_digest": "8532cc1e53f0d6d678f96e863badbf31", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15394, "upload_time": "2018-05-23T04:29:45", "url": "https://files.pythonhosted.org/packages/51/85/cd6def5bf74ff6931656a5264953bb0bd7fd48af4d7500101cbc3691700c/psopy-0.1.1b2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8c68ef1fe1893c90aa3cc9efc0282bd2", "sha256": "388b629339c43b1180bd984e967165e6b941ecb130c7f811bc0e6c3dc68d8609" }, "downloads": -1, "filename": "psopy-0.1.1b2.tar.gz", "has_sig": false, "md5_digest": "8c68ef1fe1893c90aa3cc9efc0282bd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12663, "upload_time": "2018-05-23T04:29:48", "url": "https://files.pythonhosted.org/packages/d8/7b/c6567f354f79a937938a9c846114b238a4af58fb3181f32b0ccb1ae76c77/psopy-0.1.1b2.tar.gz" } ], "0.1.1b3": [ { "comment_text": "", "digests": { "md5": "152fefcb65353bf118448df7f6934558", "sha256": "ae6c11cfc146b427fcd3ef28a4300a9483935bedd6a14c091bcf85faf3517501" }, "downloads": -1, "filename": "psopy-0.1.1b3-py3-none-any.whl", "has_sig": false, "md5_digest": "152fefcb65353bf118448df7f6934558", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15374, "upload_time": "2018-05-26T13:30:08", "url": "https://files.pythonhosted.org/packages/29/91/36c76e21d3363a525901c2d4d95fa74e000b053fe28175453710684c5a41/psopy-0.1.1b3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3ea8b475b55d276c0d2f9f43c8722a6", "sha256": "87843fef13c6c83f0a0277b483e221865aea1c93ce36373e177b60075d7afbe0" }, "downloads": -1, "filename": "psopy-0.1.1b3.tar.gz", "has_sig": false, "md5_digest": "e3ea8b475b55d276c0d2f9f43c8722a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12555, "upload_time": "2018-05-26T13:30:10", "url": "https://files.pythonhosted.org/packages/92/be/e2e89069ec05373e2f454e85dd8c0432614adcc57bffc0fcfa859009c63a/psopy-0.1.1b3.tar.gz" } ], "0.1.1b4": [ { "comment_text": "", "digests": { "md5": "45cd18e46f930f593249383bf81afe5e", "sha256": "65d993ae5bbd77fc6846848159ba477f309201fa3955cf4ec33a0ad46c92aa66" }, "downloads": -1, "filename": "psopy-0.1.1b4-py3-none-any.whl", "has_sig": false, "md5_digest": "45cd18e46f930f593249383bf81afe5e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15309, "upload_time": "2018-05-29T16:26:14", "url": "https://files.pythonhosted.org/packages/d0/c5/23303ad19ca72f9d73935efbf8d35217bf323c4e1aef2f7c62a50e50f794/psopy-0.1.1b4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c85880d84836b0b9c710f0bd9eda6ea6", "sha256": "c7577c67780b98b0f8d51396ef197e1d20f7228e774eaf77a1a3c9f9f581a1de" }, "downloads": -1, "filename": "psopy-0.1.1b4.tar.gz", "has_sig": false, "md5_digest": "c85880d84836b0b9c710f0bd9eda6ea6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12741, "upload_time": "2018-05-29T16:26:16", "url": "https://files.pythonhosted.org/packages/69/ad/6ebcee4c8fa295fcfffa106dd632ee7528d5cd2e633c226b8cb6d1d5594f/psopy-0.1.1b4.tar.gz" } ], "0.1.2b1": [ { "comment_text": "", "digests": { "md5": "498b5dcbeab435963e2d79435bec119a", "sha256": "dc2fda631f5d8652e0121958f1e35ec7d4e620c03140d999eacc71dc33124608" }, "downloads": -1, "filename": "psopy-0.1.2b1-py3-none-any.whl", "has_sig": false, "md5_digest": "498b5dcbeab435963e2d79435bec119a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15323, "upload_time": "2018-06-16T07:36:35", "url": "https://files.pythonhosted.org/packages/d7/ee/60a40c21cda791c629ce0fc30e28a5eee5e6d11678a939b886f6704fffd8/psopy-0.1.2b1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "25cd996cc689d46852eae1dab304a793", "sha256": "93424da8b013e8c04d445d67b799c3f2f703cab7ddfd850cb925593ab5624166" }, "downloads": -1, "filename": "psopy-0.1.2b1.tar.gz", "has_sig": false, "md5_digest": "25cd996cc689d46852eae1dab304a793", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12747, "upload_time": "2018-06-16T07:36:36", "url": "https://files.pythonhosted.org/packages/8f/35/8c991155ad974662ddd0a9261960e77a41b2b8699788e02ad24b4e8445fe/psopy-0.1.2b1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "2f8f2115f332ef2b34d099cf8f9a84fd", "sha256": "7244521d1b193d57208bbaf07774d8ed3d8cce8dfa5bdcf000e9a213810630f3" }, "downloads": -1, "filename": "psopy-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2f8f2115f332ef2b34d099cf8f9a84fd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14004, "upload_time": "2018-07-06T09:35:18", "url": "https://files.pythonhosted.org/packages/c4/33/268ff98320884be7379e5cf616df1242c338f54e67addadbad6185ffd2bd/psopy-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "91b032d5e81a29cd31a8125e25ce9906", "sha256": "c21f8ecdd0435034cadfaf861fe42e9b78d7c1e42992038c87df816bcb9a6878" }, "downloads": -1, "filename": "psopy-0.2.2.tar.gz", "has_sig": false, "md5_digest": "91b032d5e81a29cd31a8125e25ce9906", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13913, "upload_time": "2018-07-06T09:35:19", "url": "https://files.pythonhosted.org/packages/99/d6/1832cbed0e5a88c20bcb4a6061e45ec672ffd90a1ba337480ca8854db717/psopy-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "750875d7061a5055aaec92ab989b466e", "sha256": "30a2e6c912de2e0c90a1ea05a84800f6c318fa59598c40c17fa88c5828635991" }, "downloads": -1, "filename": "psopy-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "750875d7061a5055aaec92ab989b466e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15001, "upload_time": "2019-03-02T07:16:07", "url": "https://files.pythonhosted.org/packages/82/46/9e9ee1c4605c05711d3e8d3dca4e999f0d2f8fab41982e9051b3f1db125d/psopy-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0dfbc95bfa6ffa59bf3c0ea96a804c34", "sha256": "2ff85d5774262d6c967f3f4987959245864faf0ba34969ddbf3b5a2b051cf688" }, "downloads": -1, "filename": "psopy-0.2.3.tar.gz", "has_sig": false, "md5_digest": "0dfbc95bfa6ffa59bf3c0ea96a804c34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13958, "upload_time": "2019-03-02T07:16:09", "url": "https://files.pythonhosted.org/packages/eb/9b/36dbb849de0692332c6fa98739fc3b6fda9de7a58a5b53b0a5ba77f88154/psopy-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "750875d7061a5055aaec92ab989b466e", "sha256": "30a2e6c912de2e0c90a1ea05a84800f6c318fa59598c40c17fa88c5828635991" }, "downloads": -1, "filename": "psopy-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "750875d7061a5055aaec92ab989b466e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15001, "upload_time": "2019-03-02T07:16:07", "url": "https://files.pythonhosted.org/packages/82/46/9e9ee1c4605c05711d3e8d3dca4e999f0d2f8fab41982e9051b3f1db125d/psopy-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0dfbc95bfa6ffa59bf3c0ea96a804c34", "sha256": "2ff85d5774262d6c967f3f4987959245864faf0ba34969ddbf3b5a2b051cf688" }, "downloads": -1, "filename": "psopy-0.2.3.tar.gz", "has_sig": false, "md5_digest": "0dfbc95bfa6ffa59bf3c0ea96a804c34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13958, "upload_time": "2019-03-02T07:16:09", "url": "https://files.pythonhosted.org/packages/eb/9b/36dbb849de0692332c6fa98739fc3b6fda9de7a58a5b53b0a5ba77f88154/psopy-0.2.3.tar.gz" } ] }