pysisyphus
pysisyphus copied to clipboard
Recursive Micro-Cycle Scheme
The current (0.7.6.post1) implementation of the microcycle follows the scheme:
while (not isOptimised(layer[n])):
for i in range(1, n):
while(not isOptimised(layer[i])):
optStep(layer[i])
optStep(layer[i])
instead I suggest a scheme more in the spirit of recursive layers:
def optimise(n):
while (not isOptimised(layer[n]):
if i <= 0:
break
optimise(layer[n - 1])
optStep(layer[n])
Please forgive me my foolish attempts to write python. :)
Low(er)-level layers should be optimized until they are converged and not only for a fixed number of cycles.
It should be possible to converge outer layers looser than the inner, high-level layer.