mirror of
https://github.com/ejeanboris/MDAF.git
synced 2025-06-15 09:38:32 +00:00
fixed optimization space lower limit error
This commit is contained in:
@ -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
|
||||
|
@ -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)
|
||||
|
Binary file not shown.
@ -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)
|
||||
|
Reference in New Issue
Block a user