垂直线算法

垂直线算法

我创建了以下算法,但我对输出不满意。所以我想知道是否有一种方法可以在我的算法中添加垂直线,同时保持相同的结构,并能够将其放在颜色框中。PS
:我在单独的文件中使用了此代码,并将其包含在我的主文件中。
这是我的代码:

\tcbset{
        enhanced,
        left=5mm,
        right=8mm,
        boxrule=0.4pt,
        colback=blue!5!white,
        boxrule=0.1pt,
        %colframe=red!75!black,
        colframe=blue!75!black,
        fonttitle=\bfseries
       }
       \setuldepth{Berlin}

\begin{tcolorbox}[
       lifted shadow={1mm}{-2mm}{3mm}{0.1mm}%
       {black!50!white}%,width=\textwidth 
       ]

    \centering

\begin{algorithmic}
\item Given an initiator agent A representing the Cloud Service Costumer(CSC), an agent B representing candidate cloud service provider (CSPs) among many others, a set of negotiable
parameters of Saas contract.
\begin{enumerate}
 \item[\textit{1.}]The initiator agent A sends a call for proposal (cfp) to the agent B.
\item[\textit{2.}]The agent B evaluates the call for proposal using an internal
function “evaluate proposal”.
\item[\textit{3.}]The previous evaluation allows agent B to make a decision, either
it responds by a \textit{proposal} or a \textit{rejection} (refuse).
\item[\textit{4.}]\ul{\textbf{If }} response(B) = rejection \ul{\textbf{Then}}The agent A eliminates the agent B from being selected for negotiation.
\item[       ]\ul{\textbf{ Else}}
\begin{description}
\item[       ] \ul{If } response(B) = proposal       \ul{\textbf{Then }}   The agent A evaluates the offer to select agents for negotiation using an internal function “ select for negotiation ” and either ,selects the agent B to start negotiation with, or eliminate agent B from being selected to 
start negotiation with .
\item[        ]\ul{\textbf{EndIf}}
\end{description}
\item[         ]\ul{\textbf{EndIf}}
\end{enumerate}


\end{algorithmic}
\end{tcolorbox}  

输出结果如下:
在此处输入图片描述

相关内容