fixed optimization space lower limit error

This commit is contained in:
Remi Ehounou
2021-09-11 16:53:22 -04:00
parent 6db3811864
commit b05666e137
4 changed files with 4 additions and 4 deletions

View File

@ -279,7 +279,7 @@ def doe(heuristicpath, testfunctionpaths, heuristic_args, measurementSampleSize
failedfunctions[run] = process.exitcode
connections[run][0].close()
connections[run][1].close()
print('Test Function Completed: '+str(i)+'/'+str(len(proc)))
print('Test Function Completed: '+str(i+1)+'/'+str(len(proc)))
# display output

View File

@ -39,14 +39,14 @@ def main(func, S, args):
t = args["t"]
p = args["p"]
high = args["upper"] if isinstance(args["upper"], int) else max(args["upper"])
low = args["lower"] if isinstance(args["lower"], int) else max(args["lower"])
low = args["lower"] if isinstance(args["lower"], int) else min(args["lower"])
Best = list()
Best[:] = cp.deepcopy(S)
sigma = 0.1
route.append(Best[:])
for iterationstep in range(100000):
print('\n\n\n')
#print('\n\n\n')
R = tweak(cp.deepcopy(S),p,sigma,high, low)
#print(R)
#print(S)

View File

@ -46,7 +46,7 @@ def main(func, S, args):
sigma = 0.1
route.append(Best[:])
while True:
print('\n\n\n')
#print('\n\n\n')
R = tweak(cp.deepcopy(S),p,sigma,high, low)
print(R)
print(S)