Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Von Neumann topology #177

Merged
merged 3 commits into from
Jul 23, 2018
Merged

Add Von Neumann topology #177

merged 3 commits into from
Jul 23, 2018

Conversation

whzup
Copy link
Collaborator

@whzup whzup commented Jul 20, 2018

Description

Added a VonNeumann topology by inheriting from the Ring topology. Added the necessary tests and documentation. I also expanded the tests for the Ring topology.
ATTENTION: This is built upon #176 so merge that one first.

Related Issue

See also: #129

Motivation and Context

This is the last topology that has to be added.

How Has This Been Tested?

Added the test file for the topology. Tested all function within the class.

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Resolves #170

Fixed a bug in the topology class where not the best values were used as result when optimizing with the LocalBest class. Made the tests for the topologies less trivial by changing the index of the best cost and best position in the fixture swarm. Added a bigger fixture swarm to test the topology classes. Additionally, I fixed a little bug in the Random topology where the elements were compared to 0 instead of np.inf.
Reference: #129

Added a Von Neumann topology by inheriting from the Ring class and computing Delannoy numbers for the neighbours. Added tests and documentation and expanded the tests for the Ring topology.
@whzup whzup requested a review from ljvmiranda921 July 21, 2018 09:37
@whzup whzup added enhancement Feature requests v0.3.0 labels Jul 21, 2018
Copy link
Owner

@ljvmiranda921 ljvmiranda921 left a comment

Choose a reason for hiding this comment

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

All good. Next time just make a new feature branch (checkout to development and branch again from there) so that we won't have merge conflicts.

@ljvmiranda921 ljvmiranda921 merged commit 6306812 into ljvmiranda921:development Jul 23, 2018
@whzup whzup deleted the von_neumann branch July 23, 2018 18:44
@whzup
Copy link
Collaborator Author

whzup commented Jul 23, 2018

Yes, sorry hahaha. I just wanted this to be out 🙉 😋 Gonna keep that in mind!

@ljvmiranda921
Copy link
Owner

No probs! Good PR by the way!

@ljvmiranda921 ljvmiranda921 mentioned this pull request Jul 31, 2018
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants