Made a method of isequal for use on Network type, it compares the values of all fields that define the Network.
This caused problems with the ordering of fitnesses, and evaluation of the population. This may be to do with the fact that I previously added a method for isless for use on Networks which only looked at thier fitness - i.e. a fitter network (lower score) was defined as 'more' than a less fit network.
I worked around the problem by changing the isequal function to isidentical. However, it would be better to understand why it didn't work, and to be able to add a method to isequal.
Made a method of isequal for use on Network type, it compares the values of all fields that define the Network.
This caused problems with the ordering of fitnesses, and evaluation of the population. This may be to do with the fact that I previously added a method for isless for use on Networks which only looked at thier fitness - i.e. a fitter network (lower score) was defined as 'more' than a less fit network.
I worked around the problem by changing the isequal function to isidentical. However, it would be better to understand why it didn't work, and to be able to add a method to isequal.