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

Addition of `evol.problems` #86

Merged
merged 18 commits into from Nov 30, 2018

Conversation

Projects
None yet
2 participants
@koaning
Copy link
Collaborator

koaning commented Oct 10, 2018

I've added basic tsp problems as well as a magic santa problem. This is a problem that I have used for trainings before and I'd love to have that problem around here too.

koaning and others added some commits Jan 26, 2018

Show resolved Hide resolved evol/helpers/_utils.py Outdated
Show resolved Hide resolved evol/helpers/utils.py Outdated
Show resolved Hide resolved evol/problems/magicsanta.py Outdated
Show resolved Hide resolved evol/problems/magicsanta.py Outdated
Show resolved Hide resolved evol/problems/tsp.py Outdated
Show resolved Hide resolved evol/problems/tsp.py Outdated
Show resolved Hide resolved evol/problems/magicsanta.py Outdated
Show resolved Hide resolved evol/problems/tsp.py Outdated
Show resolved Hide resolved tests/problems/test_tsp.py Outdated
Show resolved Hide resolved evol/problems/tsp.py Outdated

@koaning koaning referenced this pull request Oct 11, 2018

Closed

do we want flake8? #87

koaning and others added some commits Oct 11, 2018

Use Counter for detection of multiple occurrences
In stead of using two lists and a double loop to detect multiple
occurrences of cities in a solution, use a Counter. This requires
less code and is probably quicker. It has the same result - although
the order of the double cities in the result may be different.

@koaning koaning changed the title tsp problems Addition of `evol.problems` Nov 10, 2018

@koaning

This comment has been minimized.

Copy link
Collaborator

koaning commented Nov 18, 2018

@koaning koaning merged commit a30b3a5 into master Nov 30, 2018

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@koaning koaning deleted the tsp-problems branch Nov 30, 2018

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