I want to merge my three latex columns into one cell and put a tabularly arranged amsmath equation into it with nested equation / aligned like so. But I am getting the error that “begin{aligned} only allowed in math mode”.

multicolumn{3}{c}{% noindentbegin{equation*}begin{aligned}
    &min(:... &&min(:... \\
    &sum_{a in B} x_a &&begin{varwidth}{8em} blablabla end{varwidth}\\
    &quad+ &&text{plus} \\
    &sum_c p_c:cdot B &&begin{varwidth}{8em} blablabla end{varwidth} \\
    &...:) &&...:) 
end{aligned}end{equation*} } \

Anyone know what the problem is? Thanks so much,

New contributor

pgibs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.