Skip to content

Commit 63cec13

Browse files
committed
Version 0.5.4
1 parent bc245be commit 63cec13

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

sko/PSO.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ class PSO(SkoBase):
6868
6969
Examples
7070
-----------------------------
71-
>>> demo_func = lambda x: x[0] ** 2 + (x[1] - 0.05) ** 2 + x[2] ** 2
72-
>>> pso = PSO(func=demo_func, dim=3)
73-
>>> gbest_x, gbest_y = pso.run()
74-
>>> print('best_x is ', pso.gbest_x, 'best_y is ', pso.gbest_y)
75-
>>> pso.plot_history()
71+
see https://scikit-opt.github.io/scikit-opt/#/en/README?id=_3-psoparticle-swarm-optimization
7672
"""
7773

7874
def __init__(self, func, dim, pop=40, max_iter=150, lb=None, ub=None, w=0.8, c1=0.5, c2=0.5):

sko/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.5.3'
1+
__version__ = '0.5.4'
22

33

44
def start():

0 commit comments

Comments
 (0)