# import other files from valuation import * from water import * from house import * from visuals import * from csv_reader import * from csv_writer import * # different type of houses mais = "maison" bung = "bungalow" egw = "eengezinswoning" # get best best from file beginmap, houses, water, start_value, houses_total, pieces_of_water = csv_reader("1116_May_23_20worstvalue100000_7652220.0.csv") # initialise variables best_houses = list(houses) temporary_map = beginmap best_value = start_value temporary_value = 0 values = [] print "best value before", best_value name1 = str(start_value) + "before" nr_of_tests = 100000 # values for simulated annealing, change as you feel fit temperature = 10000000000
from water import * from house import * from visuals import * from csv_reader import * # different type of houses mais = "maison" bung = "bungalow" egw = "eengezinswoning" # fill in as you like :) houses_total = 20 pieces_of_water = 4 # get best best from file beginmap, houses, water, start_value = csv_reader("output.csv", houses_total, pieces_of_water) print("value of first map", start_value) # initialise variables best_houses = list(houses) temporary_houses = list(best_houses) temporary_map = beginmap best_value = start_value temporary_value = 0 name1 = str(start_value) + "before" nr_of_tests = 100000 for i in range(nr_of_tests):
from house import * from visuals import * from csv_reader import * # different type of houses mais = "maison" bung = "bungalow" egw = "eengezinswoning" # fill in as you like :) houses_total = 20 pieces_of_water = 4 # get best best from file beginmap, houses, water, start_value = csv_reader("centered_housing.csv", houses_total, pieces_of_water) print("value of first map", start_value) # initialise variables best_houses = list(houses) temporary_houses = list(best_houses) temporary_map = beginmap best_value = start_value temporary_value = 0 name1 = str(start_value) + "before" nr_of_tests = 10000 for i in range(nr_of_tests):
# import other files from valuation import * from water import * from house import * from visuals import * from csv_reader import * from csv_writer import * # different type of houses mais = "maison" bung = "bungalow" egw = "eengezinswoning" # get best best from file beginmap, houses, water, start_value, houses_total, pieces_of_water = csv_reader("0126_May_22_20bestvalue10000_11471460.0.csv") # initialise variables best_houses = list(houses) temporary_map = beginmap best_value = start_value temporary_value = 0 name1 = str(start_value) + "before" nr_of_tests = 1000 # values for simulated annealing, change as you feel fit temperature = 100000000000 cooldown_rate = 0.999 winning = 0
from water import * from house import * from visuals import * from csv_reader import * # different type of houses mais = "maison" bung = "bungalow" egw = "eengezinswoning" # fill in as you like :) houses_total = 20 pieces_of_water = 4 # get best best from file beginmap, houses, water, start_value = csv_reader("centered_housing.csv", houses_total, pieces_of_water) print ("value of first map", start_value) # initialise variables best_houses = list(houses) temporary_houses = list(best_houses) temporary_map = beginmap best_value = start_value temporary_value = 0 name1 = str(start_value) + "before" nr_of_tests = 10000 # values for simulated annealing, change as you feel fit temperature = 10000 cooldown_rate = 0.99
from water import * from house import * from visuals import * from csv_reader import * # different type of houses mais = "maison" bung = "bungalow" egw = "eengezinswoning" # fill in as you like :) houses_total = 20 pieces_of_water = 4 # get best best from file beginmap, houses, water, start_value = csv_reader("output.csv", houses_total, pieces_of_water) print ("value of first map", start_value) # initialise variables best_houses = list(houses) temporary_houses = list(best_houses) temporary_map = beginmap best_value = start_value temporary_value = 0 name1 = "before" + str(start_value) nr_of_tests = 10000 for i in range(nr_of_tests):
# # import other files from valuation import * # from data_to_csv import * from water import * from house import * # from visuals import * from csv_reader import * from csv_writer import * # different type of houses mais = "maison" bung = "bungalow" egw = "eengezinswoning" # get best best from file beginmap, houses, water, start_value, houses_total, pieces_of_water = csv_reader( "equal_spacing_map.csv") # initialise variables temporary_map = beginmap best_value = start_value temporary_value = 0 all_water = water print "value after = ", best_value for i in range(len(houses)): houses[i].updateDistance(distance(houses[i], houses, i, True)) # valuate new map best_value = euroValuation(houses, 0)
# import other files from valuation import * from water import * from house import * from visuals import * from csv_reader import * from csv_writer import * # different type of houses mais = "maison" bung = "bungalow" egw = "eengezinswoning" # get best best from file beginmap, houses, water, start_value, houses_total, pieces_of_water = csv_reader( "1116_May_23_20worstvalue100000_7652220.0.csv") # initialise variables best_houses = list(houses) temporary_map = beginmap best_value = start_value temporary_value = 0 values = [] print "best value before", best_value name1 = str(start_value) + "before" nr_of_tests = 100000 # values for simulated annealing, change as you feel fit temperature = 10000000000