if k == 0:
				row.append((int(SS)/float(13001000) + aql*15 + BaR*2))
				if b == 17:
					row.append((int(SS)/float(13001000) + aql*15 + BaR*2 - halfcostB)/halfcostB)
					row.append((int(SS)/float(13001000) + aql*15 + BaR*2 - nosducostB)/nosducostB)
			elif k == float('inf'):
				row.append((int(SS)/float(13001000) + aql*2 + BaR*15))
				if b == 17:
					row.append((int(SS)/float(13001000) + aql*2 + BaR*15 - halfcostQ)/halfcostQ)
					row.append((int(SS)/float(13001000) + aql*2 + BaR*15 - nosducostQ)/nosducostQ)

			table.append(row)
			# Keeps track of costs of the heuristics half and half and no SDU allocation to obtain for percent difference in cost
			# compared to allocation suggested by paper 
			if k == 0 and b == 15:
				halfcostB = int(SS)/float(13001000) + aql*15 + BaR*2
			elif k == float('inf') and b == 15:
				halfcostQ = int(SS)/float(13001000) + aql*2 + BaR*15
			elif k == 0 and b == 20:
				nosducostB = int(SS)/float(13001000) + aql*15 + BaR*2
			elif k == float('inf') and b == 20:
				nosducostQ = int(SS)/float(13001000) + aql*2 + BaR*15

ISF1.writeLog(fil, table)



			# print 0
			# print b
			# print ("--- %s seconds ---" % (time.time() - start_time))
	row.append(p)
	if k == 0:
		row.append((int(SS)/float(20001000) + aql*15 + BaR*2))
		if b == 17:
			row.append((int(SS)/float(20001000) + aql*15 + BaR*2 - halfcostB)/halfcostB)
			row.append((int(SS)/float(20001000) + aql*15 + BaR*2 - nosducostB)/nosducostB)
	elif k == float('inf'):
		row.append((int(SS)/float(20001000) + aql*2 + BaR*15))
		if b == 17:
			row.append((int(SS)/float(20001000) + aql*2 + BaR*15 - halfcostQ)/halfcostQ)
			row.append((int(SS)/float(20001000) + aql*2 + BaR*15 - nosducostQ)/nosducostQ)

	table.append(row)

	if k == 0 and b == 15:
		halfcostB = (int(SS)/float(20001000) + aql*15 + BaR*2
	elif k == float('inf') and b == 15:
		halfcostQ = (int(SS)/float(20001000) + aql*2 + BaR*15
	elif k == 0 and b == 20:
		nosducostB = (int(SS)/float(20001000) + aql*15 + BaR*2
	elif k == float('inf') and b == 20:
		nosducostQ = (int(SS)/float(20001000) + aql*2 + BaR*15

ISF1.writeLog(fil, table)



			# print 0
			# print b
			# print ("--- %s seconds ---" % (time.time() - start_time))