Skip to content

Commit

Permalink
Version 0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
guofei9987 committed Dec 26, 2019
1 parent bc245be commit 63cec13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions sko/PSO.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ class PSO(SkoBase):
Examples
-----------------------------
>>> demo_func = lambda x: x[0] ** 2 + (x[1] - 0.05) ** 2 + x[2] ** 2
>>> pso = PSO(func=demo_func, dim=3)
>>> gbest_x, gbest_y = pso.run()
>>> print('best_x is ', pso.gbest_x, 'best_y is ', pso.gbest_y)
>>> pso.plot_history()
see https://scikit-opt.github.io/scikit-opt/#/en/README?id=_3-psoparticle-swarm-optimization
"""

def __init__(self, func, dim, pop=40, max_iter=150, lb=None, ub=None, w=0.8, c1=0.5, c2=0.5):
Expand Down
2 changes: 1 addition & 1 deletion sko/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.5.3'
__version__ = '0.5.4'


def start():
Expand Down

0 comments on commit 63cec13

Please sign in to comment.