Timeit

Discussion in 'Python' started by cokofreedom@gmail.com, Feb 19, 2009.

Guest

I've having an annoying problem at the moment. I'm writing code for
the travelling salesmen problem and comparing different techniques.
But I've having a problem using timeit.

I have a file called "testplatform.py" that contains 4 class:
Test() - which is called first to create the cities/routes to be
shared between the other classes
AutoClone() - which uses the variables from Test() (normally test =
Test())
Randomisation() - Ditto
BruteForce() - Ditto

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!