I am trying to solve a data assimilation problem where I have measurements “u” at some sparse locations, x_i. How can I minimize this objective with dolfin-adjoint? Thanks so much for your help!

1/2 \sum_{x_i} ||u(x_i)-u_obs(x_i)||^2_2

Thanks a lot for the reference