Please see MWE. No idea why its not working, error says
'Sorry, your compile took too long to run and timed out. This may be due to a large number of high-res images, or complicated diagrams.'
However its not a very big flow diagram so any advice/explanation why this happens.
Thanks
Sam
\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \begin{document} \begin{center} \begin{tikzpicture}[node distance=2cm] \node (start) [startstop] {Start}; \node (in1) [io, right of=start, xshift=4cm] {Input}; \node (dec1) [decision, below of=start] {Is $t< \epsilon$}; \node (pro1) [process, below of=dec1] {Predict Price Data}; \node (pro2) [process, below of=pro1] {Solve Optimisation Problem}; \node (out1) [io, below of=pro2] {Output $A_i$}; \node (out2) [io, right of =out1] {Output `ERROR'}; \node (dec2) [decision, right of =dec1, xshift=4cm] {Is $t= \epsilon$}; \node (stop) [startstop, below of=out1] {Stop}; \draw [arrow] (start) -- (dec1); \draw [arrow] (in1) -- (dec1); \draw [arrow] (dec1) -- node[anchor=east] {No} (dec2); \draw [arrow] (dec1) -- node[anchor=south] {Yes} (pro1); \draw [arrow] (dec2) -- node[anchor=east] {No} (out2); \draw [arrow] (dec2) -- node[anchor=south] {Yes} (stop); \draw [arrow] (pro1) -- (pro2) \draw [arrow] (pro2) -- (out1) \draw [arrow] (out1) -- (dec1) \end{tikzpicture} \end{center} \end{document} 

;at the end of the\draws