jeff101 Lv 1
Say the protein starts with all 3 Euler angles equal to 0 degrees.
Since the Euler angles give the same results every 360 degrees,
you can say the starting Euler angles are p360,q360,r360, where
p,q,r are all nonzero integers (1,2,3,4,etc.). For 3 variables,
fminsearch will make its first simplex of 4 points as follows:
(1) p360,q360,r360 & its score
(2) p378,q360,r360 & its score
(3) p360,q378,r360 & its score
(4) p360,q360,r378 & its score
This initial simplex sets the range that fminsearch will explore
for each variable. Using different values for p,q,r will explore
different ranges of angles. Small p,q,r gives a more local search.
Large p,q,r gives a more global search. For example, if p=1, the
initial simplex uses the angles 360 and 378 degrees (equivalent
to 0 and 18 degrees). Also, if p=10, the initial simplex uses the
angles 3600 and 3780 degrees (equivalent to 0 and 180 degrees).
For general p, the angles are p360 and p378 degrees. p360 is
equivalent to 0 degrees. p378 is equivalent to p360+p18 or
p18 degrees. This gives the effective angles below, which repeat
for p=21-40,41-60,61-80,etc.
p p378
1 18
2 36
3 54
4 72
5 90
6 108
7 126
8 144
9 162
10 180
11 198
12 216
13 234
14 252
15 270
16 288
17 306
18 324
19 342
20 0
21 18