1. - JUSTIFICACIÓN DEL TRABAJO
III. PACIENTES Y MÉTODO
bce be C <C and ae ab bce ab be C +C <C +C =C∗ (4.1)
However, Eq. (4.1) can only be satisfied by violating the condition that a-b-e is the optimal path from a to e.
Bellman [8] has called the above property of an optimal policy the principal of optimality: “An optimal policy has the property that whatever the initial state and initial
decision are, the remaining decisions must constitute an optimal policy with regard to the state resulting from the first decision” [47].
4.4 Connection from nonzero velocity and acceleration boundary conditions to rest The connection from initial conditions of nonzero velocity and acceleration to rest are achieved by extending (or cropping) Phase of the trajectory which connects zero initial acceleration and nonzero initial velocity b.c. to rest. There are four possible cases:
i) Case #1: From (vi ≥ , 0 ai > ) to rest (0 vf =0, af =0) ii) Case #2: From (vi ≥ , 0 ai < ) to rest (0 vf =0, af =0) iii) Case #3: From (vi < , 0 ai < ) to rest (0 vf =0, af =0) iv) Case #4: From (vi < , 0 ai > ) to rest (0 vf =0, af =0)
Case #1: Connecting from (vi ≥ , 0 A≥ai > ) to rest (0 vf =0, af =0)
Considering Figure 4.3, the basic idea is to bridge a connection from the given nonzero acceleration boundary condition to the quickest reachable state with zero acceleration, as
shown in the red highlighted portion of Figure 4.2. This is achieved by projecting the trajectory forwards from the initial state by considering a jerk input of −J (with maximum magnitude). The velocity reached at the zero acceleration state is denoted as v0f . The subscript ‘0’ indicates ‘zero-acceleration state’, and the subscript ‘f’ indicates projection in the ‘forwards’ direction in time. From this point onwards, a zero initial acceleration trajectory is planned, as explained in Section 4.2.2, based on one of the two templates in Figure 4.1 (c) or (d). The ‘zero initial acceleration to rest’ portion of the trajectory has to be planned starting at the initial velocity of v0f . Afterwards, the complete trajectory can be accomplished by extending the duration of the first phase as T1′= +T1 Ta.
Figure 4.3: Case #1: Connection from (vi ≥ , 0 A≥ai > ) to rest. 0
0 f
v and T can be calculated as follows (noting that because a ai > 0 → |ai|= ): ai
| i| / a a | i| / J = a T →T = a J 0 2 | | 2 | | 2 | | | | 2 1 2 2 2 2 = − = = > − = ∆ J a a J a J a J J a a JT T a v i a a i i i i i i 0f i v = + ∆v v
Chapter 4 Time-Optimal Connection Between On-the-Fly Drilling Trajectories and Rest Boundary
Conditions
The overall connection trajectory is obtained by integrating the jerk sequence of [−J, 0, J ], for the durations of [T ′1 , T2 , T3], starting with the initial conditions (vi ≥ , 0
0
i
a > ).
From the Principle of Optimality summarized in Section 4.3, since the connection from the initial state (v , i a ) to the intermediate state (i v0 f, a=0) is a minimum-time trajectory, along with the connection from (v0 f ,a=0) to rest (vf =0, af =0), it follows that the complete trajectory from (vi≥ , 0 ai > ) to rest is also time-optimal. 0
As an important note, considering that in the extreme case ai= can hold, in order for A
the velocity profile to remain within the limit of v0f ≤V , v has to be less than i 2
/ (2 )
i
v
≤ −V
A
J
. This requirement ( v0f ≤V) has to be taken into account when selecting the entry and exit points into the cyclical on-the-fly drilling trajectory, to ensure that the connection profiles do not violate the velocity limits of the drives.Case #2: Connecting from (vi ≥0, − ≤A ai <0) to rest (vf =0, af =0)
In this case, zero acceleration states are projected both in the forwards and backwards directions (in time) from the given initial condition of (vi ≥0, ai <0), as shown in Figure 4.4. Here,
0b
v indicates the velocity reached by projecting ‘backwards’ and v0f by projecting ‘forwards’ (as explained in Case #1). The travel time Ta to zero acceleration state (which is identical in both directions), and the respective values of v0b and v0 f can be found as follows: J a Ta =| i|, 0 2 | | < = ∆ J a a v i i , v0 f = + ∆vi v, and
v
0b= − ∆v
iv
(a) (b)
Figure 4.4: Connection from (vi≥ , 0 ai < ) to rest: (a) when 0 v0f ≥0, (b) when v0f <0.
Based on the value of v0 f , two possibilities emerge:
i) If v0f ≥0 , as shown in Figure 4.4(a), then the trajectory is planned as a connection from zero initial acceleration (with positive initial velocity) to rest, as explained in Section 4.2.2, starting with the initial velocity of v0b. Afterwards, the duration of T is cropped out of a T (i.e., 1 T1′= −T1 Ta ) and the final motion
profile is generated by integrating the jerk sequence of [−J, 0, J ], which is applied for the durations of [T1′ , T , 2 T3], starting with the initial conditions (vi ≥0, ai <0). Since |ai|≤A, it can be guaranteed that
T
a≤T
1. Since the parent trajectory from (0b
v , a=0) to rest is already minimum time, and the given initial conditions (vi ≥ , 0 ai < ) are on this trajectory, then from the Principle 0 of Optimality the cropped trajectory from (v , i a ) to rest will also be minimum i
time.
ii) If v0f <0, as shown in Figure 4.4(b), then the trajectory is planned as a
Chapter 4 Time-Optimal Connection Between On-the-Fly Drilling Trajectories and Rest Boundary
Conditions
explained in Section 4.2.2), starting with an initial velocity of v0 f . Afterwards, the duration of T is extended backwards (i.e. 1 T is added to a T ; 1
T
1′= +T
1T
a). The final motion profile is generated by integrating the jerk sequence [+J , 0,J
− ], which is applied for the durations of [T1′, T , 2 T3], starting with the initial conditions (vi ≥ , 0 ai < ). Since the trajectory from the initial conditions 0 (vi ≥ , 0 ai < ) to the intermediate state (0 v0f <0,a=0) is time optimal (i.e., achieved with largest possible jerk magnitude), and the latter part (from (v0 f,
0 =
a ) to rest) is also time-optimal, then from the Principle of Optimality, it follows that their connected sequence will also be time-optimal.
Case #3: Connecting from (vi < , 0 − ≤A ai< ) to rest (0 vf =0, af =0)
Figure 4.5: Case #3: Connection from (vi< , 0 − ≤A ai< ) to rest. 0
Considering Figure 4.5, this case can be considered as the mirror image of Case #1 with respect to the time axis. The strategy is the same; to project forwards in time towards a zero acceleration state with the velocity denoted as v0f , and then to plan a zero initial acceleration trajectory to rest starting with this velocity. Afterwards, the duration of Phase
of the latter trajectory is extended backwards by the acceleration duration T (a T1′= +T1 Ta) and a jerk sequence of [+J , 0, −J] is executed for the duration array [T1′, T , 2 T3], starting with the initial conditions of (vi < , 0 ai < ). As proven for Case #1, this trajectory is 0 also time-optimal.
As explained for Case #1, to guarantee that the magnitude of the velocity profile does not exceed its limit (i.e., to keep − ≤v V ), in the extreme case that ai = − , A v then has to i
satisfy
v
i≥ − +V
A
2/ (2 )J
. Similarly, the connection point has to be chosen such thatV v0f ≤ .
Case #4: Connecting from (vi < ,0 ai > ) to rest (0 vf =0, af =0)
(a) (b)
Figure 4.6: Connection from (vi < ,0 ai > ) to rest: (a) when 0 v0f <0, (b) when
0f 0
v ≥ .
Considering Figure 4.6, it can be seen that the treatment of this case is similar to that of Case #2. The velocity v0 f corresponding to the forward projected zero acceleration state is determined. Then, two possibilities arise:
i) If v0 f is negative, then the trajectory is planned from the backward projected zero acceleration state velocity,
0b
Chapter 4 Time-Optimal Connection Between On-the-Fly Drilling Trajectories and Rest Boundary
Conditions
Phase is cropped (
T
1′= −T
1T
a). Then, the jerk sequence of [+J , 0, −J] is applied with a duration array of [T1′, T , 2 T3], starting with the initial conditions (vi < ,0 ai > ). Since the parent trajectory from (0 v , 0b a=0) to rest is time- optimal, and the initial conditions (vi <0, ai >0) are on this trajectory, then from the Principle of Optimality the cropped trajectory from (v , i a ) to rest will ialso be time-optimal.
ii) If v0 f is positive, then the trajectory is planned from v0 f onwards to rest, as shown in Figure 4.6(b). T is extended backwards as 1
T
1′= +T
1T
a. The jerk sequence of [−J , 0, J ] is executed with the duration array of [T1′ , T , 2 T3], starting with initial conditions (vi <0, ai >0). Since the trajectory from the initial conditions (vi <0, ai >0) to the intermediate state (v0f ≥0,a=0) is time optimal (i.e., achieved with largest possible jerk magnitude), and the latter part (from (v0 f , a =0) to rest) is also time-optimal, then from the Principle of Optimality it follows that their connecting sequence will also be time-optimal.4.5 Connection from rest to nonzero velocity and acceleration boundary conditions