esa / pagmo

A C++ / Python platform to perform parallel computations of optimisation tasks (global and local) via the asynchronous generalized island model. State of the art optimization algorithms are included. A common interface is provided to other optimization frameworks/algorithms such as NLOPT, SciPy, SNOPT, IPOPT, GSL
GNU General Public License v3.0
268 stars 87 forks source link

Drawing more than 499 islands in spring-layout is impossible [sf#19] #19

Closed darioizzo closed 10 years ago

darioizzo commented 10 years ago

Originally created by mmarcusx on 2013-04-18 14:23:58.

The introductory example for PyGMO on the homepage (http://pagmo.sourceforge.net/pygmo/index.html) is broken

instead of

archi = archipelago(algo,prob,1000,20,topo = topology.ageing_clustered_barabasi(a=100))

it has to be

archi = archipelago(algo,prob,1000,20,topology = topology.ageing_clustered_ba(a=100))

...

next thing: the draw-command gives me an error:

/usr/lib64/python2.7/site-packages/networkx/drawing/layout.py:514: RuntimeWarning: divide by zero encountered in long_scalars pos[:,i]*=scale/lim

A user also reported that close() is not working and he had to close all the popping up windows manually.

darioizzo commented 10 years ago

Originally posted by mmarcusx on 2013-04-19 13:08:33.

darioizzo commented 10 years ago

Originally posted by mmarcusx on 2013-04-19 13:08:33.

The bug is related to networkx and is just an issue in version 1.7. The next release should fix this issue. If really needed see: https://groups.google.com/forum/?fromgroups=#!topic/networkx-discuss/DvwOq62sUnk for further information.

darioizzo commented 10 years ago

Originally posted by mmarcusx on 2013-04-19 16:41:40.

darioizzo commented 10 years ago

Originally posted by mmarcusx on 2013-04-19 16:41:40.

Changed description of the problem since it still remains...