I have an integral that looks like that:
I want to the values of ai that minimize H.
I am trying to replicate the example from a book (example 8.1), where the authors say they used GA/fminsearch in MATLAB.
I am not very familiar with MATLAB, but I tried (with no success) to solve it there. I am not sure if I should (or if I can) pass a symbolic equation into fminsearch
.