Skip to main content

Python implementation of the Method of Moving Asymptotes (MMA).

Project description

GCMMA-MMA-Python

This repository contains the Python code of the Method of Moving Asymptotes (Svanberg, 1987), originally developed and written in MATLAB by Krister Svanberg. The original MATLAB code was taken from http://www.smoptit.se/ under the GNU General Public License.

If you opt to use this code, Krister Svanberg would appreciate it if you could send him an email sharing your application and intentions (the email address can be found on his website). When work is published, the authors must cite Krister Svanberg's academic work. The references can be found below.

An example application of the code in topology optimization can be found here.

Installation and usage

The mmapy package is available on PyPi. To install it, use the following command:

pip install mmapy

After installation, you can import the package in your Python script with:

import mmapy

Cite

This repository is linked to Zenodo. To ensure accurate citation of this project and facilitate traceability in case of bugs or issues, please refer to the specific version used, including the DOI from Zenodo. You can find the corresponding DOI on the Zenodo page. Additionally, cite the original work by Krister Svanberg. The relevant references are provided below.

References

  • Svanberg, K. (1987). The Method of Moving Asymptotes – A new method for structural optimization. International Journal for Numerical Methods in Engineering 24, 359-373. doi:10.1002/nme.1620240207
  • Svanberg, K. (n.d.). MMA and GCMMA – two methods for nonlinear optimization. Retrieved August 3, 2017 from
    https://people.kth.se/~krille/mmagcmma.pdf

License

Original work written in MATLAB: Copyright (c) 2006-2009 Krister Svanberg
Derived Python implementation: Copyright (c) 2020-2024 Arjen Deetman

GCMMA-MMA-Python is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License (file LICENSE) along with this file. If not, see http://www.gnu.org/licenses/.

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

mmapy-0.3.1.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

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

mmapy-0.3.1-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file mmapy-0.3.1.tar.gz.

File metadata

  • Download URL: mmapy-0.3.1.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for mmapy-0.3.1.tar.gz
Algorithm Hash digest
SHA256 185a7c395d6dff741e1283dca07ed417bd0cfc59975fd02ba22d8a14d3c5306a
MD5 fc5d2441a49c260ba380467bf56c1eb1
BLAKE2b-256 9e0d6092211453cfffa302e271b774f5d69a182c9ccd38b75a6c9ba9b23e9fcb

See more details on using hashes here.

File details

Details for the file mmapy-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: mmapy-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for mmapy-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44703a59e06d8c5fbc64913812f1e2df22b43dd1a5a2fe29588c625c17d49d46
MD5 0293238e7cbdfebdf6c3047ef9e270d4
BLAKE2b-256 eba7949b8fad0a1e76002748ed2b50dfd87f5d6f0f97a204f957df534c3dd954

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