Skip to content

Commit 9a2392c

Browse files
author
Julian Blank
committed
RC1 - 0.4.2.1
1 parent 29e5cd8 commit 9a2392c

File tree

179 files changed

+726
-11045
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+726
-11045
lines changed

.github/workflows/master.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
10+
# tests:
11+
# runs-on: ubuntu-latest
12+
# steps:
13+
# - uses: actions/checkout@v2
14+
# - name: Install Python
15+
# uses: actions/setup-python@v2
16+
# with:
17+
# python-version: 3.9
18+
# - name: Install dependencies
19+
# run: |
20+
# python -m pip install --upgrade pip
21+
# pip install .
22+
# pip install pytest
23+
# - name: Run tests
24+
# run: pytest tests/test_performance_indicator.py
25+
26+
27+
docs:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v2
31+
- name: Install Python
32+
uses: actions/setup-python@v2
33+
with:
34+
python-version: 3.9
35+
- name: Create Documentation
36+
run: |
37+
sudo apt-get install pandoc rsync
38+
python -m pip install --upgrade pip
39+
cd doc
40+
pip install -r requirements.txt
41+
make html
42+
- name: Upload Documentation
43+
uses: trendyminds/github-actions-rsync@master
44+
with:
45+
RSYNC_OPTIONS: -avzr --delete --exclude '*.ipynb'
46+
RSYNC_TARGET: /home/blankjul/pymoo.org/master
47+
RSYNC_SOURCE: /doc/build/html/*
48+
env:
49+
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
50+
SSH_USERNAME: ${{secrets.SSH_USERNAME}}
51+
SSH_HOSTNAME: ${{secrets.SSH_HOSTNAME}}
52+
53+
54+
55+
build:
56+
needs: tests
57+
runs-on: ${{ matrix.os }}
58+
strategy:
59+
matrix:
60+
os: [ubuntu-latest, windows-latest, macos-latest]
61+
python-version: ['3.7', '3.8', '3.9']
62+
exclude:
63+
- os: ubuntu-latest
64+
python-version: '3.7'
65+
python-version: '3.8'
66+
steps:
67+
- uses: actions/checkout@v2
68+
- name: Set up Python
69+
uses: actions/setup-python@v2
70+
with:
71+
python-version: ${{ matrix.python-version }}
72+
- name: Install dependencies
73+
run: |
74+
python -m pip install --upgrade pip
75+
pip install setuptools wheel numpy
76+
- uses: knicknic/os-specific-run@v1
77+
with:
78+
linux: python setup.py sdist
79+
macos: python setup.py bdist_wheel
80+
windows: python setup.py bdist_wheel
81+
- uses: actions/upload-artifact@v2
82+
with:
83+
name: dist
84+
path: dist
85+
86+
deploy:
87+
needs: build
88+
runs-on: ubuntu-latest
89+
90+
steps:
91+
- uses: actions/checkout@v2
92+
- uses: actions/download-artifact@v2
93+
with:
94+
name: dist
95+
path: dist
96+
- name: Set up Python
97+
uses: actions/setup-python@v2
98+
with:
99+
python-version: '3.8'
100+
- name: Publish
101+
env:
102+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
103+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
104+
run: |
105+
python -m pip install --upgrade pip
106+
pip install twine
107+
twine upload --skip-existing --repository testpypi dist/*
108+

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

TODO

Lines changed: 0 additions & 50 deletions
This file was deleted.

benchmark/benchmark_rvea.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

pymoo/algorithms/addon.py

Lines changed: 0 additions & 88 deletions
This file was deleted.

pymoo/algorithms/convex/__init__.py

Whitespace-only changes.

pymoo/algorithms/convex/gradient_descent.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

pymoo/algorithms/ctaea.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from pymoo.algorithms.genetic_algorithm import GeneticAlgorithm
77
from pymoo.docs import parse_doc_string
88
from pymoo.factory import get_decomposition
9+
from pymoo.model.individual import Individual
910
from pymoo.model.population import Population
1011
from pymoo.operators.crossover.simulated_binary_crossover import SimulatedBinaryCrossover
1112
from pymoo.operators.mutation.polynomial_mutation import PolynomialMutation
@@ -45,7 +46,7 @@ def comp_by_cv_dom_then_random(pop, P, **kwargs):
4546
else:
4647
S[i] = np.random.choice([a, b])
4748

48-
return S[:, None].astype(np.int)
49+
return S[:, None].astype(int)
4950

5051

5152
class RestrictedMating(TournamentSelection):
@@ -141,14 +142,14 @@ def _initialize(self):
141142
self.pop = pop
142143
self.da = da
143144

144-
def setup(self, problem, **kwargs):
145+
def _solve(self, problem):
145146

146147
if self.ref_dirs is not None and self.ref_dirs.shape[1] != problem.n_obj:
147148
raise Exception(
148149
"Dimensionality of reference points must be equal to the number of objectives: %s != %s" %
149150
(self.ref_dirs.shape[1], problem.n_obj))
150151

151-
return super().setup(problem)
152+
return super()._solve(problem)
152153

153154
def _next(self):
154155

0 commit comments

Comments
 (0)