Quick Optimization
Posted: 28 Jan 2009, 16:41
I have used elegant to match the twiss parameters at a particular location, and have asked it to create a new lattice file with the optimized quad values.
I then (just for grins) optimized the same parameters, same location, against the new lattice. As expected, no changes to the optimum values of the variables occurred, but the process took just as long..I would have thought that it would find a solution quicker.
Is there a way for elegant to check if the parameters are within tolerance, and not do the full optimization routine if they are? Ideally, I'd like this to live in a single file so that we can just run the command file on a newly revised lattice, and check that the parameters are good, but optimize if not.
I know this can all be done in separate steps, I was just hoping there was a command that I could directly use in the file.
Thanks,
Michele
I then (just for grins) optimized the same parameters, same location, against the new lattice. As expected, no changes to the optimum values of the variables occurred, but the process took just as long..I would have thought that it would find a solution quicker.
Is there a way for elegant to check if the parameters are within tolerance, and not do the full optimization routine if they are? Ideally, I'd like this to live in a single file so that we can just run the command file on a newly revised lattice, and check that the parameters are good, but optimize if not.
I know this can all be done in separate steps, I was just hoping there was a command that I could directly use in the file.
Thanks,
Michele