No project description provided
Project description
# Reinforcement Learning based Shape Optimization
This repository holds a Library/Framework written by Clemens Fricke for Reinforcement Learning based Shape Optimization. Please look into the Documentation for information on how it works. The instruction on how the documentation can be built is given below as well as the instruction on how the package can be installed. It is currently not available from pip, this might come in the future.
Documentation generation
Install and usage instructions are provided in the documentation of the project. The documentation can be built with the use of sphinx which is a python tool to generate documentation. > The sphinx packages can either be installed in the project python environment or in a separate environment. If it does not matter in which python environment sphinx is installed ignore the first two lines.
The following command line calls create a conda environment with all necessary dependencies for building the documentation. ` console (base) $ conda create -n sphinx python=3.9 (base) $ conda activate sphinx (sphinx) $ pip install sphinx sphinx-rtd-theme `
The documentation is built by executing the following command inside the folder docs/. After executing the command the documentation should be available inside the folder [docs/build/html/](docs/build/html)
` console (sphinx) $ make html `
Installation
This section covers the installation process of the framework and its prerequisites. The first thing to note is that with version 0.1.0 the strict dependency on splinepy is not present anymore. But if the geometry is to be parameterized by a Spline and the method of Free Form Deformation is to be used to deform a mesh, splinepy is necessary.
Prerequisites
- To use ReLeSO the following packages have to be installed:
pydantic<2
stable-baselines3
tensorboard
hjson
> The pydantic package currently needs to be on version 1.*, we welcome anyone wanting to update releso to the new pydantic version.
The packages can be installed via pip or conda with the following commands:
pip (activation of the venv should be done beforehand)
` console (.venv) $ pip install pydantic stable-baselines3 tensorboard hjson `
conda
` console (base) $ conda create -n releso python=3.9 "pydantic<2" tensorboard (base) $ conda activate releso (releso) $ pip install stable-baselines3 hjson ` > The quotation marks are necessary for some command lines like zsh. But from testing, bash is also ok if you use them even though they are not necessary.
If the spline-based shape optimization functionality is needed, the package splinepy is needed. Please visit [splinepy on github](https://github.com/tataratat/splinepy) for installation instructions.
Development
To develop the framework further the sphinx package should also be installed with the currently used sphinx html theme sphinx_rtd_theme. This can be done via:
` console (releso) $ pip install sphinx sphinx_rtd_theme `
Framework
After installing all prerequisites the framework itself can be installed by running the command below in the main repository folder.
Non-development
`console (releso) $ pip install . `
Development
` console (releso) $ pip install -e . `
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file releso-0.1.0.tar.gz
.
File metadata
- Download URL: releso-0.1.0.tar.gz
- Upload date:
- Size: 94.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3725a881ad011aebe7bbff34cda83826ff48f493f26f45dfc5282824997c3c54 |
|
MD5 | 90c2f111033320b71072e4e0039ebf50 |
|
BLAKE2b-256 | 3a56672c00fe084bf0f60f6e0f5fc89a96bd4d7726f6f1fc82337561f4d5ea3f |
File details
Details for the file releso-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: releso-0.1.0-py3-none-any.whl
- Upload date:
- Size: 81.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a07e607f12539dc9fb93217b34b42ab87fe7b04d71b727662329e802d808cd |
|
MD5 | 245f006f08a3b207da346caff0215077 |
|
BLAKE2b-256 | ed369eb839781deed76ca8ae7128eb9f1c569e609dfcdf1336f41621f53c5568 |