acopy icon indicating copy to clipboard operation
acopy copied to clipboard

Only works for fully connected graphs

Open jivjen opened this issue 5 years ago • 1 comments

Was trying to run the acopy solver for fully connected graphs and it works fine but throws a key error whenever the graph is not fully connected.

jivjen avatar Apr 29 '20 16:04 jivjen

Hi @rhgrant10 ,

I tried to use the custom class IncompleteGraphSolver from #21 and got the error: NameError: name 'i' is not defined.

Then I change the iteration to properly get an ant from ants and got another error: ...line 231, in optimize data.sort() TypeError: '<' not supported between instances of 'Ant' and 'Ant'

I tried some more and changed the optimizer to not use the sort method and got another error: line 274, in global_update if edge in solution.path: AttributeError: 'Ant' object has no attribute 'path'

Can you please point any direction? What am I missing here? I really need acopy to work on an incomplete graph.

Thanks in advance

andremtsilva avatar Feb 23 '21 00:02 andremtsilva