The program implements a genetic algorithm for finding the maximum of a function.

The problem, as I understand it, is that when declaring a class, Python does not see other classes.

Error: NameError: name [NameClass] is not defined.

I would be grateful for tips and advice, in which direction to dig.

The code is presented by reference.

Closed due to the fact that off-topic party Nick Volynkin Jan 4 '17 at 6:18 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - Nick Volynkin
If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    When defining the Сhromosome class, your first letter is Russian S.