24.10.2014 Views

Dissertation - HQ

Dissertation - HQ

Dissertation - HQ

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

168 Oceanography vs. behaviour<br />

6.A Choice of the last two optimal decisions<br />

In the simple model presented in section 6.2 (page 119 and following)<br />

it is possible to describe analytically the choice of the last two decisions.<br />

It helps in understanding how the optimisation algorithm works.<br />

Last optimal decision d # (θ, x, T − 1)<br />

The value function is<br />

0<br />

V (θ + ∆θ 0 , x + ∆x 0 1<br />

, T ),<br />

| {z }<br />

Foraging, d = 0<br />

V (θ, x, T − 1) = p · max<br />

d<br />

B<br />

@ V (θ − ∆θ 1 , x − ∆x 1 C<br />

, T ) A<br />

| {z }<br />

Swimming, d = 1<br />

= p · max (θ + !<br />

∆θ0 ) · 1 {x+∆x 0 =0},<br />

(θ − ∆θ 1 ) · 1 {x−∆x 1 =0}<br />

Now, x + ∆x 0 ≠ 0 because x ≥ 0 and ∆x 0 > 0. Thus<br />

(<br />

V (θ, x, T − 1) = p · (θ − ∆θ 1 ) · 1 {x−∆x 1 =0}<br />

d # (θ, x, T − 1) = 1<br />

Therefore, the optimal decision at time T −1 is swimming if x−∆x 1 = 0.<br />

It means that the larva will swim if it can reach the reef by choosing<br />

swimming. But, if x is not equal to ∆x 1 (it cannot reach the island), V<br />

equals zero for any decision. In this case it does not have any favourite<br />

decision for its last choice.<br />

Before the last optimal decision u # (θ, x, T − 2) Assuming the last<br />

decision was swimming (d # (θ, x, T − 1) = 1), the value function at<br />

T − 2 is<br />

0<br />

V (θ + ∆θ 0 , x + ∆x 0 1<br />

, T − 1) ,<br />

| {z }<br />

Foraging, d = 0<br />

V (θ, x, T − 2) = p · max<br />

d<br />

B<br />

@ V (θ − ∆θ 1 , x − ∆x 1 C<br />

, T − 1) A<br />

| {z }<br />

Swimming, d = 1<br />

= p · max (θ + !<br />

∆θ0 − ∆θ 1 ) · 1 {x+∆x 0 =∆x 1 },<br />

(θ − 2∆θ 1 ) · 1 {x−∆x 1 =∆x 1 }<br />

As we cannot have at the same time x+∆x 0 = ∆x 1 and x−∆x 1 = ∆x 1 ,<br />

it comes that:<br />

“<br />

V (θ, x, T − 2) = p · (θ + ∆θ 0 − ∆θ 1 ) · 1 {x+∆x 0 =∆x 1 }<br />

+ (θ − 2∆θ 1 ) · 1 {x−∆x 1 =∆x 1 }<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!