user defined variable as optimisation variable
Posted: 11 Jul 2014, 21:29
Hi Michael et al,
let's say I defined a variable in the lattice file and used it for several elements. Can I use this variable as optimisation variable?
For example,
.lte file:
Q1: K1=1,L=myVariable
Q2: K1=2,L=myVariable
.ele file:
<say that myVariable should be varied>
Of course one could do:
&optimization_variable name=Q1, item= L, ... &end
&optimization_variable name=Q2, item= L, ... &end
&optimization_term term="Q1.L Q2.L 1e-3 sene" &end
but for many elements the latter procedure gets a bit tedious..
Thanks in advance !
Yours
Slava
let's say I defined a variable in the lattice file and used it for several elements. Can I use this variable as optimisation variable?
For example,
.lte file:
Q1: K1=1,L=myVariable
Q2: K1=2,L=myVariable
.ele file:
<say that myVariable should be varied>
Of course one could do:
&optimization_variable name=Q1, item= L, ... &end
&optimization_variable name=Q2, item= L, ... &end
&optimization_term term="Q1.L Q2.L 1e-3 sene" &end
but for many elements the latter procedure gets a bit tedious..
Thanks in advance !
Yours
Slava