IWOPY
IWOPY: Fraunhofer IWES optimization tools in Python - Published in JOSS (2024)
Science Score: 100.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 9 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
1 of 2 committers (50.0%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Repository
Fraunhofer IWES optimization tools in Python
Basic Info
- Host: GitHub
- Owner: FraunhoferIWES
- License: mit
- Language: Python
- Default Branch: main
- Size: 475 KB
Statistics
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 21
Metadata Files
README.md
iwopy
Fraunhofer IWES optimization tools in Python
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
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
Source code: https://github.com/FraunhoferIWES/iwopy
PyPi reference: https://pypi.org/project/iwopy/
Anaconda reference: https://anaconda.org/conda-forge/iwopy
Citation
Please cite the JOSS paper IWOPY: Fraunhofer IWES optimization tools in Python
Bibtex:
@article{Schulte2024,
doi = {10.21105/joss.06014},
url = {https://doi.org/10.21105/joss.06014},
year = {2024},
publisher = {The Open Journal},
volume = {9},
number = {102},
pages = {6014},
author = {Jonas Schulte},
title = {IWOPY: Fraunhofer IWES optimization tools in Python},
journal = {Journal of Open Source Software}
}
Requirements
The supported Python versions are:
Python 3.7Python 3.8Python 3.9Python 3.10Python 3.11Python 3.12
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 by
console
pip install iwopy
This in general corresponds to the main branch at github. 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
Notice that the above default installation does not install the third-party optimization
packages. iwopy will tell you in an error message that it is missing a package, with
a hint of installation advice. You can avoid this step by installing all supported
optimzer packages by installing those optoinal packages by addig [opt]:
console
pip install iwopy[opt]
or
console
pip install git+https://github.com/FraunhoferIWES/iwopy@dev#egg=iwopy[opt]
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 .
Notice that the above default installation does not install the third-party optimization
packages. iwopy will tell you in an error message that it is missing a package, with
a hint of installation advice. You can avoid this step by installing all supported
optimzer packages by installing those optoinal packages by addig [opt]:
console
pip install -e .[opt]
Installation via conda
Preparation (optional)
It is strongly recommend to use the libmamba dependency solver instead of the default solver. Install it once by
console
conda install conda-libmamba-solver -n base -c conda-forge
We recommend that you set this to be your default solver, by
console
conda config --set solver libmamba
Standard users
The iwopy package is available on the channel conda-forge. You can install the latest version by
console
conda install -c conda-forge iwopy
Developers
For developers using conda, we recommend first installing iwopy as described above, then removing only the iwopy package while keeping the dependencies, and then adding iwopy again from a git using conda develop:
console
conda install iwopy conda-build -c conda-forge
conda remove iwopy --force
git clone https://github.com/FraunhoferIWES/iwopy.git
cd iwopy
conda develop .
Concerning the git clone line, we actually recommend that you fork iwopy on GitHub and then replace that command by cloning your fork instead.
Testing
For testing, please clone the repository and install the required dependencies
(flake8, pytest, pygmo, pymoo):
console
git clone https://github.com/FraunhoferIWES/iwopy.git
cd iwopy
pip install .[test]
If you are a developer you might want to replace the last line by
console
pip install -e .[test]
for dynamic installation from the local code base.
The tests are then run by
console
pytest tests
Contributing
Please feel invited to contribute to iwopy! Here is how:
- Fork iwopy on github.
- Create a branch (
git checkout -b new_branch) - Commit your changes (
git commit -am "your awesome message") - Push to the branch (
git push origin new_branch) - Create a pull request here
Support
For trouble shooting and support, please - raise an issue here, - or start a discussion here, - or contact the contributers.
Thanks for your help with improving iwopy!
Owner
- Name: FraunhoferIWES
- Login: FraunhoferIWES
- Kind: organization
- Repositories: 4
- Profile: https://github.com/FraunhoferIWES
JOSS Publication
IWOPY: Fraunhofer IWES optimization tools in Python
Tags
OptimizationCitation (CITATION.cff)
cff-version: "1.2.0"
authors:
- family-names: Schulte
given-names: Jonas
orcid: "https://orcid.org/0000-0002-8191-8141"
doi: 10.21105/joss.06014
message: If you use this software, please cite our article in the
Journal of Open Source Software.
preferred-citation:
authors:
- family-names: Schulte
given-names: Jonas
orcid: "https://orcid.org/0000-0002-8191-8141"
date-published: 2024-10-09
doi: 10.21105/joss.06014
issue: 102
journal: Journal of Open Source Software
publisher:
name: Open Journals
start: 6014
title: "IWOPY: Fraunhofer IWES optimization tools in Python"
type: article
url: "https://doi.org/10.21105/joss.06014"
volume: 9
title: "IWOPY: Fraunhofer IWES optimization tools in Python"
GitHub Events
Total
- Release event: 1
- Watch event: 1
- Push event: 14
- Create event: 1
Last Year
- Release event: 1
- Watch event: 1
- Push event: 14
- Create event: 1
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Jonas Schmidt | j****t@i****e | 170 |
| Jonas Schmidt | j****t@p****e | 75 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 4
- Total pull requests: 5
- Average time to close issues: 3 months
- Average time to close pull requests: 4 minutes
- Total issue authors: 3
- Total pull request authors: 2
- Average comments per issue: 4.25
- Average comments per pull request: 0.0
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 3 minutes
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- BenWinchester (2)
- SchmJo (1)
- DManowitz (1)
Pull Request Authors
- SchmJo (4)
- crvernon (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 195 last-month
- Total dependent packages: 1
- Total dependent repositories: 1
- Total versions: 23
- Total maintainers: 1
pypi.org: iwopy
Fraunhofer IWES optimization tools in Python
- Homepage: https://github.com/FraunhoferIWES/iwopy
- Documentation: https://fraunhoferiwes.github.io/iwopy.docs/index.html
- License: MIT License Copyright (c) 2022 FraunhoferIWES Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Latest release: 0.3.1
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v3 composite
