Essentially I would like my while loop to take the dvals
input list, identify the minimum element, add 0.05 to it and append it to the end of the doptions
list of lists, but instead it seems to be overwriting every element of the list each iteration so only the last iteration is represented repeatedly, once for each iteration.
Here is sample code:
doptions = [[]]
dvals = [0.2997, 0.29969999999999997, 0.29969999999999997, 0.27372881355932194, 0.0225, 0.29969999999999997, 0.2997, 0.06457182320441988, 0.13706896551724135, 0.29969999999999997, 0.006211180124223601]
doptions[0] = dvals
indicator = 0
while indicator < 0.9:
dminix = dvals.index(min(dvals))
dvals[dminix] += 0.05
doptions.append(dvals)
indicator = min(dvals)