reset password
Author Message
rabbott
Posts: 1649
Posted 17:20 Apr 30, 2020 |

This file is now on GitHub under PyLogo/Examples/ga_and_aco_examples. It has been edited so that the (two) parts for you to complete are indicated with ... .  The two parts correspond to the two equations we discussed in class.

(In Python, ... compiles but does nothing.)

sdo8
Posts: 54
Posted 17:53 May 01, 2020 |

I've just pulled the code from your latest Github. However, the line 14 of aco_tsp.py (below) is trying to import something that doesn't exist.

from ga_and_aco_examples.ga_tsp import order_elements

order_elements does not exist in ga_tsp.py. Is this a mistake?

rabbott
Posts: 1649
Posted 21:03 May 01, 2020 |

Try downloading ga_tsp.py. Since this assignment does not depend on other code you've written I recommend downloading the entire current version of PyLogo.