source:
PSPA/madxPSPA/tests/test-jacobian-knobs/test-jacobian-knobs.madx
@
430
Last change on this file since 430 was 430, checked in by , 11 years ago | |
---|---|
File size: 404 bytes |
Rev | Line | |
---|---|---|
[430] | 1 | x1=0.1; |
2 | x2=0.0; | |
3 | match,use_macro; | |
4 | vary,name=x1; | |
5 | vary,name=x2; | |
6 | m1: macro={;}; | |
7 | constraint,expr= x1+3*x2=1; | |
8 | constraint,expr= x1+1*x2=1; | |
9 | jacobian,calls=20,tolerance=1.e-21; | |
10 | endmatch; | |
11 | ||
12 | ||
13 | x1=0.1; | |
14 | x2=0.0; | |
15 | match,use_macro; | |
16 | vary,name=x1,knob=knob1; | |
17 | vary,name=x2,knob=knob2; | |
18 | m1: macro={;}; | |
19 | constraint,expr= x1+3*x2=1; | |
20 | constraint,expr= x1+1*x2=1; | |
21 | jacobian,calls=20,tolerance=1.e-21; | |
22 | endmatch,knobfile="knobfile.out"; |
Note: See TracBrowser
for help on using the repository browser.