def Algorithm():


################################
#   call to database config    #
################################

    configuration = Config()
    course_list = configuration.get_course_list()
    room_list = configuration.get_room_list()
    prof_list = configuration.get_prof_list()
    course_class_list = configuration.get_course_class_list()

################################
#   call to origional config   #
################################
   

#    config = Configuration()
#    course_list = config.


################################
#   scheduler called here      #
################################
#   From schedule.py           #
################################

#    configuration.print_database()
    the_schedule = Schedule(None, configuration)
    the_schedule.algorithm()
#    the_schedule.print_chromosomes()
#    print "\n\n              This what is in the Database \n\n"
#    configuration.print_database()
    the_fitness = test_schedule.get_overall_fitness()
    print the_fitness
# test_float = test_schedule.get_overall_fitness()

# print test_float

# test_schedule.perform_crossover(1,10)

# test_schedule.print_chromosomes()

# test_float = test_schedule.get_overall_fitness()

# print test_float

# test_schedule.mutation_size = 5

# test_schedule.perform_mutations()

# test_schedule.print_chromosomes()

# test_float = test_schedule.get_overall_fitness()

# print test_float

test_schedule.algorithm()

test_schedule.print_chromosomes()

test_float = test_schedule.get_overall_fitness()

print test_float