How create this table using latex.

The caption of the table should be in the left side and there is no space between the caption and the table. F2 and F3 should be in two lines. the contents of columns 1,3 and 4 are centered. I want it to be exactly like a table in the attached image.
This is my code
\documentclass{elsarticle}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage{booktabs, makecell, multirow}
\usepackage{caption}
\captionsetup[table]{format=plain,labelformat=simple,labelsep=period}%
\begin{document}
\begin{table}[]
\centering
\caption{My caption}
\label{my-label}
\begin{tabular}{@{}llll@{}}
\toprule
F & Formula & f(x) & Search range \\ \midrule
1 & $\begin{array} {lcl} f(x) & = & \sum_{i=1}^{n} \frac{x_i^{2}}{4000} - \prod_{i=1}^{n}cos(\frac{x_i}{\sqrt{i}}) + 1 \end{array}$ & 0 & [-100, 100]\\
2 & $\begin{array} {lcl} f(x) & = & \frac{\pi}{n}10\sin (\pi {y_1})
$+$ \sum_{i=1}^{n-1} {{( {{y_i} - 1})}^2}[{1 + 10{{\sin }^2}(\pi{y_{i + 1}})}] +(y_n -1)^{2}+\sum_{i=1}^{n}u(x_i,10,100,4) \end{array}$ & 0 & [-100, 100]\\
& $\begin{array} {lcl}
u(x)
u({x_i},a,k,m) =
\begin{cases}
k{({x_i} - a)^m} & \,\,\,\,\,\,\,\,\,{x_i} > a\\
0 & \,\,\,\,\,\,\,\,\,\, - a < {x_i} < a\\
k{( - {x_i} - a)^m} &\,\,\,\,\,\,\,\,\, {x_i} < - a
\end{cases} &
\end{array}$ \\
3 & $\begin{array} {lcl} f\left( x \right) = 0.1\left\{ {{{\sin }^2}(3\pi {x_1}) + \mathop \sum \limits_{i = 1}^{n - 1} {{\left( {{x_i} - 1} \right)}^2}\left[ {1 + {{\sin }^2}(3\pi {x_i} + 1)} \right] + {{({x_n} - 1)}^2}\left[ {1 + {{\sin }^2}(2\pi {x_n})} \right]} \right\} + \sum\limits_{i = 1}^n {u({x_i},5,100,4)}
\end{array}$ & 0 & [-100, 100]\\
\\ \bottomrule
\end{tabular}
\end{table}
\end{document}

newtxtextandnewtxmath. Please try commenting out the instruction\usepackage{newtxtext,newtxmath}and recompiling. – Mico Feb 16 '18 at 06:15clcC{\mylen}tolcC{\mylen}, i.e., do you remove the first "c" in$\begin{array}{@{} clcC{\mylen} @{}}. And, do you change both instances of\cmidrule{1-4}to\cmidrule{1-3}(since the table now only has three columns)? Please advise. – Mico Feb 16 '18 at 08:21clcCare the specifications of the 4 columns of thearrayenvironment used in the above code.cmeans "center", and "l" means "left-align". TheCcolumn type is defined in the preamble above, as a centered variant of themcolumn type. Themcolumn type, in turn, is defined in thearraypackage as a vertically centered variant of LaTeX's basicp("paragraph") column type. Do check out the posting What are good learning resources for a LaTeX beginner? for various introductions to LaTeX. – Mico Feb 16 '18 at 11:32\usepackage{newtxtext,newtxmath}, has a conflict with some commands :Command \transp already defined. ...transp}[1]{{#1}^{\ensuremath{\mathsf{T}}}}– Antonio Nov 14 '18 at 09:23\transp? – Mico Nov 14 '18 at 10:31\newcommand{\transp}[1]{{#1}^{\ensuremath{\mathsf{T}}}}– Antonio Nov 14 '18 at 10:37newtxmath, you could issue the instruction\renewcommand{\transp}[1]{{#1}^{\mathsf{T}}}after loading the two font packages. Incidentall, I don't think it's necessary (or even sensible!) to utilize the\ensuremathdirective here: If the\transpmacro is ever executed in text mode, TeX is going to crash upon encountering the^superscript-initiator symbol. – Mico Nov 14 '18 at 10:52\section{Riassumendo} \begin{table}\caption{Table caption here.}\label{my-label} $\begin{array}.....\end{array}$\end{table}– Antonio Nov 14 '18 at 16:31\usepackage{float} \begin{table}[H]...– Antonio Nov 14 '18 at 16:40