pysisyphus icon indicating copy to clipboard operation
pysisyphus copied to clipboard

Recursive Micro-Cycle Scheme

Open sheepforce opened this issue 2 years ago • 1 comments

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. :)

sheepforce avatar May 19 '22 12:05 sheepforce

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.

eljost avatar Sep 05 '22 13:09 eljost