error on optimization
Posted: 01 Jun 2015, 05:25
Hi all, I am probably doing something silly but I can't find a solution to this. I have initially found a similar post by user Marcello named, "Strange Dispersion Calculation" where the problem was the inability at writing a final output file after the optimization. This is well explained in the reply, where the "optimize" command is a "major action", wiping out the problem space.
In my case, however, I am trying to run an optimization with no further action.
Specifically I 'd like to find the gradients of some skew quads to give a certain coupling. When running I can see the optimization does the job,
but the last line shows some problem occurred (in red)
Dumping final properties data...done.
Optimization results:
optimization function has value 5.55359509000862e-09
Terms of equation:
emittanceRatio 0.003 - sqr: 5.553595090008622e-09
A total of 38 function evaluations were made.
Optimum values of variables and changes from initial values:
QSKEW.1B.K1: 2.356250000000001e-01 2.356250000000001e-01
QSKEW.1C.K1: -1.231562500000000e-01 -1.231562500000000e-01
QSKEW.1D.K1: -5.196875000000000e-02 -5.196875000000000e-02
QSKEW.2A.K1: 2.623437500000000e-02 2.623437500000000e-02
statistics: ET: 00:00:04 CP: 3.55 BIO:0 DIO:0 PF:0 MEM:22602
error: run_setup, run_control, and beam definition must precede track namelist
I am quite puzzled since run_setup, run_control and bunched_beam all precede the track command as recommended
Below the .ele file used.
Thanks very much for any help
Marco
In my case, however, I am trying to run an optimization with no further action.
Specifically I 'd like to find the gradients of some skew quads to give a certain coupling. When running I can see the optimization does the job,
but the last line shows some problem occurred (in red)
Dumping final properties data...done.
Optimization results:
optimization function has value 5.55359509000862e-09
Terms of equation:
emittanceRatio 0.003 - sqr: 5.553595090008622e-09
A total of 38 function evaluations were made.
Optimum values of variables and changes from initial values:
QSKEW.1B.K1: 2.356250000000001e-01 2.356250000000001e-01
QSKEW.1C.K1: -1.231562500000000e-01 -1.231562500000000e-01
QSKEW.1D.K1: -5.196875000000000e-02 -5.196875000000000e-02
QSKEW.2A.K1: 2.623437500000000e-02 2.623437500000000e-02
statistics: ET: 00:00:04 CP: 3.55 BIO:0 DIO:0 PF:0 MEM:22602
error: run_setup, run_control, and beam definition must precede track namelist
I am quite puzzled since run_setup, run_control and bunched_beam all precede the track command as recommended
Below the .ele file used.
Thanks very much for any help
Marco