Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Add hexagonal topology to pso - #148

Open
sriki18 wants to merge 1 commit into
esa:masterfrom
sriki18:master
Open

Add hexagonal topology to pso#148
sriki18 wants to merge 1 commit into
esa:masterfrom
sriki18:master

Conversation

@sriki18

@sriki18 sriki18 commented Apr 16, 2015

Copy link
Copy Markdown

This will add a hexagonal topology to pso. (I've fixed things that were wrong or missing in the previous PR)

Comment thread src/algorithm/pso.cpp

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not the index order (1,3,4,5) ?
Two spaces after colon

@krzysztof

Copy link
Copy Markdown

I can't judge just by the code whether it's implemented correctly (do you have a reference implementation?). This needs some tests (ideally both C++ and Python) to verify that it works as reported in the literature. Do you have any data on it ?

Update Python docstring:
https://github.com/esa/pagmo/blob/master/PyGMO/algorithm/__init__.py#L264-L268

Comment thread src/algorithm/pso.cpp

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case there's no reason to align variable names in the column with multiple spaces, use a single space.

In this method you're using 8 spaces for indentation. We try to stick with tabs for C++ and 4 spaces for Python code.

@landscape-bot

Copy link
Copy Markdown

Code Health
Code quality remained the same when pulling 607d523 on sriki18:master into 3d4c309 on esa:master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants