When the control is a linear combination of other functions (as discussed with Guannan)
$f(t) = \sum_j \theta_j \phi_j(t)$
Then the $\theta_j$ parameters completely specify the pulse $f(t)$. Everytime the value of $\theta_j$ changes, we do not want to compute the integrals of $f(t)$ again. Instead, note:
$\mu_0^{f}(t) = \int_0^h f(t+s) ds = \sum_j \theta_j \int_0^h \phi_j(t+s) ds = \sum_j \theta_j \mu_0^{\phi_j}(t)$
So all we have to do is compute and store $\phi_j$ integrals and linearly combine when needed. Similarly,
$\mu_1^{f}(t) = \int_0^h (s-h/2) f(t+s) ds = \sum_j \theta_j \int_0^h (s-h/2) \phi_j(t+s) ds = \sum_j \theta_j \mu_1^{\phi_j}(t)$
$\nu$ becomes more complicated, but the same idea works:
$\nu^{f,g}(t) = \int_0^h \int_0^\zeta f(t+\zeta) g(t + \xi) = \sum_j \sum_k \theta_j \beta_k \int_0^h \int_0^\zeta \phi_j(t+\zeta) \phi_j(t+\xi) = \sum_j \sum_k \theta_j \beta_k \nu^{\phi_j,\phi_k}(t) $
Lastly, even if $g$ is expressed in different basis, it doesn't change much:
$\nu^{f,g}(t) = \int_0^h \int_0^\zeta f(t+\zeta) g(t + \xi) = \sum_j \sum_k \theta_j \beta_k \int_0^h \int_0^\zeta \phi_j(t+\zeta) \psi_j(t+\xi) = \sum_j \sum_k \theta_j \beta_k \nu^{\phi_j,\psi_k}(t) $
We just need to precompute different things. If the second entity is not encoded with such a (linear combination) of basis function, this breaks down and we will have to see if anything can be done or not.