iwopy


Nameiwopy JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/FraunhoferIWES/iwopy
SummaryFraunhofer IWES optimization tools in Python
upload_time2024-02-08 09:49:42
maintainer
docs_urlNone
authorFraunhofer IWES
requires_python>=3.7
licenseMIT
keywords optimization interface
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # iwopy

Fraunhofer IWES optimization tools in Python

![IWOPY Logo](Logo_IWOPY_white.svg)

## Overview

The `iwopy` package is in fact a meta package that provides interfaces to other open-source Python optimization packages out there. Currently this includes

- [pymoo](https://pymoo.org/index.html)
- [pygmo](https://esa.github.io/pygmo2/index.html)
- [scipy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html)
- (more to come with future versions)

`iwopy` can thus be understood as an attempt to provide *the best of all worlds* when it comes to solving optimization problems with Python. This has not yet been achieved, since above list of accessable optimization packages is obviously incomplete, but it's a start. All the credit for implementing the invoked optimizers goes to the original package providers.

The basic idea of `iwopy` is to provide abstract base classes, that can be concretized for any kind of problem by the users, and the corresponding solver interfaces. However, also some helpful problem wrappers and an original optimizer are provided in addition:

- Problem wrapper `LocalFD`: Calculates derivatives by finite differences
- Problem wrapper `RegularDiscretizationGrid`: Puts the problem on a Grid
- Optimizer `GG`: *Greedy Gradient* optimization with constraints

All calculations support vectorized evaluation of a complete population of parameters. This is useful for heuristic approaches like genetic algorithms, but also for evaluating gradients. It can lead to a vast speed-up and should be invoked whenever possible. Check the examples (or the API) for details.

Documentation: [https://fraunhoferiwes.github.io/iwopy.docs/index.html](https://fraunhoferiwes.github.io/iwopy.docs/index.html)

Source code: [https://github.com/FraunhoferIWES/iwopy](https://github.com/FraunhoferIWES/iwopy)

PyPi reference: [https://pypi.org/project/iwopy/](https://pypi.org/project/iwopy/)

Anaconda reference: [https://anaconda.org/conda-forge/iwopy](https://anaconda.org/conda-forge/iwopy)

## Requirements

The supported Python versions are:

- `Python 3.7`
- `Python 3.8`
- `Python 3.9`
- `Python 3.10`
- `Python 3.11`

## Installation via conda

The `iwopy` package is available on the channel [conda-forge](https://anaconda.org/conda-forge/iwopy). You can install the latest version by

```console
conda install -c conda-forge iwopy
```

## Installation via pip

### Virtual Python environment

We recommend working in a Python virtual environment and install `iwopy` there. Such an environment can be created by

```console
python -m venv /path/to/my_venv
```

and afterwards be activated by

```console
source /path/to/my_venv/bin/activate
```

Note that in the above commands `/path/to/my_venv` is a placeholder that should be replaced by a path to a (non-existing) folder of your choice, for example `~/venv/iwopy`.

All subsequent installation commands via `pip` can then be executed directly within the active environment without changes. After your work with `iwopy` is done you can leave the environment by the command `deactivate`.

### Standard users

As a standard user, you can install the latest release via [pip](https://pypi.org/project/iwopy/) by

```console
pip install iwopy
```

This in general corresponds to the `main` branch at [github](https://github.com/FraunhoferIWES/iwopy). Alternatively, you can decide to install the latest pre-release developments (non-stable) by

```console
pip install git+https://github.com/FraunhoferIWES/iwopy@dev#egg=iwopy
```

### Developers

The first step as a developer is to clone the `iwopy` repository by

```console
git clone https://github.com/FraunhoferIWES/iwopy.git
```

Enter the root directory by

```console
cd iwopy
```

Then you can either install from this directory via

```console
pip install -e .
```

## Testing

For testing, please clone the repository and install the required dependencies:
```console
git clone https://github.com/FraunhoferIWES/iwopy.git
cd iwopy
pip install -e .[test]
```

The tests are then run by
```console
pytest tests
```

## Contributing

1. Fork _iwopy_ on _github_.
2. Create a branch (`git checkout -b new_branch`)
3. Commit your changes (`git commit -am "your awesome message"`)
4. Push to the branch (`git push origin new_branch`)
5. Create a pull request [here](https://github.com/FraunhoferIWES/iwopy/pulls)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/FraunhoferIWES/iwopy",
    "name": "iwopy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "Optimization,Interface",
    "author": "Fraunhofer IWES",
    "author_email": "jonas.schmidt@iwes.fraunhofer.de",
    "download_url": "https://files.pythonhosted.org/packages/48/bd/e48f5b65454f8340cfe729a1b37de2b827e2e834ffb0f72984f75980683f/iwopy-0.2.tar.gz",
    "platform": null,
    "description": "# iwopy\n\nFraunhofer IWES optimization tools in Python\n\n![IWOPY Logo](Logo_IWOPY_white.svg)\n\n## Overview\n\nThe `iwopy` package is in fact a meta package that provides interfaces to other open-source Python optimization packages out there. Currently this includes\n\n- [pymoo](https://pymoo.org/index.html)\n- [pygmo](https://esa.github.io/pygmo2/index.html)\n- [scipy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html)\n- (more to come with future versions)\n\n`iwopy` can thus be understood as an attempt to provide *the best of all worlds* when it comes to solving optimization problems with Python. This has not yet been achieved, since above list of accessable optimization packages is obviously incomplete, but it's a start. All the credit for implementing the invoked optimizers goes to the original package providers.\n\nThe basic idea of `iwopy` is to provide abstract base classes, that can be concretized for any kind of problem by the users, and the corresponding solver interfaces. However, also some helpful problem wrappers and an original optimizer are provided in addition:\n\n- Problem wrapper `LocalFD`: Calculates derivatives by finite differences\n- Problem wrapper `RegularDiscretizationGrid`: Puts the problem on a Grid\n- Optimizer `GG`: *Greedy Gradient* optimization with constraints\n\nAll calculations support vectorized evaluation of a complete population of parameters. This is useful for heuristic approaches like genetic algorithms, but also for evaluating gradients. It can lead to a vast speed-up and should be invoked whenever possible. Check the examples (or the API) for details.\n\nDocumentation: [https://fraunhoferiwes.github.io/iwopy.docs/index.html](https://fraunhoferiwes.github.io/iwopy.docs/index.html)\n\nSource code: [https://github.com/FraunhoferIWES/iwopy](https://github.com/FraunhoferIWES/iwopy)\n\nPyPi reference: [https://pypi.org/project/iwopy/](https://pypi.org/project/iwopy/)\n\nAnaconda reference: [https://anaconda.org/conda-forge/iwopy](https://anaconda.org/conda-forge/iwopy)\n\n## Requirements\n\nThe supported Python versions are:\n\n- `Python 3.7`\n- `Python 3.8`\n- `Python 3.9`\n- `Python 3.10`\n- `Python 3.11`\n\n## Installation via conda\n\nThe `iwopy` package is available on the channel [conda-forge](https://anaconda.org/conda-forge/iwopy). You can install the latest version by\n\n```console\nconda install -c conda-forge iwopy\n```\n\n## Installation via pip\n\n### Virtual Python environment\n\nWe recommend working in a Python virtual environment and install `iwopy` there. Such an environment can be created by\n\n```console\npython -m venv /path/to/my_venv\n```\n\nand afterwards be activated by\n\n```console\nsource /path/to/my_venv/bin/activate\n```\n\nNote that in the above commands `/path/to/my_venv` is a placeholder that should be replaced by a path to a (non-existing) folder of your choice, for example `~/venv/iwopy`.\n\nAll subsequent installation commands via `pip` can then be executed directly within the active environment without changes. After your work with `iwopy` is done you can leave the environment by the command `deactivate`.\n\n### Standard users\n\nAs a standard user, you can install the latest release via [pip](https://pypi.org/project/iwopy/) by\n\n```console\npip install iwopy\n```\n\nThis in general corresponds to the `main` branch at [github](https://github.com/FraunhoferIWES/iwopy). Alternatively, you can decide to install the latest pre-release developments (non-stable) by\n\n```console\npip install git+https://github.com/FraunhoferIWES/iwopy@dev#egg=iwopy\n```\n\n### Developers\n\nThe first step as a developer is to clone the `iwopy` repository by\n\n```console\ngit clone https://github.com/FraunhoferIWES/iwopy.git\n```\n\nEnter the root directory by\n\n```console\ncd iwopy\n```\n\nThen you can either install from this directory via\n\n```console\npip install -e .\n```\n\n## Testing\n\nFor testing, please clone the repository and install the required dependencies:\n```console\ngit clone https://github.com/FraunhoferIWES/iwopy.git\ncd iwopy\npip install -e .[test]\n```\n\nThe tests are then run by\n```console\npytest tests\n```\n\n## Contributing\n\n1. Fork _iwopy_ on _github_.\n2. Create a branch (`git checkout -b new_branch`)\n3. Commit your changes (`git commit -am \"your awesome message\"`)\n4. Push to the branch (`git push origin new_branch`)\n5. Create a pull request [here](https://github.com/FraunhoferIWES/iwopy/pulls)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Fraunhofer IWES optimization tools in Python",
    "version": "0.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/FraunhoferIWES/iwopy/issues",
        "Documentation": "https://fraunhoferiwes.github.io/iwopy.docs/index.html",
        "Homepage": "https://github.com/FraunhoferIWES/iwopy",
        "Source Code": "https://github.com/FraunhoferIWES/iwopy"
    },
    "split_keywords": [
        "optimization",
        "interface"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "183a18d5dc0d46ec654dd4548d2ee1fe636218e0f9f19b70acbc85acbed60893",
                "md5": "52a27dc656038c971330abebfa4bb33f",
                "sha256": "d970273dd55097016bc89d829fa8e9537217016c7f88a1c02261e2047c246deb"
            },
            "downloads": -1,
            "filename": "iwopy-0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "52a27dc656038c971330abebfa4bb33f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 66208,
            "upload_time": "2024-02-08T09:49:40",
            "upload_time_iso_8601": "2024-02-08T09:49:40.983249Z",
            "url": "https://files.pythonhosted.org/packages/18/3a/18d5dc0d46ec654dd4548d2ee1fe636218e0f9f19b70acbc85acbed60893/iwopy-0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "48bde48f5b65454f8340cfe729a1b37de2b827e2e834ffb0f72984f75980683f",
                "md5": "da43d76aaab2a87b3d9ce64fb1d0774c",
                "sha256": "9b3926a4d422ad34523de28f8a4f4a77a972f3caebc2af04548e0a0e9aa86706"
            },
            "downloads": -1,
            "filename": "iwopy-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "da43d76aaab2a87b3d9ce64fb1d0774c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 54111,
            "upload_time": "2024-02-08T09:49:42",
            "upload_time_iso_8601": "2024-02-08T09:49:42.539536Z",
            "url": "https://files.pythonhosted.org/packages/48/bd/e48f5b65454f8340cfe729a1b37de2b827e2e834ffb0f72984f75980683f/iwopy-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-08 09:49:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "FraunhoferIWES",
    "github_project": "iwopy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "iwopy"
}
        
Elapsed time: 0.18457s