Science Score: 67.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 10 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (1.8%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: RagQ
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 25.4 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 6
Created over 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation Authors

README.md

BO-HBM-ex

GitHub license GitHub release GitHub stars DOI

Binder - Parametric

Description

The Python's tool BO-HBM-ex shows an example of the application of Bayesian Optimization [1] on a Duffing problem [2]. The Duffing's oscillator problem is here solved using Harmonic Balance Method and a continuation technique.


Duffing oscillator scheme.

The optimization problem can be written:


Find $(k_{nl}^*,\xi^*)$ such as

$(k_{nl}^*,\xi^*)=\underset{(k_{nl},\xi)\in\mathcal{D}}{\arg\min}\,\underset{\omega\in[\omega_l,\omega_u]}{\max} \ddot{q}_{\mathrm{RMS}}(k_{nl},\xi,\omega)$


Installation

Get the source code from this repository. The example can be run after installation of dependencies with

pip install -r requirements.txt

Usage

The Python's scripts can be run only with Python 3.

Run solver of Duffing oscillator

The file respDuffing.py provides frequencies responses for displacement and acceleration on PDF pictures for $\xi=\{0.15, 0.3, 0.5, 1.\}$ ($[\mathrm{kg}\cdot\mathrm{s}^{-1}]$) and $k_{nl}=\{0.25,0.5,0.75,...,2\}$ ($[\mathrm{N}\cdot\mathrm{m}^{-3}]$) . Pictures are stored in ParamDuffing folder.

Following pictures show $\ddot{q}_ {\mathrm{RMS}}$ for a few values of $k_ {nl}$ for $\xi=0.15\,\mathrm{kg}\cdot\mathrm{s}^{-1}$ (a), $\xi=0.3\,\mathrm{kg}\cdot\mathrm{s}^{-1}$ (b), $\xi=0.5\,\mathrm{kg}\cdot\mathrm{s}^{-1}$ (c) and $\xi=1\,\mathrm{kg}\cdot\mathrm{s}^{-1}$ (d).

(a)|(b) :---:|:---: Arms_xi15 | Arms_xi30 (c)|(d) Arms_xi50 | Arms_xi100

Animations of $q_ {\mathrm{RMS}}$ (a) and $\ddot{q}_ {\mathrm{RMS}}$ (b) of large set of values of $k_{nl}$ for $\xi=0.15\,\mathrm{kg}\cdot\mathrm{s}^{-1}$:

(a)|(b) :---:|:---: anim_Drms | anim_Arms

Run Bayesian Optimization on Duffing oscillator

The file OptiExp.py generates data of Bayesian Optimization's iterations. These data will be available on the directory ExpOptimDuffing which contains data for sample sets containing 10, 20 and 25 samples. Results are provided along BO iterations on CSV files and acquisition and objective functions are plotted in 2D and 3D.

The following pictures show the evolution of the acquisition and objective functions along BO's iterations applied on the Optimization of the Duffing Oscillator (minimization of the maximum of the acceleration along the frequency bandwidth $[0,2.5]$ ($\mathrm{rad}\cdot\mathrm{s}^{-1}$)). The initial sampling obtained with LHS contains 10 sample points.

Acquisition function | Objective function :---:|:---: anim_10_contourEI | anim_10_contourObj anim_10_surfaceEI | anim_10_surfaceObj

Versions

The code has been executed without any issues with the following versions of Python and libraries: - Python 3.10.9 - numpy 1.26.2 - matplotlib 3.8.2 - pandas 2.1.3 - torch 2.1.1 - botorch 0.9.4 - gpytorch 1.11 - pydoe 0.3.8

How to cite

This repo is relative to the PhD thesis of Quentin Ragueneau achieved at LMSSC under the supervision of Antoine Legay and Luc Laurent in collaboration with Ingeliance Technologies and founded by ANRT (Cifre 2020/0272).

Please use the following citation reference if you use the code:

Ragueneau, Q., Laurent, L. & Legay, A. (2023). BO-HBM-ex (vxxx). Zenodo. https://doi.org/10.5281/zenodo.102592910

Bibtex entry: @software{BO-HBM-ex-soft, author = {Ragueneau, Quentin and Laurent, Luc and Legay, Antoine}, title = {{BO-HBM-ex}}, month = dec, year = 2023, publisher = {Zenodo}, version = {vxxx} doi = {10.5281/zenodo.10259290}, url = {https://doi.org/10.5281/zenodo.10259290} } NB: version number and DOI must be adapted from Zenodo's repository.

License

MIT License

Copyright (c) 2023 - Quentin Ragueneau (quentin.ragueneau@ingeliance.com)

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.

References

``` [1] D. R. Jones, M. Schonlau, and W. J. Welch. Efficient Global Optimization of Expensive Black-Box Functions. Journal of Global Optimization, 13(4):455–492, Dec. 1998.

[2] B. Balaram, M. D. Narayanan, and P. K. Rajendrakumar. Optimal design of multi-parametric nonlinear systems using a parametric continuation based Genetic Algorithm approach. Nonlinear Dynamics, 67(4):2759–2777, Mar. 2012. ```

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: BO-HBM-ex
message: >-
  Bayesian Optimization apply on non-linear vibration
  problem solved with Harmonic Balance Method
type: software
doi: 10.5281/zenodo.10259290
authors:
  - given-names: Quentin
    family-names: Ragueneau
    email: quentin.ragueneau@ingeliance.com
    affiliation: 'LMSSC, Cnam, Ingeliance'
    orcid: 'https://orcid.org/0000-0002-6380-129X'
  # - name: Conservatoire national des arts et métiers
  #   address: 292 rue Saint Martin
  #   city: Paris
  #   country: FR
  #   post-code: '75003'
  #   alias: Cnam
  #   website: 'https://www.cnam.fr'
  # - name: >-
  #     Laboratoire de Mécanique des Structures et des
  #     Systèmes Couplés
  #   address: 2 rue Conté
  #   city: Paris
  #   country: FR
  #   post-code: '75003'
  #   alias: LMSSC
  #   website: 'https://www.lmssc.cnam.fr'
  # - name: Ingéliance Technologies
  #   city: Mérignac
  #   country: FR
  #   alias: INGELIANCE
  #   post-code: '33700'
  #   address: 6 Rue Nicolas Leblanc
  #   website: 'https://www.ingeliance.com'
  - given-names: Luc
    family-names: Laurent
    email: luc.laurent@lecnam.net
    affiliation: 'LMSSC, Cnam'
    orcid: 'https://orcid.org/0000-0002-8935-5929'
  - given-names: Antoine
    family-names: Legay
    email: antoine.legay@lecnam.net
    affiliation: 'LMSSC, Cnam'
    orcid: 'https://orcid.org/0000-0001-6836-3009'
repository-code: 'https://github.com/RagQ/BO-HBM-ex/'
abstract: >-
  The Python's tool BO-HBM-ex shows an example of the
  application of Bayesian Optimization on a Duffing problem.
  The Duffing's oscillator problem is here solved using
  Harmonic Balance Method and a continuation technique.
keywords:
  - Bayesian Optimization
  - Non-linear vibrations
  - Harmonic Balance Method
  - Duffing Oscillator
license: MIT

GitHub Events

Total
  • Release event: 1
  • Push event: 23
Last Year
  • Release event: 1
  • Push event: 23

Dependencies

.github/workflows/cffconvert.yml actions
  • actions/checkout v4 composite
  • citation-file-format/cffconvert-github-action 2.0.0 composite
requirements.txt pypi
  • botorch *
  • matplotlib *
  • numpy *
  • pandas *
  • pydoe *
  • torch *