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.
(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/
(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 updatereleso
to the newpydantic
version.
The packages can be installed via pip or conda with the following commands:
pip (activation of the venv should be done beforehand)
(.venv) $ pip install pydantic stable-baselines3 tensorboard hjson
conda
(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 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:
(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
(releso) $ pip install .
Development
(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.1.tar.gz
.
File metadata
- Download URL: releso-0.1.1.tar.gz
- Upload date:
- Size: 95.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a235f5235071eeaa13f4f047c260b26bca7b15ccdc11a8765c37cc8c40e82c18 |
|
MD5 | 38435d0f0591da398a631701aaa57cce |
|
BLAKE2b-256 | 5d010fb0ad8975ecd023bcdd5be7cbb9b0101d5c9436cc6327ad0aea3d890877 |
File details
Details for the file releso-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: releso-0.1.1-py3-none-any.whl
- Upload date:
- Size: 81.8 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 | eac1ca4138419171795a3d5ab9cfaee1f222f34caee4cb118e09f3328b4fbbb7 |
|
MD5 | 7e9b4248e0ba7fc14f6ec51d628315f7 |
|
BLAKE2b-256 | 22e3f482642c4d0a6d6a571a201dc3654fec32623d3f09fff187cba29e83cc5b |