如何在FCRBM、AFC-STLF、Bi-Level、MI-ANN下製作P.load和MAPE。在給定表的編碼中?

如何在FCRBM、AFC-STLF、Bi-Level、MI-ANN下製作P.load和MAPE。在給定表的編碼中?
\documentclass[journal]{IEEEtran}
\hyphenation{Smart Grid}
\usepackage[classicReIm]{kpfonts}
\usepackage{siunitx,booktabs}
\begin{document}
\begin{table*}
\centering

\caption{Analysis}
\label{tab:M_CPE}

\setlength{\tabcolsep}{0pt}
\begin{tabular*}{\textwidth}{
  @{\extracolsep{\fill}}
  S[table-format=2.0]
  *{10}{S[table-format=1.2]}
  @{}
}
\toprule
 & \multicolumn{9}{c}{Proposed and existing forecast models} \\
\cmidrule{3-10}
{Hours} &
{Target} &
  \multicolumn{2}{c}{FCRBM} &
  \multicolumn{2}{c}{AFC-STLF} &
  \multicolumn{2}{c}{Bi-level} &
  \multicolumn{2}{c}{MI-ANN} \\
\cmidrule{3-4}\cmidrule{5-6}\cmidrule{7-8}\cmidrule{9-10}
 & {P.load(kW)} & {MAPE(\%)} 
 & {P.load (kW)} & {MAPE(\%)} 
 & {P.load (kW)} & {MAPE(\%)} 
 & {P.load(kW)} & {MAPE(\%)} \\
\midrule

1 & 1.10 & 1.03 & 0.78 & 2.13 & 1.46 & 0.78 & 2.27 & 1.30 & 0.73 \\
2 & 1.44 & 0.95 & 0.67 & 2.17 & 1.47 & 0.60 & 2.15 & 1.45 & 0.48  \\
\midrule
{Avg.} & 1.10 & 1.03& 0.79 & 2.20 & 1.25 & 0.65 &  2.10 & 1.35 & 0.60  \\
\bottomrule
\end{tabular*}
\end{table*}
\end{document}

答案1

表格的第三行中應該有兩個空白儲存格,但您只插入了一個。

此外,列數為十列,而不是您設定的十列。

我換成(kW)了正確的(\si{\kilo\watt})

\documentclass[journal]{IEEEtran}

\usepackage[classicReIm]{kpfonts}
\usepackage{siunitx,booktabs}

\begin{document}

\begin{table*}
\centering

\caption{Analysis}
\label{tab:M_CPE}

\setlength{\tabcolsep}{0pt}
\begin{tabular*}{\textwidth}{
  @{\extracolsep{\fill}}
  S[table-format=2.0]
  *{9}{S[table-format=1.2]} % 9, not 10
  @{}
}
\toprule
 & \multicolumn{9}{c}{Proposed and existing forecast models} \\
\cmidrule{3-10}
{Hours} &
{Target} &
  \multicolumn{2}{c}{FCRBM} &
  \multicolumn{2}{c}{AFC-STLF} &
  \multicolumn{2}{c}{Bi-level} &
  \multicolumn{2}{c}{MI-ANN} \\
\cmidrule{3-4}\cmidrule{5-6}\cmidrule{7-8}\cmidrule{9-10}
 &                                                        % <---- this was missing
 & {P.load (\si{\kilo\watt})} & {MAPE (\%)} 
 & {P.load (\si{\kilo\watt})} & {MAPE (\%)} 
 & {P.load (\si{\kilo\watt})} & {MAPE (\%)} 
 & {P.load (\si{\kilo\watt})} & {MAPE (\%)} \\
\midrule

1 & 1.10 & 1.03 & 0.78 & 2.13 & 1.46 & 0.78 & 2.27 & 1.30 & 0.73 \\
2 & 1.44 & 0.95 & 0.67 & 2.17 & 1.47 & 0.60 & 2.15 & 1.45 & 0.48  \\
\midrule
{Avg.} & 1.10 & 1.03& 0.79 & 2.20 & 1.25 & 0.65 &  2.10 & 1.35 & 0.60  \\
\bottomrule
\end{tabular*}
\end{table*}
\end{document}

順便說一句,\hyphenation{Smart Grid}什麼也不做:這兩個字無論如何都不會連字符。

您應該考慮刪除第一行並將其合併到標題中。

在此輸入影像描述

相關內容