Optimizer Error Using Input Matrix Files
Posted: 21 May 2018, 03:50
Hi Michael,
I am revisting this topic because I wanted to vary the phase advance for a section of beamline but I am having issues doing so. I created a beamline using oscillation orbit data from BPMs and quads. The sections between quds are defined by a matrix txt file and the quad strengths are only to be varied.
I tried using the optimizer (simplex) to find the K1 values for the quads to satisfy the phase advance I wanted in the section, but even for the smallest phase advance, the optimizer is not finding solutions.
I think it may be the matrix txt files that is giving the optimizer problems but it may also be that I've been looking at this code for too long and can't see the mistake I have possibly made.
I attached a zip file of the *ele, *lte and *matrix.txt files. Any advice/help would be greatly appreciated!
I am revisting this topic because I wanted to vary the phase advance for a section of beamline but I am having issues doing so. I created a beamline using oscillation orbit data from BPMs and quads. The sections between quds are defined by a matrix txt file and the quad strengths are only to be varied.
I tried using the optimizer (simplex) to find the K1 values for the quads to satisfy the phase advance I wanted in the section, but even for the smallest phase advance, the optimizer is not finding solutions.
I think it may be the matrix txt files that is giving the optimizer problems but it may also be that I've been looking at this code for too long and can't see the mistake I have possibly made.
I attached a zip file of the *ele, *lte and *matrix.txt files. Any advice/help would be greatly appreciated!