It is well known that a two dimensional system to first order is locally Hamiltonian from Darboux' theorem. For example, \begin{equation} \dot x = f(x,y), \qquad \dot y = g (x,y) \end{equation} Admits the following Poisson structure, \begin{equation} \{x,x\}=\{y,y\} =0 , \qquad \{x, y\}= -\{y,x\} = F(x,y) \end{equation} Where $F\neq 0$ and Hamilton's equations being, \begin{equation} \dot x = F(x,y) \frac {\partial H}{\partial y}, \qquad \dot y =-F(x,y) \frac{\partial H}{\partial x} \end{equation} If now we have an $n$-dimensional system $\dot x_i=f(x_1,\dots , x_n)$ where $i=1,\dots , n$, can we in general give conditions for the admission of a Hamiltonian system?
If I had a system and wanted to solve it's dynamics, is there a way I could test to see if it is Hamiltonian? By this I mean, let us assume I have a collection of variables and can monitor their time evolution in a computational experiment. Is there a way I can use the very powerful theory of Hamiltonian mechanics to someway solve my own system? i.e how can I take it beyond the use of $q$s and $p$s to solve my own problems!