Skip to content

Commit eb2ffa5

Browse files
committed
fixup
1 parent 4639be7 commit eb2ffa5

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
python -m pip install ruff
3232
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3333
python -m pip install moarchiving
34+
mkdir src
35+
ln -s cma src/cma
3436
python -m pip install . # or install numpy and further dependencies?
3537
- name: Lint with flake8
3638
run: |

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ Zenodo: 34 points to the latest release (v4.4.2: https://zenodo.org/records/1835
2222

2323
``pycma`` is a Python implementation of [CMA-ES](http://cma-es.github.io/) and some related numerical optimization tools.
2424

25-
The [CMA-ES](http://cma-es.github.io) ([Covariance Matrix Adaptation Evolution Strategy](https://en.wikipedia.org/wiki/CMA-ES)) is a stochastic derivative-free numerical optimization
25+
The [CMA-ES](http://cma-es.github.io) ([Covariance Matrix Adaptation Evolution Strategy](https://en.wikipedia.org/wiki/CMA-ES)) is a randomized derivative-free numerical optimization
2626
algorithm for difficult (non-convex, ill-conditioned, multi-modal, rugged, noisy) optimization
2727
problems in continuous and mixed-integer search spaces.
28+
This package provides the CMA-ES algorithm and includes the handling of
29+
30+
* bound constraints via the ``'bounds' = [lower, upper]`` option
31+
* linear and nonlinear constraints via the `constraints` argument to `fmin2` or `fmin_con2`
32+
* noise via ``noise_handler=True`` as argument to `fmin2`
33+
* integer variables for mixed-integer problems via the ``'integer_variables'=index_list`` option
2834

2935
## Documentation and Getting Started (Links)
3036

@@ -104,9 +110,9 @@ either of these with ``sudo``.
104110
same time in two subplots.
105111
- New:
106112
- Provide the two (by far) most useful statistical tests with a tidy
107-
interface in `.utilities.math.test...`
113+
interface in ``cma.utilities.math.test...``
108114
- Provide a `more_algorithms` sub-package containing `purecma` and `CompactGA`.
109-
- Provide a provisional `experimentation` module.
115+
- Provide a provisional `experimentation` module (requires `import cma.experimentation`).
110116
- A few smaller fixes and improvements.
111117

112118
* [Release ``4.4.2``](https://github.com/CMA-ES/pycma/releases/tag/r4.4.2)

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ classifiers = [
6060
# packages = ["cma", "cma.utilities"] # fails when they are in an src/ folder
6161
include-package-data = false # true is default, false doesn't change anything
6262

63-
# [tool.setuptools.packages.find] # for where=. works only in a clean folder
64-
# without any directives: finds src folder implying a standard (nonflat) layout
65-
# # where = ["src"] # this doesn't work, it always takes the root too?
66-
# include = ["cma*"] # cma/* ?
67-
# exclude = ["notebooks*"] # , "cma_*" ?
63+
[tool.setuptools.packages.find] # for where=. works only in a clean folder
64+
# # without any directives: finds src folder implying a standard (nonflat) layout
65+
# # # where = ["src"] # this doesn't work, it always takes the root too?
66+
# # include = ["cma*"] # cma/* ?
67+
exclude = ["notebooks*"] # , "cma_*" ?
6868

6969
# namespaces = false
7070

setup-howto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
Make and check the distribution assuming a clean src/ folder (ln -s cma src/cma, was: from a (usual) dirty code folder ==> install-folder)::
4444
4545
python -m build > dist_call_output.txt; less dist_call_output.txt
46-
git tag last-build # not sure whether this is useful
46+
git tag -f last-build # not sure whether this is useful
4747
4848
# was: ./script-prepare-distribution.sh
4949
# ==>
@@ -58,7 +58,7 @@
5858
5959
twine check dist/*
6060
tar -tf dist/cma-4.4.0.tar.gz | tree --fromfile | less
61-
# ==> 6 directories, 40 files, check that the distribution folders are clean
61+
# ==> 7 directories, 40 files, check that the distribution folders are clean
6262
# was: ==> 5 directories, 36 files, check that the distribution folders are clean
6363
6464
# see https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary

0 commit comments

Comments
 (0)