Skip to content

Commit

Permalink
RC1 - 0.4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Blank committed Mar 8, 2021
1 parent 86ecc8a commit 0975564
Show file tree
Hide file tree
Showing 248 changed files with 6,783 additions and 45,758 deletions.
108 changes: 108 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Release

on:
push:
branches:
- master

jobs:

# tests:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Python
# uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install .
# pip install pytest
# - name: Run tests
# run: pytest tests/test_performance_indicator.py


docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Create Documentation
run: |
sudo apt-get install pandoc rsync
python -m pip install --upgrade pip
cd doc
pip install -r requirements.txt
make html
- name: Upload Documentation
uses: trendyminds/github-actions-rsync@master
with:
RSYNC_OPTIONS: -avzr --delete --exclude '*.ipynb'
RSYNC_TARGET: /home/blankjul/pymoo.org/master
RSYNC_SOURCE: /doc/build/html/*
env:
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
SSH_USERNAME: ${{secrets.SSH_USERNAME}}
SSH_HOSTNAME: ${{secrets.SSH_HOSTNAME}}



build:
needs: tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9']
exclude:
- os: ubuntu-latest
python-version: '3.7'
python-version: '3.8'
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel numpy
- uses: knicknic/os-specific-run@v1
with:
linux: python setup.py sdist
macos: python setup.py bdist_wheel
windows: python setup.py bdist_wheel
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist

deploy:
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m pip install --upgrade pip
pip install twine
twine upload --skip-existing --repository testpypi dist/*
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

50 changes: 0 additions & 50 deletions TODO

This file was deleted.

67 changes: 0 additions & 67 deletions benchmark/benchmark_rvea.py

This file was deleted.

6 changes: 5 additions & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
sphinx
numpydoc
nbsphinx
sphinxcontrib-bibtex
sphinxcontrib-bibtex<2.0.0
pydata-sphinx-theme
bs4
matplotlib
ipython
31 changes: 3 additions & 28 deletions doc/source/_theme/custom_theme/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,9 @@
height: 2em;
display: inline;
}

#pymoo-banner {
margin: 5px 0px;
}



























#pymoo-banner {
margin: 5px 0px;
}
14 changes: 14 additions & 0 deletions doc/source/algorithms/brkga.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,20 @@
"section": "solve"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Compiled modules for significant speedup can not be used!\n",
"https://pymoo.org/installation.html#installation\n",
"\n",
"To disable this warning:\n",
"from pymoo.configuration import Configuration\n",
"Configuration.show_compile_hint = False\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
Expand Down
46 changes: 30 additions & 16 deletions doc/source/algorithms/cmaes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,28 @@
"code": "algorithms/usage_cmaes.py"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Compiled modules for significant speedup can not be used!\n",
"https://pymoo.org/installation.html#installation\n",
"\n",
"To disable this warning:\n",
"from pymoo.configuration import Configuration\n",
"Configuration.show_compile_hint = False\n",
"\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Best solution found: \n",
"X = [0.49999999 0.49999999 0.49999999 0.50000002 0.49999994 0.49999999\n",
" 0.50000002 0.50000001 0.5 0.49999995]\n",
"F = [6.60238931e-15]\n",
"X = [0.5 0.5 0.49999998 0.49999998 0.49999999 0.49999999\n",
" 0.49999999 0.49999998 0.5 0.49999998]\n",
"F = [1.70729171e-15]\n",
"CV= [0.]\n"
]
}
Expand Down Expand Up @@ -94,20 +108,20 @@
"==============================================================================\n",
"n_gen | n_eval | fopt | sigma | min std | max std | axis \n",
"==============================================================================\n",
" 1 | 60 | 0.280118961 | 0.500000000 | 0.50000 | 0.50002 | 1.00005\n",
" 2 | 70 | 0.280118961 | 0.459722409 | 0.44491 | 0.46178 | 1.13278\n",
" 3 | 80 | 0.280118961 | 0.454247593 | 0.43059 | 0.47709 | 1.26793\n",
" 4 | 90 | 0.280118961 | 0.422510878 | 0.39828 | 0.44346 | 1.26617\n",
" 5 | 100 | 0.280118961 | 0.361333434 | 0.33582 | 0.37869 | 1.29828\n",
" 6 | 110 | 0.280118961 | 0.335004317 | 0.30033 | 0.35013 | 1.29409\n",
" 7 | 120 | 0.280118961 | 0.343899924 | 0.30913 | 0.36758 | 1.41768\n",
" 8 | 130 | 0.280118961 | 0.330665853 | 0.29241 | 0.35494 | 1.48939\n",
" 9 | 140 | 0.280118961 | 0.340884540 | 0.29577 | 0.38328 | 1.63723\n",
" 10 | 150 | 0.280118961 | 0.324410284 | 0.27788 | 0.36610 | 1.67792\n",
" 1 | 60 | 0.336859093 | 0.500000000 | 0.50000 | 0.50002 | 1.00005\n",
" 2 | 70 | 0.336859093 | 0.468987029 | 0.45221 | 0.47541 | 1.17432\n",
" 3 | 80 | 0.336859093 | 0.454194747 | 0.43186 | 0.46182 | 1.21377\n",
" 4 | 90 | 0.336859093 | 0.444093855 | 0.42255 | 0.45584 | 1.30725\n",
" 5 | 100 | 0.336859093 | 0.466675800 | 0.43898 | 0.48437 | 1.44122\n",
" 6 | 110 | 0.336859093 | 0.473712844 | 0.43039 | 0.50215 | 1.52184\n",
" 7 | 120 | 0.336859093 | 0.468094561 | 0.41709 | 0.51350 | 1.65161\n",
" 8 | 130 | 0.336859093 | 0.489893791 | 0.43265 | 0.56477 | 1.65416\n",
" 9 | 140 | 0.336859093 | 0.507674096 | 0.44411 | 0.59020 | 1.66534\n",
" 10 | 150 | 0.336859093 | 0.510621054 | 0.43294 | 0.59157 | 1.67884\n",
"Best solution found: \n",
"X = [0.60423243 0.42228851 0.52822016 0.51146051 0.58129394 0.07117193\n",
" 0.43877331 0.37024565 0.27372449 0.4997964 ]\n",
"F = [0.28011896]\n"
"X = [0.39559796 0.75732067 0.84421475 0.55333188 0.577376 0.43123249\n",
" 0.29055664 0.30977326 0.42313589 0.70430481]\n",
"F = [0.33685909]\n"
]
}
],
Expand Down
Loading

0 comments on commit 0975564

Please sign in to comment.