fast-aircraft-design / FAST-OAD

FAST-OAD: An open source framework for rapid Overall Aircraft Design
GNU General Public License v3.0
47 stars 25 forks source link

Simple Multistart #447

Open ScottDelbecq opened 2 years ago

ScottDelbecq commented 2 years ago

This PR aims at providing a multistart optimization feature configurable from the configuration file. The Design of Experiment method used is a Latin Hypercube Sampling method. Here is an example of the syntax in the optimization section of the configuration file:

optimization:
  options:
    - multistart: true
      samples: 10
      criterion: maximin
      num_proc: 4
  design_variables:
    - name: x
      lower: 0
      upper: 10
    - name: z
      lower: 0
      upper: 10
  constraints:
    - name: g1
      upper: 0
    - name: g2
      upper: 0
  objective:
    - name: f

The num_proc field is the number of processors to use for multiprocessing but is not yet used and will be implemented in a later PR.

codecov[bot] commented 2 years ago

Codecov Report

Merging #447 (0c74c2a) into master (b9742b0) will decrease coverage by 0.27%. The diff coverage is 75.58%.

:exclamation: Current head 0c74c2a differs from pull request most recent head 18cc02b. Consider uploading reports for the commit 18cc02b to get more accurate results

@@            Coverage Diff             @@
##           master     #447      +/-   ##
==========================================
- Coverage   89.51%   89.23%   -0.28%     
==========================================
  Files          73       73              
  Lines        4433     4516      +83     
  Branches      713      730      +17     
==========================================
+ Hits         3968     4030      +62     
- Misses        337      350      +13     
- Partials      128      136       +8     
Impacted Files Coverage Δ
src/fastoad/cmd/api.py 91.12% <50.00%> (-0.60%) :arrow_down:
src/fastoad/io/configuration/configuration.py 87.26% <75.94%> (-3.88%) :arrow_down:
src/fastoad/openmdao/problem.py 94.11% <100.00%> (+0.11%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b9742b0...18cc02b. Read the comment docs.